I am trying to bind 7 /24 VLAN's to an interface. This is what my eth0 looks like and one of my /24's.
Code: Select all
root@localhost network-scripts]# cat ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
[root@localhost network-scripts]# cat ifcfg-eth0.9
DEVICE=eth0.9
BOOTPROTO=none
HWADDR=00:19:xx:xx:xx:xx
ONBOOT=yes
TYPE=Ethernet
IPADDR=173.xx.xx.2
NETMASK=255.255.255.0
VLAN=yes
[root@localhost network-scripts]# cat ifcfg-eth0.9-range0
IPADDR_START=173.xx.xx.3
IPADDR_END=173.xx.xx.254
NETMASK=255.255.255.0
CLONENUM_START=10
Code: Select all
[root@localhost network-scripts]# cat ifcfg-eth0.29
DEVICE=eth0.29
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.xx.xx.2
NETMASK=255.255.255.0
VLAN=yes
[root@localhost network-scripts]# cat ifcfg-eth0.29-range0
IPADDR_START=192.xx.xx.3
IPADDR_END=192.xx.xx.254
NETMASK=255.255.255.0
CLONENUM_START=274
Code: Select all
[root@localhost network-scripts]# cat rule-eth0.9
from 173.xx.xx.0/24 table 1
[root@localhost network-scripts]# cat route-eth0.9
default via 173.xx.xx.1 dev eth0.9 table 1
[root@localhost network-scripts]# cat route-eth0.29
default via 192.xx.xx.1 dev eth0.29 table 2
[root@localhost network-scripts]# cat rule-eth0.29
from 192.xx.xx.0/24 table 2
[root@localhost network-scripts]#
Code: Select all
[root@localhost network-scripts]# ping 4.2.2.2
connect: Network is unreachable
[root@localhost network-scripts]#
Code: Select all
[root@localhost network-scripts]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.12
173.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.9
198.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.14
198.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.15
192.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.19
199.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.11
192.xx.xx.0 * 255.255.255.0 U 0 0 0 eth0.29
link-local * 255.255.0.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0.11
link-local * 255.255.0.0 U 0 0 0 eth0.12
link-local * 255.255.0.0 U 0 0 0 eth0.14
link-local * 255.255.0.0 U 0 0 0 eth0.15
link-local * 255.255.0.0 U 0 0 0 eth0.19
link-local * 255.255.0.0 U 0 0 0 eth0.29
link-local * 255.255.0.0 U 0 0 0 eth0.9
[root@localhost network-scripts]#