This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:site:cisco:port_security:start [2018/01/23 09:50] root |
wiki:site:cisco:port_security:start [2018/01/23 09:57] (current) root |
||
|---|---|---|---|
| Line 22: | Line 22: | ||
| >Switch# **show port security address** | >Switch# **show port security address** | ||
| - | == Jak se zbavit nechtenych MAC: == | + | === Jak se zbavit nechtenych MAC: === |
| >Switch# **clear port-security sticky interface** [// | >Switch# **clear port-security sticky interface** [// | ||
| + | nebo | ||
| + | >Switch# **clear port-security dynamic [address** // | ||
| + | |||
| > | > | ||
| > | > | ||
| Line 33: | Line 36: | ||
| >Switch# **reload** | >Switch# **reload** | ||
| + | === Nastavení události při zjištění nepovolené MAC: === | ||
| + | * Switch(config-if)# | ||
| + | |||
| + | * **shutdown** - port okamžitě přejde do // | ||
| + | * **restrict** - port zůstane up, rámce s nepovolenou MAC jsou zahazovány a počítá je counter, může být odeslána SNMP/Syslog zpráva | ||
| + | * **protect** - port zůstane up, nepovolené rámce jsou zahazovány, | ||
| + | |||
| + | Příklad Syslog zprávy: | ||
| + | < | ||
| + | Jun 3 17: | ||
| + | occurred, caused by MAC address 0000.5e00.0101 on port GigabitEthernet0/ | ||
| + | </ | ||
| + | |||
| + | Příklad Syslog zprávy v režimu security violation **shutdown**: | ||
| + | < | ||
| + | Jun 3 17: | ||
| + | Gi0/11, putting Gi0/11 in err-disable state | ||
| + | Jun 3 17: | ||
| + | occurred, caused by MAC address 0003.a089.efc5 on port GigabitEthernet0/ | ||
| + | Jun 3 17: | ||
| + | Ethernet0/ | ||
| + | Jun 3 17: | ||
| + | state to down | ||
| + | </ | ||
| + | |||
| + | === Show příkazy: === | ||
| Switch# **show port-security interface gigabitethernet 0/11** | Switch# **show port-security interface gigabitethernet 0/11** | ||
| < | < | ||