I can't seem to get IP binding to work properly. I have two files: ifcfg-eth0 and ifcfg-eth0:1 (tried 0:0, 0:2 and still not working).
eth0 is supposed to be for IP 192.168.1.3 and eth0:1 is for 192.168.1.4.
After I create the files, I restarted networking. When I use ifconfig, it only shows eth0. If I try to ifup eth0:1, ifconig still only shows eth0 but with the eth0:1 IP.
Shouldn't it show both eth0 and eth0:1?
What am I doing wrong?
Here are the files: ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.3
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=192.168.1.1
ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.4
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=192.168.1.1
I did not include the hardware address.
ip addr show
.