Computing.Net > Forums > Solaris > dynamic IP instead of static

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

dynamic IP instead of static

Reply to Message Icon

Name: Jiri Soljak
Date: October 9, 2002 at 08:55:46 Pacific
OS: Solaris 8
CPU/Ram: spark/256
Comment:

I would like to have Solaris installation with static IP address.
Nodename, hosts, IP all are configured. Durring the instalation was DHCP disabled!
DNS settings in nsswitch.conf is "files dns" dns = just for reaching other servers.
Why do I still gets dynamical IP address and my nodename is ignored? My hostname is not mentioned in DNS server and will not be! So the hostname is still unknown.
I know it is probably very easy but you are the guru not me.
Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: Mark
Date: October 9, 2002 at 13:08:02 Pacific
Reply:

Hi-

Did you remember to update your /etc/hostname.{hme0|eri0} file?

-Mark


0

Response Number 2
Name: Aakash
Date: October 9, 2002 at 22:45:01 Pacific
Reply:

issue command:
#/usr/sbin/sys-unconfig

after auto re-boot it will ask for the
informations... IP Addr, NIS/NIS+/DNS/other... etc

If you have entries in /etc/- hosts, networks, netmasks....
you can extract from the directory
/etc/inet/?????
all files are automatically backed up...

-aakash


0

Response Number 3
Name: Jessica
Date: October 18, 2002 at 13:08:00 Pacific
Reply:

Hi,

As DHCP client is disabled on your box, (there is no /etc/dhcp.* ), but for a static IP address, you need configure /etc/hosts file put static IP address and hostname(like wk1) for your box, touch /etc/hostname.le0 and put the entry of the hostname(wk1) in this file. reboot the machine.

As far as you still get hostname as "unknown", as my understanding you are still a DHCP client because the script /etc/rcS.d/S30network.sh will automatically configure your box as "unknown" if the box is a DHCP client.

I do not think there are anything with DNS services or /etc/nsswitch.conf if you get dynamic IP address instead of static, it is related to DHCP services.

Jessica


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: dynamic IP instead of static

shell script to check a dynamic ip www.computing.net/answers/solaris/shell-script-to-check-a-dynamic-ip/4287.html

How to get a dynamic IP ? www.computing.net/answers/solaris/how-to-get-a-dynamic-ip-/1695.html

OpenWindows loads instead of CDE. www.computing.net/answers/solaris/openwindows-loads-instead-of-cde/5006.html