120 likes | 430 Views
ZXR10 Routing Switch VLAN Configuration. V 1.2. Objectives. Through learning this Course, you may Master the VLAN configuration steps Learn about the VLAN configuration examples. Contents. V LAN Configuration Step V LAN Configuration Example. VLAN Configuration.
E N D
Objectives • Through learning this Course, you may • Master the VLAN configuration steps • Learn about the VLAN configuration examples
Contents • VLAN Configuration Step • VLAN Configuration Example
VLAN Configuration • Creating specified VLAN and entering VLAN configuration mode ZXR10(config)# vlan <vlan-id> • Set VLAN link type on interface • ZXR10(config)# interface <interface-name> • ZXR10(config-if)# switchport mode {access | trunk | hybrid} • Adding VLAN member port • ZXR10(config)# interface <interface> • ZXR10(config-if)# switchport access vlan {<vlan-id> | <vlan-name>} • ZXR10(config-if)# switchport trunk vlan <vlan-list> • ZXR10(config-if)# switchport hybrid vlan <vlan-list> [tag | untag] • Set port native VLAN • ZXR10(config)# interface <interface> • ZXR10(config-if)# switchport {trunk | hybrid} native vlan {<vlan-id> | <vlan-name>}
VLAN Maintenance Commands • Display VLAN configuration information ZXR10# showvlan SW1(config)#show vlan VLAN Name PvidPorts UntagPorts TagPorts -------------------------------------------------------------------------------- 1 VLAN0001 gei_1/1-16, gei_2/3-8,g ei_3/1-8,ge i_4/1-8,gei _5/1-8,xgei _6/1-4 10 VLAN0010 gei_2/1-2,s gei_2/1-2,sm martgroup10 artgroup10 20 VLAN0020 gei_2/1-2,sm artgroup10
Contents • VLAN Configuration Step • VLAN Configuration Example
VLAN Configuration Example--SwitchA ZXR10_A(config)# vlan 10 ZXR10_A(config-vlan)# switchport pvid gei_3/1-2 ZXR10_A(config-vlan)#exit ZXR10_A(config)# vlan 20 ZXR10_A(config-vlan)# switchport pvid gei_3/4-5 ZXR10_A(config-vlan)#exit ZXR10_A(config)# interface gei_3/24 ZXR10_A(config-if)# switchport mode trunk ZXR10_A(config-if)# switchport trunk vlan 10,20
VLAN Configuration Example--SwitchA ZXR10_B(config)# vlan 10 ZXR10_B(config-vlan)# switchport pvid gei_7/1-2 ZXR10_B(config-vlan)#exit ZXR10_B(config)# vlan 20 ZXR10_B(config-vlan)# switchport pvid gei_7/4-5 ZXR10_B(config-vlan)#exit ZXR10_B(config)# interface gei_7/24 ZXR10_B(config-if)# switchport mode trunk ZXR10_B(config-if)# switchport trunk vlan 10,20
VLAN Configuration Example—Switch A ZXR10_A# show vlan VLAN Name Status Said MTU IfIndex PvidPorts UntagPorts TagPorts -------------------------------------------------------------------------------- 10 VLAN0010 active 100010 1500 0 gei_3/1,gei_3/2 gei_3/24 20 VLAN0020 active 100020 1500 0 gei_3/4,gei_3/5 gei_3/24
VLAN Configuration Example—Switch B ZXR10_B# show vlan VLAN Name Status Said MTU IfIndex PvidPorts UntagPorts TagPorts -------------------------------------------------------------------------------- 10 VLAN0010 active 100010 1500 0 gei_7/1,gei_7/2 gei_7/24 20 VLAN0020 active 100020 1500 0 gei_7/4,gei_7/5 gei_7/24