I want to configure tagged VLAN on RHEL6 where the ethernet switch involved is a ProCurve one. Now what I did is:
- I created VLAN interfaces eth0.1001 and eth0.1002 on RHEL6 for server1 and VLAN interface eth0.1001 on RHEL6 in server2:
Server1: vconfig add eth0 1001
ifconfig eth0.1001 192.168.199.199 netmask 255.255.0.0 up
vconfig add eth0 1002
ifconfig eth0.1002 192.168.198.198 netmask 255.255.0.0 up
Server2: vconfig add eth0 1001
ifconfig eth0.1001 192.168.197.197 netmask 255.255.0.0 up
Created a tagged VLAN on the ProCurve switch: vlan 100 tagged 9 tagged 18
Run some traffic from server2 to server1: ping 192.168.199.199
which was successful
- Run some traffic from server2 to server1: ping 192.168.198.198
which was successful again!!
On the other hand when I checked the port assignment for default vlan (ie 1). it shows both port 9 and 18 as untagged. And if I remove the VLANs from default VLAN then there is no traffic going on between the servers (even between the same VLAN interfaces ie eth0.1001). In this case changing the vlan from 'tagged' to 'untagged' again enables the traffic to go on.
Now I would like to know what am I doing wrong here. In my understanding, when two vlans are created in the OS and then traffic is send from one host to another that are part of the same VLAN, the driver will add the appropriate tags and when the packets reach the switch it will see the tags and appropriately move it to the right port. The examples available online show the configuration between two servers. I would like to know whether the same switch vlan tagging is also possible.