My IPs are not being loaded into the network device after bootup or network restarts


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » System Level

My IPs are not being loaded into the network device after bootup or network restartsLast Modified: Oct 18, 2006, 11:06 am
After a "service network restart" command is run, the "service startips start" script needs to be run.  The startips script is run at bootup time, but on some systems, it seems that the network restart is called again, after the initial startup.

One solution is to run:

/sbin/service startips start

after each startup, but usually, admins can't watch their boxes all day long.

The easier solution is to setup the alised IPs into the network settings so they're loaded with the network, no matter how many times it's restarted.

If you type "/sbin/ifconfig", it will tell you what your ethenernet device name is for your main server IP.. usually eth0 or eth1.
Let's use eth0 for the example.
You'll create a file called:
/etc/sysconfig/network-scripts/ifcfg-eth0-range0

in it, you'll add the code:

IPADDR_START=192.168.0.2
IPADDR_END=192.168.0.100
CLONENUM_START=0

where 192.168.0.2 is the next IP *after* your server IP which is not part of this list.  Only include aliased IPs in this list (IPs that are added after your server IP).  And obviously, the 192.168.0.100 would be the ending IP address.

Once done, you can type:

/sbin/service network restart

to test it out.  (make sure you're logged into your server IP when yo do this, or you might get disconnected if it fails).
 
Related Helpfiles
Manually adding an additional IP to a specific network device

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST