[Edgecore SONiC] Selective QinQ Follow
Reference model:
- Switch model name:
- AS7726-32X
- AS7326-56X
- AS7816-64X
- AS5835-54X
- AS4630-54PE
- Edgecore SONiC version:
- Edgecore-SONiC_20201123_130028_ec202006_74
- Edgecore-SONiC_20201229_070315_ec202006_101
Restriction:
Doesn't support QinQ for CLI.
Example: Selective QinQ
Topology:
Command of AS5835-54X:
Procedure:
Step 1: Down speed to 1G on Ethernet0 and Ethernet1.
admin@sonic:~$ sudo config interface speed Ethernet0 1000
admin@sonic:~$ sudo config interface speed Ethernet1 1000
Step 2: Disable TX-disable on Ethernet0 and Ethernet1.
admin@sonic:~$ sudo accton_as5835_54x_util.py set sfp 1 0
admin@sonic:~$ sudo accton_as5835_54x_util.py set sfp 1 0
Step 3: Created the VLAN and allowed the VLAN member to the port.
admin@sonic:~$ sudo config vlan add 10
admin@sonic:~$ sudo config vlan add 100
admin@sonic:~$ sudo config vlan member add 10 Ethernet0
admin@sonic:~$ sudo config vlan member add -u 100 Ethernet0
admin@sonic:~$ sudo config vlan member add 100 Ethernet1
Step 4: Modified the /etc/sonic/config_db.json
Config_DB.json:
"VLAN_STACKING": {
"Ethernet0|ingress|10": {
"action": "push",
"s_vlanid": "100"
},
"Ethernet0|egress|100": {
"action": "pop"
}
}
Command of AS4630-54PE:
Procedure:
Step 1: Created the VLAN and allowed the VLAN member to the port.
admin@sonic:~$ sudo config vlan add 10
admin@sonic:~$ sudo config vlan add 100
admin@sonic:~$ sudo config vlan member add 10 Ethernet0
admin@sonic:~$ sudo config vlan member add -u 100 Ethernet0
admin@sonic:~$ sudo config vlan member add 100 Ethernet1
Step 2: Modified the /etc/sonic/config_db.json
Config_DB.json:
"VLAN_STACKING": {
"Ethernet0|ingress|10": {
"action": "push",
"s_vlanid": "100"
},
"Ethernet0|egress|100": {
"action": "pop"
}
}
Test result:
Capture packet on AS4630-54PE's Ethernet1.
Comments
0 comments
Please sign in to leave a comment.