2
 # # # L aye r 2 S e cu rit y # P a rt 1 C en t ral # sh ow sp anni n g -tr e e C en t ra l ( co n g ) # sp a n n i n g- t r e e v l a n 1 r o o t pr i m a r y S w - 1 ( co n g ) # sp a n n in g - t ree vl a n 1 r o o t se co n da r y # P a rt 2 S W - A ( co n g ) # sp a n n i n g -tr e e p ort f ast d ef a u l t S W - B ( co n g ) # sp an n i n g -tr e e p ort f ast d e f a u l t S W - A ( co n g ) # i n t r a n ge f 0 / 1 - 2 4 S W - A ( co n g -if - r an g e ) # sp a n n in g -tr e e b p d u gu a rd ena b l e S W - B ( co n g ) # i n t r a n ge f 0 / 1 - 2 4 S W - B ( co n g -if - r a n g e ) # sp a n n i n g -tr e e b p du g u a rd ena b l e S W - 1 ( co n g ) #i n t r a ng e f 0 / 23- 2 4 S W - 1 ( co n g -if-r a n g e ) # sp a n nin g -tre e g u ard r o o t S W - 2 ( co n g ) #i n t r a ng e f 0 / 23- 2 4 S W - 2 ( co n g -i f -r a n g e ) # sp a n nin g -tre e g u ar d r o o t # P a rt 3 S W - 1 ( co n g ) #i n t g0 /1 S W - 1 ( co n g - i f ) # st o r m - co n t ro l b r o a d ca st l e ve l 5 0 S W - 2 ( co n g ) #i n t g0 /1

CCNAS

Embed Size (px)

Citation preview

### Layer 2 Security

# Part 1

Central#show spanning-tree

Central(config)#spanning-tree vlan 1 root primary

Sw-1(config)#spanning-tree vlan 1 root secondary

# Part 2

SW-A(config)# spanning-tree portfast default

SW-B(config)# spanning-tree portfast default

SW-A(config)#int range f0/1 - 24SW-A(config-if-range)#spanning-tree bpduguard enable

SW-B(config)#int range f0/1 - 24SW-B(config-if-range)#spanning-tree bpduguard enable

SW-1(config)#int range f0/23 - 24SW-1(config-if-range)#spanning-tree guard root

SW-2(config)#int range f0/23 - 24SW-2(config-if-range)#spanning-tree guard root

# Part 3

SW-1(config)#int g0/1SW-1(config-if)#storm-control broadcast level 50

SW-2(config)#int g0/1SW-2(config-if)#storm-control broadcast level 50

# Part 4

SW-A(config)#int f0/1SW-A(config-if)#switchport mode accessSW-A(config-if)#switchport port-security SW-A(config-if)#switchport port-security mac-address stickySW-A(config-if)#switchport port-security maximum 2SW-A(config-if)#switchport port-security violation shutdown

SW-B(config)#int f0/1SW-B(config-if)#switchport mode accessSW-B(config-if)#switchport port-security SW-B(config-if)#switchport port-security mac-address stickySW-B(config-if)#switchport port-security maximum 2SW-B(config-if)#switchport port-security violation shutdown

SW-A(config)#int range f0/5 - 6SW-A(config-if-range)#shutdown

SW-B(config)#int range f0/5 - 6SW-B(config-if-range)#shutdown

# Part 5