Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
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