Hi All,
This is a Network setup that requires knowledge and understanding of 802.1q .
I have a Linux box that is connected to a Cisco switch.
I need to add multiple classes on a single NIC on the linux box.
I'm almost done with the setup, but I'm having a difficult time finishing it.
I can ping the additional classes on the linux box from OTHER boxes, that reside on SAME class.
But, if you ping the server from a different class, it is not pingable.
This is due probabaly to routing/gateway/reverse-routing or something like that.
That's where I need you assistance.
Here is my configuration:
The setup in the Cisco switch is:
3550-FW#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/3 on 802.1q trunking 1
Fa0/46 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/3 100,400
Fa0/46 100,200,400
Port Vlans allowed and active in management domain
Fa0/3 100,400
Fa0/46 100,200,400
Port Vlans in spanning tree forwarding state and not pruned
Fa0/3 100,400
Fa0/46 100,200,400
In my setup, we are going to use interface fa0/3 (fa0/46 is working with ESXi 4.1 and works well).
My server (Linux - CentOS) has a one network interface with the following IP setup:
6.9.141.65
6.9.141.66
6.9.141.67
netwmask: [login to view URL]
gateway: 6.9.141.1
I need to ADD another class on this NIC:
[login to view URL]
[login to view URL]
[login to view URL]
netwmask: [login to view URL]
gateway: [login to view URL]
Here are the setup of the files:
/etc/sysconfig/network-scripts # less ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
DEVICE=eth0
# BOOTPROTO=none
# BROADCAST=6.9.141.127
HWADDR=00:0b:cd:ce:3e:b5
ONBOOT=yes
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
# NETMASK=[login to view URL]
# IPADDR=6.9.141.65
# GATEWAY=6.9.141.1
# TYPE=Ethernet
/etc/sysconfig/network-scripts # less ifcfg-eth0.100
# Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
DEVICE=eth0.100
VLAN=yes
BOOTPROTO=static
ONBOOT=yes
NETMASK=[login to view URL]
IPADDR=6.9.141.65
GATEWAY=6.9.141.1
/etc/sysconfig/network-scripts # less ifcfg-eth0.100:0
# Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
DEVICE=eth0.100:0
VLAN=yes
BOOTPROTO=static
ONBOOT=yes
#NETMASK=[login to view URL]
#IPADDR=6.9.141.66
#GATEWAY=6.9.141.1
/etc/sysconfig/network-scripts # less ifcfg-eth0.400
DEVICE=eth0.400
VLAN=yes
BOOTPROTO=static
ONBOOT=yes
IPADDR=[login to view URL]
NETMASK=[login to view URL]
/etc/sysconfig/network-scripts # less ifcfg-eth0.400:0
DEVICE=eth0.400:0
VLAN=yes
BOOTPROTO=static
ONBOOT=yes
IPADDR=[login to view URL]
NETMASK=[login to view URL]
/etc/sysconfig/network-scripts # less /etc/iproute2/rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 [login to view URL]
100 eth0.100
400 eth0.400
I'm still not able to reach the vlan 400 if I ping it from OUTSIDE of the vlan.
This is a simple project and should not take more than minutes to an hour (if few attempts to fix are done).
The budget for this project is not going to exceed $50, so if you ask for more, you are just going to be ignored.
Good luck to all and happy bidding.