- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Do we need to stop and start /sbin/init.d/net ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 03:23 AM
11-21-2009 03:23 AM
I want to change the IP address permanently in /etc/rc.config.d/netconf
So do we need to need stop and start /sbin/init.d/net after changing the IP address?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 04:29 AM
11-21-2009 04:29 AM
SolutionIn addition to netconf, you need to change the IP in /etc/hosts.
You can change the IP manually in /etc/hosts and netconf, but it is normally changed by using "/sbin/init.d/set_parms".
If the server is very simple and does not have any services running on it, you can get away by running the "/sbin/init.d/net start" command. Otherwise it is also recommended to reboot the server after changing the IP address. There may be a lot of services and applications that may have the old IP cached in and will fail or hang when you change the IP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 06:16 AM
11-21-2009 06:16 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
Another way to manage a change like this is to do:
# /sbin/set_parms ip_address
Run this exactly as written. You will be presented an interactive menu. You should plan this at a time you can reboot. The manpages for 'set_parms' offer additional information and options.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 07:41 AM
11-21-2009 07:41 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
I would add that changing your server's IP address may mean that your network gateway and network mask need modification too.
Moreover, your server probably doesn't live in isolation. DNS servers will undoubtedly need coordinated changes, too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 07:49 AM
11-21-2009 07:49 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
Yes, before that, take simple backup copy
# cd /etc/rc.config.d
# cp -p netconf netconf.bk
# vi netconf
>>>So do we need to need stop and start /sbin/init.d/net after changing the IP address?>>>>>
Yes,
/sbin/init.d/net stop
/sbin/init.d/net start
I would prefer to do above change via console/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 06:42 PM
11-21-2009 06:42 PM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
If you change the existing IP address then you need to stop and start the daemon. sometimes you have to restart the server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2009 03:30 AM
11-22-2009 03:30 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
I prefer following one liner command:
/sbin/init.d/net stop; /sbin/init.d/net start
But apparently stop means nothing,
and according some old resources you can lost your net connection (but I guess it is for old OS, in 11iv1 it is no problem like this)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2009 01:09 AM
11-23-2009 01:09 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
Regards,
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2009 03:02 PM
11-23-2009 03:02 PM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
If you have already ip address assigned to the lan cards and want to change with netconf editing, you can do so,
- Manually bring down the ip ,gateway etc, and do a net start and stop .
- check with netstat -in ; and netstat -rn
Hth,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2009 07:31 AM
11-30-2009 07:31 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
What is the exact syntax?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2009 07:56 AM
11-30-2009 07:56 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
You can try
ifconfig lanX 192.168.0.1 netmask 255.255.255.0 up
ifconfig lanX:1 192.168.0.1 netmask 255.255.255.0 up
just check and see
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2009 08:27 AM
11-30-2009 08:27 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
Temporary Change:
#ifconfig lan1 192.6.1.17 netmask 55.255.255.0 up
Checking:
#ifconfig lan1
I have attached a 2-page doc for ifconfig test.
Regds..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2009 08:28 AM
11-30-2009 08:28 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
ifconfig lan# 10.0.0.15 netmask 255.255.255.0 up
Replace # with actual lan number from lanscan
Need to be root.
This impacts network services such as NFS, which also may need to be restarted.
/sbin/init.d/nfs.core
/sbin/init.d/nfs.server
/sbin/init.d/nfs.client
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2009 08:46 AM
11-30-2009 08:46 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
To change the ip address manually,
1. Bring down the interface,
2. release the old ip ,
3. apply the new ip:
Steps: # Bring down:
# ifconfig lanx down
# ifconfig lanx unplumb
# ifconfig lanx 0.0.0.0
## check with # netstat -in
Bring up with ip:
# ifconfig lanx 192.168.x.x netmask 255.255.255.0 up
[ Where lanx is the lan number from lanscan ]
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2009 08:51 AM
11-30-2009 08:51 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
Also,
If you want to change the gateway at the same time:
# check current entry with # netstat -rn
# route delete default x.x.x.1
TO add new GW:
# route add net
# verify with netstat -rn
Hth,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2009 06:16 AM
12-01-2009 06:16 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2009 06:26 AM
12-01-2009 06:26 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
If your requirement is just to configure second lan interface just to sam - network interface card -- and configure ip ( if you assign ips from no need to edit netconf manually it does all )
Javed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2009 07:12 AM
12-01-2009 07:12 AM
Re: Do we need to stop and start /sbin/init.d/net after changing the IP address?
Are you talking about configuring two IPs out of one lan card?
Like lan100 or lan900?
If this is the case, then probably it is Auto Port Aggregation (APA).
There are two types:
- Failover
- Load balance
Which one are you looking for?