1826780 Members
1668 Online
109702 Solutions
New Discussion

Change IP,DNS,

 
Porphirio
Occasional Contributor

Change IP,DNS,

How i do for change ip, and restart the service?
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Change IP,DNS,

Hi:

Edit '/etc/resolv.conf' and you're done.

Regards!

...JRF...
Ivan Krastev
Honored Contributor

Re: Change IP,DNS,

If you wand to change IP of machine use set_parms - http://docs.hp.com/en/B2355-60105/set_parms.1M.html

regards,
ivan
Steven E. Protter
Exalted Contributor

Re: Change IP,DNS,

Shalom,

/etc/resolv.conf for DNS

set_parms is easier but /etc/rc.config.d/netconf is the configuration file and it is documented and human readable.

best to reboot after a netconf change.

Good Luck,

SEP
In the US. Not violating the Sabbath.

:-)
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
Porphirio
Occasional Contributor

Re: Change IP,DNS,

how i do for reseting networking without reboot? after change /etc/rc.config.d.netconf?
Marcel Burggraeve
Trusted Contributor

Re: Change IP,DNS,

Change /etc/hosts and /etc/rc.config.d/netconf for your IP configuration.
Change /etc/resolv.conf for your DNS configuration.
Stop networking : /sbin/init.d/net stop
Start networking : /sbin/init.d/net start

Personally I would prefer to reboot the system after changing IP configuration instead of just restarting the networking.
Mobeen_1
Esteemed Contributor

Re: Change IP,DNS,

You have posed the same question in another thread, see below

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1105379

The answer to both is
1. Make changes while logged in thru console access

2. Shutdown n/w service using /sbin/init.d/net stop

3. Start n/w service using /sbin/init.d/net start

regards
Mobeen