Help in Vlan-Interface
1. What it means by eth1.200? I know it is a subinterface, but did it means this interface will carry Vlan tag 200?
2. eth1.200, will any ip packets that going out this interface will be tagged with VLAN tag 200? 3. [eth1-----Trunk------Cisco Switch] it is the configuration same with [eth1.300-----Trunk------Cisco Switch] ? |
in a nutshell 1) yes, 2) yes, 3) no -- the Cisco port must be tagged w/ vlan 300.
to demo this for yourself: sudo vconfig add eth0 52 sudo ifconfig eth0.52 10.0.2.1 netmask 255.255.255.0 ping -nq -c 20 10.0.2.10 & sudo tcpdump -nc2 -i eth0 vlan sudo tcpdump -nc2 -i eth0.52 arp output from first tcpdump shows the vlan tag: 15:18:10.496264 vlan 52, p 0, arp who-has 10.0.2.10 tell 10.0.2.1 15:18:11.496300 vlan 52, p 0, arp who-has 10.0.2.10 tell 10.0.2.1 output from the second tcpdump shows the untagged arp pkts: 15:18:12.504295 arp who-has 10.0.2.10 tell 10.0.2.1 15:18:13.504298 arp who-has 10.0.2.10 tell 10.0.2.1 |
All times are GMT -5. The time now is 05:33 AM. |