You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<1> Show information before deleting member from vlan and add it to lag
admin@SWITCH101:~$ show vlan brief
+-----------+--------------+---------+----------------+-----------------------+
| VLAN ID | IP Address | Ports | Port Tagging | DHCP Helper Address |
+===========+==============+=========+================+=======================+
+-----------+--------------+---------+----------------+-----------------------+
admin@SWITCH101:~$ show vlan config
Name VID Member Mode
------ ----- -------- ------
admin@SWITCH101:~$show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports
----- ---------- ---------- -------
admin@SWITCH101:~$sudo bridge vlan show dev Ethernet80
port vlan ids
admin@SWITCH101:~$ ip link show Ethernet80
27: Ethernet80: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9100 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 6c:ec:5a:08:18:67 brd ff:ff:ff:ff:ff:ff
admin@SWITCH101:~$
<2> Create vlan100
admin@SWITCH101:~$ sudo config vlan add 100
admin@SWITCH101:~$
admin@SWITCH101:~$ show vlan brief
+-----------+--------------+---------+----------------+-----------------------+
| VLAN ID | IP Address | Ports | Port Tagging | DHCP Helper Address |
+===========+==============+=========+================+=======================+
| 100 | | | | |
+-----------+--------------+---------+----------------+-----------------------+
admin@SWITCH101:~$ show vlan config
Name VID Member Mode
------ ----- -------- ------
admin@SWITCH101:~$
<3> Add Ethernet80 to vlan100
admin@SWITCH101:~$ sudo config vlan member add 100 Ethernet80 -u
admin@SWITCH101:~$
admin@SWITCH101:~$ show vlan brief
+-----------+--------------+------------+----------------+-----------------------+
| VLAN ID | IP Address | Ports | Port Tagging | DHCP Helper Address |
+===========+==============+============+================+=======================+
| 100 | | Ethernet80 | untagged | |
+-----------+--------------+------------+----------------+-----------------------+
admin@SWITCH101:~$ show vlan config
Name VID Member Mode
------- ----- ---------- --------
Vlan100 100 Ethernet80 untagged
admin@SWITCH101:~$ sudo bridge vlan show dev Ethernet80
port vlan ids
Ethernet80 1 Egress Untagged
100 PVID Egress Untagged
admin@SWITCH101:~$ ip link show Ethernet80
27: Ethernet80: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9100 qdisc pfifo_fast master Bridge state UP mode DEFAULT group default qlen 1000
link/ether 6c:ec:5a:08:18:67 brd ff:ff:ff:ff:ff:ff
admin@SWITCH101:~$
<4> Delete Ethernet80 from vlan100
admin@SWITCH101:~$ sudo config vlan member del 100 Ethernet80
admin@SWITCH101:~$
admin@SWITCH101:~$ show vlan brief
+-----------+--------------+---------+----------------+-----------------------+
| VLAN ID | IP Address | Ports | Port Tagging | DHCP Helper Address |
+===========+==============+=========+================+=======================+
| 100 | | | | |
+-----------+--------------+---------+----------------+-----------------------+
admin@SWITCH101:~$ show vlan config
Name VID Member Mode
------ ----- -------- ------
admin@SWITCH101:~$ sudo bridge vlan show dev Ethernet80
port vlan ids
Ethernet80 1 Egress Untagged
admin@SWITCH101:~$ ip link show Ethernet80
27: Ethernet80: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9100 qdisc pfifo_fast master Bridge state UP mode DEFAULT group default qlen 1000
link/ether 6c:ec:5a:08:18:67 brd ff:ff:ff:ff:ff:ff
admin@SWITCH101:~$
<5>Create PortChannel0001
admin@SWITCH101:~$ sudo config portchannel add PortChannel0001
admin@SWITCH101:~$
admin@SWITCH101:~$ show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports
----- --------------- ----------- -------
0001 PortChannel0001 LACP(A)(Dw) N/A
admin@SWITCH101:~$
<6> Add Ethernet80 to PortChannel0001
admin@SWITCH101:~$ sudo config portchannel member add PortChannel0001 Ethernet80
admin@SWITCH101:~$
admin@SWITCH101:~$ show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports
----- --------------- ----------- -------
0001 PortChannel0001 LACP(A)(Dw) N/A
admin@SWITCH101:~$
admin@SWITCH101:~$ redis-cli -n 4
127.0.0.1:6379[4]> keys *PORTCH*
1) "PORTCHANNEL|PortChannel0001"
2) "PORTCHANNEL_MEMBER|PortChannel0001|Ethernet80"
127.0.0.1:6379[4]> keys *PORTCHANNEL*
1) "PORTCHANNEL|PortChannel0001"
2) "PORTCHANNEL_MEMBER|PortChannel0001|Ethernet80"
127.0.0.1:6379[4]> HGETALL "PORTCHANNEL|PortChannel0001"
1) "admin_status"
2) "up"
3) "mtu"
4) "9100"
127.0.0.1:6379[4]> HGETALL "PORTCHANNEL_MEMBER|PortChannel0001|Ethernet80"
1) "NULL"
2) "NULL"
127.0.0.1:6379[4]>
As you can see from step 4, when Ethernet80 is deleted from vlan100, its "master bridge" flag still exists. In teammgr, when add member to lag, it will judge whether the member is enslaved; if enslaved is True, it will return directly, and will not perform the operation of adding to lag. I think this is probably the reason for the failure to add member to lag, for reference.
The text was updated successfully, but these errors were encountered:
<1> Show information before deleting member from vlan and add it to lag
<2> Create vlan100
<3> Add Ethernet80 to vlan100
<4> Delete Ethernet80 from vlan100
<5>Create PortChannel0001
<6> Add Ethernet80 to PortChannel0001
<7> sonic version
As you can see from step 4, when Ethernet80 is deleted from vlan100, its "master bridge" flag still exists. In teammgr, when add member to lag, it will judge whether the member is enslaved; if enslaved is True, it will return directly, and will not perform the operation of adding to lag. I think this is probably the reason for the failure to add member to lag, for reference.
The text was updated successfully, but these errors were encountered: