PicOS support push/swap/pop S-VLAN in Q-in-Q, and the S-VLAN TPID can configure as 0x8100/0x88a8/0x9100 and 0x9200. But in the same port, PicOS only support configure one TPID value, that means the traffic through one port will can push/swap/pop one type of TPID.
a, If one TPID configured in ingress port, switch can recognize it and deal the matched traffic;
b, If one TPID configured in egress port, switch can design it in the traffic which send out from the port.
1, TPID used in Q-in-Q
Note |
---|
If the actions include push-vlan and has no push_l2mpls: push_vlan action will use out_port's tpid. For example, a. untagged packet push one tag, the result will be: out_port's tpid | payload b. untagged packet push two tags, the result will be: out_port's tpid | 0x8100 | payload |
...
Code Block |
---|
ovs-vsctl set interface <port> options:tpid=<value> <value> can configure one value as 0x8100/0x88a8/0x9100/0x9200, for example if the S-VLAN TPID is 0x88a8, the value must set 0x88a8. By default, the value is 0x8100. admin@PicOS-OVS$sudo /etc/init.d/picossystemctl restart picos |
In Q-in-Q flow, only support match outer-vlan.
...