Here are the steps to configure the required VLAN translations on a Dell SONiC switch:
sonic# configure terminal
sonic(config)# interface Ethernet1/1
sonic(config-if-Ethernet1/1)# switchport mode trunk
sonic(config-if-Ethernet1/1)# switchport vlan mapping 100 200
sonic(config-if-Ethernet1/1)# end
sonic# write memory
Map a Double-Tagged VLAN Packet with Outer CVLAN 100 and Inner dot1q 200 to SVLAN 300 on Interface Eth1/2:
sonic# configure terminal
sonic(config)# interface Ethernet1/2
sonic(config-if-Ethernet1/2)# switchport mode trunk
sonic(config-if-Ethernet1/2)# switchport vlan mapping 100 200 300
sonic(config-if-Ethernet1/2)# end
sonic# write memory
Comprehensive Detailed Step by Step Explanation with References:
Enter Configuration Mode:
Configure Interface Eth1/1:
Enter interface configuration mode for Ethernet1/1 using the command interface Ethernet1/1.
Set the switchport mode to trunk with the command switchport mode trunk.
Configure the VLAN translation using the switchport vlan mapping 100 200 command, which maps CVLAN 100 to SVLAN 200.
Exit the interface configuration mode by typing end.
Save the configuration with write memory.
Configure Interface Eth1/2:
Enter interface configuration mode for Ethernet1/2 using the command interface Ethernet1/2.
Set the switchport mode to trunk with the command switchport mode trunk.
Configure the double-tagged VLAN translation using the switchport vlan mapping 100 200 300 command, which maps packets with outer CVLAN 100 and inner dot1q 200 to SVLAN 300.
Exit the interface configuration mode by typing end.
Save the configuration with write memory.
References:
Dell Technologies Networking - SONiC
Dell Enterprise SONiC Deployment Guide
These steps provide a comprehensive guide to configure VLAN translations on a Dell SONiC switch, ensuring that the specific requirements for single-tagged and double-tagged VLAN mappings are met.