I wanted to apply a virtual wire between two sub-interfaces 1.10 and 2.20, which are basically in two different VLAN ID (10 and 20), but I'm getting an error saying that sub-interfaces cannot have interfaces with different VLAN (10/20).
Is this the default behavior for virtual wire, or am I missing something?
Below is the answer for Native VLAN:
Setting a VLAN as a native VLAN on Cisco turns off tagging.
The PAN device has no concept of "Native VLAN". The logical interface assigned to the physical interface would be the interface to accept untagged vlans.
If the following interfaces are created:
Eth1/1 ---- Untagged Traffic
Eth1/1.100 --- Tagged with VLID = 100
Eth1/1.200 --- Tagged with VLID = 200
On the Cisco switch configure VLAN 200 to be the "Native VLAN", then the packets exiting the switch would have no tag. These packets would enter the PAN device on Eth1/1 because it is expecting untagged traffic.
If you've got two wires with different VLAN's chances are that you are running two different logical networks as well (ie. different ip networks). If, however, the same ip network is present on both VLAN's you can use L2 interfaces instead of vwire and then do VLAN translation between them.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!