Got it

how to restrict untagged packet at dot1q-tunnel interface ?

Created: Feb 11, 2021 06:59:24Latest reply: Feb 12, 2021 13:56:40 261 2 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello community

we has v2r19 sofwtare running S53 switch

configure like this:

int X

port ink-type dot1q-tunnel

port default vlan 50


this configuration add 50 tag to tagged packets, but this configuration allow pass untagged packets, how we can drop untagged packets and allow only tagged packets enter such interface ?

Featured Answers
BAZ
MVE Author Created Feb 11, 2021 07:22:31

The preceding configuration changes the link type of the interface to dot1q-tunnel. A dot1q-tunnel interface adds a VLAN tag to packets before forwarding them, regardless of the original VLAN IDs of the packets. Before sending a packet, a dot1q-tunnel interface removes the tag with the default VLAN ID from the packet

If you want to send traffic with specific VLAN IDs, you may use following


Quidway-GigabitEthernet1/0/1] port link-type trunk
[Quidway-GigabitEthernet1/0/1] port trunk pvid vlan 20
[Quidway-GigabitEthernet1/0/1] port trunk allow-pass vlan 2 10 20


The preceding configuration changes the link type of the interface to trunk.

A trunk interface processes packets as follows:

  • When receiving an untagged packet:

             The interface tags the packet with the default VLAN ID. If the default VLAN ID is in the list of allowed VLAN IDs, the interface accepts the packet.
             The interface tags the packet with the default VLAN ID. If the default VLAN ID is not in the list of allowed VLAN IDs, the interface drops the packet.

  • When receiving a tagged packet:

             If the VLAN ID of the packet is in the list of allowed VLAN IDs, the interface accepts the packet.
             If the VLAN ID of the packet is not in the list of allowed VLAN IDs, the interface drops the packet.

  • When sending a packet:

             If the VLAN ID of the packet is the same as the default VLAN and is in the list of allowed VLAN IDs, the interface removes the tag from the packet and sends the packet.
             If the VLAN ID of the packet is different from the default VLAN and is in the list of allowed VLAN IDs, the interface retains the tag and sends the packet.


View more
  • x
  • convention:

Recommended answer

chenhui
Admin Created Feb 12, 2021 13:56:40

Hello Kolli,
You are recommended to use the selective QinQ rather than the basic QinQ. With selective QinQ, you can set the interface default vlan to, for example, 400, and don't allow the default vlan passing through the switch.
View more
  • x
  • convention:

All Answers
BAZ
BAZ MVE Author Created Feb 11, 2021 07:22:31

The preceding configuration changes the link type of the interface to dot1q-tunnel. A dot1q-tunnel interface adds a VLAN tag to packets before forwarding them, regardless of the original VLAN IDs of the packets. Before sending a packet, a dot1q-tunnel interface removes the tag with the default VLAN ID from the packet

If you want to send traffic with specific VLAN IDs, you may use following


Quidway-GigabitEthernet1/0/1] port link-type trunk
[Quidway-GigabitEthernet1/0/1] port trunk pvid vlan 20
[Quidway-GigabitEthernet1/0/1] port trunk allow-pass vlan 2 10 20


The preceding configuration changes the link type of the interface to trunk.

A trunk interface processes packets as follows:

  • When receiving an untagged packet:

             The interface tags the packet with the default VLAN ID. If the default VLAN ID is in the list of allowed VLAN IDs, the interface accepts the packet.
             The interface tags the packet with the default VLAN ID. If the default VLAN ID is not in the list of allowed VLAN IDs, the interface drops the packet.

  • When receiving a tagged packet:

             If the VLAN ID of the packet is in the list of allowed VLAN IDs, the interface accepts the packet.
             If the VLAN ID of the packet is not in the list of allowed VLAN IDs, the interface drops the packet.

  • When sending a packet:

             If the VLAN ID of the packet is the same as the default VLAN and is in the list of allowed VLAN IDs, the interface removes the tag from the packet and sends the packet.
             If the VLAN ID of the packet is different from the default VLAN and is in the list of allowed VLAN IDs, the interface retains the tag and sends the packet.


View more
  • x
  • convention:

Hello Kolli,
You are recommended to use the selective QinQ rather than the basic QinQ. With selective QinQ, you can set the interface default vlan to, for example, 400, and don't allow the default vlan passing through the switch.
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.