Manage the MAC address table of the ruijie switch:
1. view the MAC address table
S2126G # show mac-address-table
2. Configure the MAC Address Table Record survival time (default: 300 seconds)
S2126G (config) # mac-address-table aging-time <10-1000000>
3. view the survival time of the MAC Address Table Record
S2126G # show mac-address-table aging-time
VLAN configuration of the ruijie switch:
1. Add a VLAN
S2126G (config) # vlan <1-4094>
S2126G (config-vlan )#
2. Name a VLAN (optional)
S2126G (config-vlan) # name
Allocate the ruijie switch port to the VLAN
1. Configure Port VLAN
Switch (config-if) # switchport access vlan <1-4094>
2. Configure the Tag VLAN
Switch (config-if) # switchport mode trunk
1) configure the local (native) VLAN
Switch (config-if) # switchport trunk native vlan <1-4094>
2). Clear VLAN from the trunk Link
Switch (config-if) # switchport trunk allowed vlan unique T
Note: VLAN1 cannot be cleared
Verify the vlan of the ruijie switch:
1. Display All VLANs: Switch # show VLAN
2. display individual VLANs: Switch # show VLAN id <1-4094>
Save VLAN information to flash: Switch # write memory
Clear VLAN information from flash: Switch # delete flash: vlan. dat
RSTP configuration of ruijie switch:
1. Enable spanning tree: S2126G (config) # spanning-tree
2. Configure the priority of the ruijie switch: S2126G (config) # spanning-tree priority <0-61440>
A multiple of "0" or "4096" (all 12bit values after rstp bpdu are 0)
3. Configure the switch port priority: S2126G (config-if) # spanning-tree port-priority <0-240>
Multiples of "0" or "16" (all 4bit values after rstp bpdu are 0)
4. Configure the hello time of the spanning tree (determined by the Root): S2126G (config) # spanning-tree hello-time <1-10>
5. Verification of spanning tree: Switch # show spanning-tree
Switch # show spanning-tree interface <interface Name> <interface ID>
For more information about the configuration commands of ruijie vswitch, refer to: part 1 and part 2.