VLAN Translation
此内容尚不支持你的语言。
show interface vlan-mapping
Section titled “show interface vlan-mapping”[Command]
show interface vlan-mapping[ interface_id ]
[Purpose]
View global VLAN translation rules.
[View]
System View
[Use Cases]
sonic# show interface vlan-mappingPort Stage Original Vlan Mapping Vlan--------- ------- --------------- --------------Ethernet1 egress Vlan20 Vlan10Ethernet1 ingress Vlan10 Vlan20Ethernet2 egress Vlan200 Vlan100Ethernet2 ingress Vlan100 Vlan200show interface vlan-mapping
Section titled “show interface vlan-mapping”[Command]
show interface vlan-mapping [ingress|egress] [ interface_id ]
[Purpose]
View global interface inbound/outbound VLAN translation rules.
[View]
System View
[Use Cases]
sonic# show interface vlan-mapping ingressPort Stage Original Vlan Mapping Vlan--------- ------- --------------- --------------Ethernet1 ingress Vlan10 Vlan20Ethernet2 ingress Vlan100 Vlan200sonic# show interface vlan-mapping egressPort Stage Original Vlan Mapping Vlan--------- ------- --------------- --------------Ethernet1 egress Vlan20 Vlan10Ethernet2 egress Vlan200 Vlan100vlan-mapping ingress original-vlan mapping-vlan
Section titled “vlan-mapping ingress original-vlan mapping-vlan”[Command]
vlan-mappping ingress original-vlan vlanid mapping-vlan vlanid
no vlan-mappping ingress original-vlan vlanid
[Purpose]
Configure VLAN translation rules for inbound traffic on the interface
[View]
Interface View
[Comment]
When configuring VLAN translation rules, both the original and translated VLANs must be added to the interface.
[Use Cases]
sonic(config-if-1)# vlan-mapping ingress original-vlan 10 mapping-vlan 20vlan-mapping egress original-vlan mapping-vlan
Section titled “vlan-mapping egress original-vlan mapping-vlan”[Command]
vlan-mappping egress original-vlan vlanid mapping-vlan vlanid
no vlan-mappping egress original-vlan vlanid
[Purpose]
Configure VLAN translation rules for outbound traffic on the interface
[View]
Interface View
[Comment]
When configuring VLAN translation rules, both the original and translated VLANs must be added to the interface.
[Use Cases]
sonic(config-if-1)# vlan-mapping egress original-vlan 20 mapping-vlan 10