wtorek, 4 lutego 2020

Ochrona switcha Cisco - pętle

konfiguracja

loopback-detection enable

\\włączyć errordisable recovery

errdisable recovery cause loopback-detection

errdisable recovery cause port-security

errdisable recovery cause stp-loopback-guard

bonjour interface range vlan 1

 

ochrona interfejsu (przypadek Trunk do VLAN 20)

ochrona tylko na portach trunk

interface GigabitEthernet1

 loopback-detection enable

 spanning-tree link-type point-to-point

 switchport mode trunk

\\ włączenie smart port – rozpoznaje typ urządzenia rouetr,switch

 macro description switch

 !next command is internal.

 macro auto smartport dynamic_type switch

!

Ochrona interfejs nr 2

interface GigabitEthernet2

 loopback-detection enable

\\port dopuszcza max 5 połączeń

port security max 5

 port security mode max-addresses

 spanning-tree link-type point-to-point

 switchport mode trunk

 macro description switch

 !next command is internal.

 macro auto smartport dynamic_type switch

!

Zablokowanie portu (port security)

interface GigabitEthernet8

 port security discard

 switchport access vlan 20

!