How Can an Observing Port Remove VLAN Tags from Packets?
You can configure an observing port to remove VLAN tags from mirrored packets as follows:
- When the observing port configuration can be modified:
Run the port hybrid untagged vlan vlan-id command on the observing port.
For example, perform the following configurations to configure the observing port GE1/0/1 to remove VLAN tag 4094 from packets:
<Switch> system-view [Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] port link-type hybrid [Switch-GigabitEthernet1/0/1] port hybrid untagged vlan 4094
- When the observing port configuration cannot be modified:
Deploy a switch (SW in this example) between the observing port and monitoring device to remove VLAN tags, as shown in Figure 8-26.
Then, perform the following configurations on the switch.
<SW> system-view [SW] interface gigabitethernet 1/0/1 [SW-GigabitEthernet1/0/1] port link-type trunk [SW-GigabitEthernet1/0/1] port trunk allow-pass vlan 4094 [SW-GigabitEthernet1/0/1] quit [SW] interface gigabitethernet 1/0/2 [SW-GigabitEthernet1/0/2] port link-type access [SW-GigabitEthernet1/0/2] port default vlan 4094 [SW-GigabitEthernet1/0/2] quit [SW] vlan 4094 [SW-vlan4094] mac-address learning disable