I would add these commands to one of your startup scripts so that you won't lose your changes after a reboot. I used /etc/rc.d/rc.local for the second IP and /etc/sysconfig/network-scripts/ifcfg-eth0 for the first IP. I'm not sure if creating an ifcfg-eth0:0 file would work or not.
Creating the file ifcfg-eth0:1 would work. You might want to add the route for that ip as well. An ex:
route add -host 192.168.1.100 netmask 255.255.255.0 Rninja
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.