Frequently Asked Questions

How do I set up additional IPs on RedHat and similar distributions?
Last Updated 2 years ago

You will need to configure virtual devices on your eth0 device (eth0:0, eth0:1, etc..)  Each should be configured as such

/etc/sysconfig/network-scripts/ifcfg-{device}
DEVICE={device}
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR={your virtual ip}
GATEWAY=Your.Server.IP.254
ARP=yes
HWADDR={virtual mac supplied}

/etc/sysconfig/network-scripts/route-{device}
Your.Server.IP.254 dev {device}
default via Your.Server.IP.254 dev {device}

Your gateway is always the first three bytes of your IP for your server, followed by 254.

Ensure that you never route your IP through your master server IP as that will make your server unreachable.

Please Wait!

Please wait... it will take a second!