Go to /etc/sysconfig/network-scripts
Copy this file to ifcfg-eth0:0, ifcfg-eth0:1, ifcfg-eth0:2, etc... one per IP you want to bind to the box.
Edit each file replacing the line eth0 with eth0:0, eth0:1, eth0:2, etc... as per the filename, and replace the IP address with your new ipaddress, so that you have one ifcfg-eth0:x file per ip address.
When you're done do: `ifup eth0:0, ifup eth0:1, etc...` or `service network restart`.
- sandip's blog
- Login or register to post comments
Comments
Just wondering how to define a default IP address for outgoing traffic. Is there any solution for that?
This helped me today.