cancel
Showing results for 
Search instead for 
Did you mean: 

Change from DHCP to static

SOLVED
Go to solution
Ratzie
Super Advisor

Change from DHCP to static

HP 11.00 I set the server up with DHCP, but now I need to change to static...
4 REPLIES
Tim Nelson
Honored Contributor

Re: Change from DHCP to static

edit /etc/rc.config.d/netconf

the instructions and examples are in this file.

restart net services or simply reboot when done.

( have access to the console in case you syntax error it ;)

TTr
Honored Contributor
Solution

Re: Change from DHCP to static

Modify /etc/rc.config.d/netconf and change DHCP_ENABLE to 0 (zero).

Then run set_parms (do not reboot the server yet).
/sbin/set_parms ip_address
/sbin/set_parms addl_netwrk

The set_parms command modifies /etc/rc.config.d/netconf and /etc/hosts files. Check and verify the changes in these files. After that reboot the server.
Steven E. Protter
Exalted Contributor

Re: Change from DHCP to static

Shalom,

Quick way:
as root
sam
work through the menus and turn off DHCP.

You can also use sam to configure a statis IP address in the networking session.

Check the following configuration file before and after to see what changes.

/etc/rc.config.d/netconf

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ratzie
Super Advisor

Re: Change from DHCP to static

Thanks