Command Line Reference
Ethernet Switching
VLAN Translation
4 min
show interface vlan mapping 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 mapping port stage original vlan mapping vlan \ ethernet1 egress vlan20 vlan10 ethernet1 ingress vlan10 vlan20 ethernet2 egress vlan200 vlan100 ethernet2 ingress vlan100 vlan200 show interface vlan mapping 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 ingress port stage original vlan mapping vlan \ ethernet1 ingress vlan10 vlan20 ethernet2 ingress vlan100 vlan200 sonic# show interface vlan mapping egress port stage original vlan mapping vlan \ ethernet1 egress vlan20 vlan10 ethernet2 egress vlan200 vlan100 vlan mapping ingress original vlan mapping vlan 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 20 vlan mapping egress original vlan mapping vlan 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
