I am trying to bind a second IP to a NIC as eth0:1. What i found is that the best way to do this is to put the following in the rc.local file. Is this correct?
/sbin/ifconfig eth0:1 192.168.12.12
/sbin/route add -host 192.168.12.12 dev eth0:1
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.