I've got two hosts running the same release of RHEL (6.4). I've been given eight IP addresses to put onto one NIC in each host.
On host A, I manually created ifcfg-eth0, ifcfg-etho:1, ifcfg-etho:2, ifcfg-etho:3, ifcfg-etho:4, ifcfg-etho:5, ifcfg-etho:6, ifcfg-etho:7 ifcfg-eth0 looks like this:
HWADDR=xx:xx:xx:xx:xx:xx
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
IPADDR=xx.xx.xx.xx
PREFIX=24
GATEWAY=xx.xx.xx.xx
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=VLAN20
ONBOOT=yes
In the secondary interface files, I put this:
DEVICE=eth0:x
IPADDR=xx.xx.xx.xx
PREFIX=24
GATEWAY=xx.xx.xx.xx
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
When I viewed the NetworkManager GUI it showed one entry called VLAN20 with all of the IPs under the IPv4 Settings tab. Now, on Host B, I've created the same files, with the same fields. However the NetworkManager GUI doesn't show VLAN20, it shows seven items with the name "System eth0:x" (and no mention of just eth0). If I use the NetworkManager GUI on host B to mimic the settings on host A, it creates a single ifcfg-VLAN20 file with all of the addresses in, and the secondary interfaces don't show up in ifconfig...
What's happening?
ifconfig -a
show you? I personally don't trust the NetworkManager GUI...ifconfig -a
shows all the interfaces, including alias ones. Host B only shows the physical interface. @Chopper3 They all have gateways as that is how I was told to congure them. @ChristopherKarel The interfaces are on the same subnet, on the same VLAN. Per host, the eight IP addresses are contiguous.