Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable DHCP and specify a Hostname

Status
Not open for further replies.

johndog

Technical User
Apr 17, 2001
103
US
Hi,
I recently installed Solaris on my Sparc 5 and apparently left some things out. I have a PC running DHCP, however since I am still configuring Samba on my Sparc, the DHCP service is useless. How do I disable DHCP and specify a static IP address and Hostname for my machine? I have messed around with Admintool and /etc/hostname.le0, but when the system boots up, I still get "unknown" as the hostname.
I also need to install a gcc or cc...are these available on any of the Solaris 8 installation cd's? If so...which one? Also where can I find demo sound files (*.au)...they were not installed for some reason. Thanks for all the help!
 
Response to johndog

Here are some tips....... good luck ( not sure about gcc )


Bring a SUN Sparc5 online using Static IPs then here are some points for these files

/etc/resolv.conf must have domain name ( i.e. version, bellatlantic, sprint ), nameserver xxx.xxx.x.xx ( dns ) nameserver xxx.xxx.x.xx ( dns ) ( on separate lines )

/etc/hostname.le0 must have a hostname ( i.e. sparky )

/etc/hostname6.le0 must have an empty file if there is not already one available

/etc/hosts must have 127.0.0.1 localhost and xxx.xxx.xxx.xx sparky loghost (on separate lines)

/etc/nsswitch hosts: files dns ( this line must be visible in /etc/nsswitch file )

/etc/defaultrouter must Static IP Address of router xxx.xxx.xxx.xxx

Some partitions on disk may be root ( / ) /var /opt /usr /tmp /export/home swap

Also see article by the following for additional hints
 
Response to johndog

FYI,
To blow away DHCP. Check /etc/dhcp and empty that. Then set static ip in /etc/defaultrouter xxx.xxx.xxx.xxx
 

FYI
You might have to do some searching for the following /etc/nsswitch hosts: files dns ( this line must be visible in /etc/nsswitch file )

Also check /etc/nsswitch.dns for the ( hosts: files dns ) file
 
fyi vi /etc/nsswitch.conf
and look for ( hosts: files dns ) This should already be set
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top