Create and Name VLAN
S1 (config) # vlan 10
S1 (config-vlan) # name User
S1 (config) # vlan 99
S1 (config-vlan) # name Management
Management VLAN
S1 (config) # int vlan 99
S1 (config-if) # ip add 192.168.99.1 255.255.255.0
S1 (config-if) # no shut
Interface Trunk Native VLAN
S1 (config) # int f0/10
S1 (config-if) # no shut
S1 (config-if) # switchport mode trunk
S1 (config-if) # switchport trunk native vlan 99
or
S1 (config) # int port-channel 1
S1 (config-if) # switchport mode trunk
S1 (config-if) # switchport trunk native vlan 99
Interface Access VLAN, PortFast and BPDU Guard
S1 (config) # int f0/1
S1 (config-if) # no shut
S1 (config-if) # switchport mode access
S1 (config-if) # switchport access vlan 10
S1 (config-if) # spanning-tree portfast / span port
S1 (config-if) # spanning-tree bpduguard enable / span bpdu
Primary and Secondary Root Bridge, Rapid PVST
S1 (config) # spanning-tree vlan 1,10,99 root primary / span vlan 1,10,99 root pri
S1 (config) # spanning-tree mode rapid-pvst / span mode rapid
S2 (config) # spanning-tree vlan 1,10,99 root secondary / span vlan 1,10,99 root sec
S2 (config) # spanning-tree mode rapid-pvst / span mode rapid
S2 (config) # show spanning-tree
S2 (config) # show run | inc span mode
No comments:
Post a Comment