LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   how do i disable DHCP client in solaris9? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-do-i-disable-dhcp-client-in-solaris9-635000/)

a.toraby 04-13-2008 04:33 AM

how do i disable DHCP client in solaris9?
 
i have installed solaris9. during installation i chosen DHCP. but noa i need to specify IP and host name manually. and i want to speed up startup precess. so how can i delete DHCP query at the startup?
how do i disable DHCP client in solaris9 and set network interface IP and name manually for ever? In suse this configurations implemented in a text file named eth0 in sysconfig directory. is exist such file in solaris?
thanks for your helps.

jlliagre 04-13-2008 05:17 AM

You simply need to remove the /etc/dhcp.<your-interface-name> file and create a file named /etc/hostname.<your-interface-name> containing the static IP you want to set.

You'll probably also need to set /etc/defaultrouter, /etc/nsswitch.conf and /etc/resolv.conf.

supremedalek 04-15-2008 05:35 AM

You can also define the name of your machine in the /etc/hostname.<interface> and then associate it with its ip in /etc/hosts. For instance for my own solaris 9 box, kushana, I have

raub@kushana-109>cat /etc/hostname.hme0
kushana
raub@kushana-110>

a.toraby 04-15-2008 07:09 AM

thanks for your helps friends


All times are GMT -5. The time now is 08:16 PM.