-   Linux - Networking (
-   -   Help in Vlan-Interface (

Paris Heng 03-02-2009 02:45 PM

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] ?

grepmasterd 03-02-2009 06:20 PM

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 netmask

ping -nq -c 20 &

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 tell
15:18:11.496300 vlan 52, p 0, arp who-has tell

output from the second tcpdump shows the untagged arp pkts:
15:18:12.504295 arp who-has tell
15:18:13.504298 arp who-has tell

All times are GMT -5. The time now is 12:51 AM.