Add MSTP implementation and update network/frontend files#380
Open
RamProsad2 wants to merge 36 commits intomainfrom
Open
Add MSTP implementation and update network/frontend files#380RamProsad2 wants to merge 36 commits intomainfrom
RamProsad2 wants to merge 36 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MSTP on VLANs Demo - Bridge: br0, VLANs: 10 & 20, MSTI: 1
1.MSTP Bridge Status
sudo mstpctl showbridge br0
Output:
br0 CIST info
enabled yes
bridge id 8.000.0A:17:5F:11:1D:17
force protocol version rstp
topology change port veth1
sudo mstpctl showtree br0 1
Output:
br0 MSTI 1 info
bridge id 8.001.0A:17:5F:11:1D:17
regional root 8.001.0A:17:5F:11:1D:17
root port none
topology change port veth1
VLAN → FID mapping
sudo mstpctl showvid2fid br0
Output:
FID 1: 10,20 # VLANs 10 & 20 are grouped in FID 1
FID → MSTI mapping
sudo mstpctl showfid2mstid br0
Output:
MSTID 1: 1 # FID 1 belongs to MSTI 1
sudo mstpctl showport br0 veth1
sudo mstpctl showport br0 veth2
Output:
veth1 8.001 forw ... Desg # Forwarding (Designated) for VLANs 10 & 20
veth2 8.002 disc ... Back # Blocking (Backup) for VLANs 10 & 20
sudo ip link set veth2 down
sudo ip link set veth2 up
sudo mstpctl showtree br0 1
sudo mstpctl showport br0 veth1
sudo mstpctl showport br0 veth2
MSTP detects topology changes and updates port roles automatically
Conclusion