|If you need to manually add an IP to your device, so that it's added by the system ("network" script), and not DA ("startips" script), you can do so by adding a network-script for the new IP.|
This guide is only for Redhat/Fedora/CentOS based systems. See this guide for other systems.
We'll use an IP example of , so replace all instances of that value with your own IP.
1) First we need to know on which device to add the additional IP. Most of the time, it will be , but not always.
/sbin/ifconfigto get a listing of your current devices. See which device your server IP is using (Eg: eth0), then for your additional IP, you'll just add another number to it with a colon, eg: eth0:0
2) Create the actual network-scripts file:
4) Restart your network and pray it works:
5) Confirm it's loaded by checking ifconfig again:
Although we don't have much testing for this with Debian, try editing:
/etc/network/interfacesand at the bottom of the file (assuming you already have eth0listed there), add eth0:0:
ifup eth0:0As mentioned, this has very limited testing, so be very sure that the setting you're adding are correct. It's possible the box can become inaccessible if an error is made at this point (which is why we can't do this for you)
FreeBSD ALPHA testing
Assuming your main device name is
ifconfig em0 22.214.171.124 netmask 255.255.255.255 aliaswhich should load the IP into the em0 device. Once confirmed that this worked, edit:
/etc/rc.confand below the line that starts with:
ifconfig_em0=...you'd add an alias line, that looks like this:
ifconfig_em0_alias0="inet 126.96.36.199 netmask 255.255.255.255"
Restart network now:
/etc/rc.d/netif restart && /etc/rc.d/routing restart
If you get the error:
Error, some other host already uses address 188.8.131.52then add this line to your ifcfg-eth0:0 file:
Error: Connection activation failed: The connection is not for this device.
|My IPs are not being loaded into the network device after bootup or network restarts|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST