User Tools

Site Tools


wiki:site:cisco:switchport_config:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:site:cisco:switchport_config:start [2018/01/16 13:19]
root
wiki:site:cisco:switchport_config:start [2018/01/16 13:38] (current)
root
Line 1: Line 1:
 ====== Switchport config. ====== ====== Switchport config. ======
 +Konfigurace jednoho interfejsu
 +>SW(config)# **interface** //type module/number//
 +
 +  * //type// = typ interfejsu (portu) (fastethernet, gigabitethernet,tengigabitethernet, or vlan)
 +  * //module// = V případě modulárního switche č.modulu na kterém se port nachází, jinak "0". V případě stacku se před module uvádí ještě číslo switche ve stacku (fe2/0/1).
 +  * //number// = Pořadové (identifikační) číslo interfejsu
 +
 +Zapnutí / Vypnutí portu
 +>SW(config-if)# [**no**] **shutdown**
 +
 +Popis portu
 +>SW(config-if)# **description** //description-string//
 +
 ===== Speed a Duplex ===== ===== Speed a Duplex =====
->Rychlost portu +Rychlost portu 
->Switch(config-if)# **speed** {**10** | **100** | **1000** | **auto**(defult)}+>SW(config-if)# **speed** {**10** | **100** | **1000** | **auto**(defult)}
  
   * GBIC porty - napevno 1000   * GBIC porty - napevno 1000
   * 1000BASE-T - 10/100/1000   * 1000BASE-T - 10/100/1000
  
->Režim duplexu portu +Režim duplexu portu 
->Switch(config-if)# **duplex** {**auto** | **full** | **half**}+>SW(config-if)# **duplex** {**auto** | **full** | **half**}
  
   * **auto** - nelze nastavit u 10BASE ethernetu   * **auto** - nelze nastavit u 10BASE ethernetu
Line 20: Line 33:
  
 ===== Interface range a macro ===== ===== Interface range a macro =====
->Konfigurace výčtu interfejsů +Konfigurace výčtu interfejsů 
->Switch(config)# **interface range** //type module/number [, type module/number ...]//+>SW(config)# **interface range** //type module/number [, type module/number ...]//
  
->Konfigurace rozsahu interfejsů +Konfigurace rozsahu interfejsů 
->Switch(config)# **interface range** //type module/first-number – last-number//+>SW(config)# **interface range** //type module/first-number – last-number//
  
->Konfigurace více interfejsů pomocí makra +Konfigurace více interfejsů pomocí makra 
->Switch(config)# **define interface-range** //macro-name type module/number+>SW(config)# **define interface-range** //macro-name type module/number
 [, type module/ number ...] [, type module/first-number – last-number] [, ...]// [, type module/ number ...] [, type module/first-number – last-number] [, ...]//
->Switch(config)# **interface range macro** //macro-name//+>SW(config)# **interface range macro** //macro-name//
  
 __Příklad:__\\ __Příklad:__\\
-Switch(config)# **define interface-range MyGroup gig 2/0/1 , gig 2/0/3 – 2/0/5 ,+SW(config)# **define interface-range MyGroup gig 2/0/1 , gig 2/0/3 – 2/0/5 ,
 gig 3/0/1 , gig 3/0/10, gig 3/0/32 – 3/0/48**\\ gig 3/0/1 , gig 3/0/10, gig 3/0/32 – 3/0/48**\\
-Switch(config)# **interface range macro MyGroup**+SW(config)# **interface range macro MyGroup** 
 + 
 +===== Error Disable ===== 
 +Konfigurace detekce chyb (errdisable) 
 +>Switch(config)# [**no**] **errdisable detect cause** [**all** | //cause-name//
 + 
 +  * Příkaz lze zadat vícekrát pro různé události 
 +  * **all** - detekuje vše 
 +  * **arp-inspection** 
 +  * **bpduguard** - Na STP Portfast portu je přijato BPDU 
 +  * **channel-misconfig** - Chyba v konfiguraci Etherchannelu 
 +  * **dhcp-rate-limit** - Týká se DHCP Snoopingu 
 +  * **dtp-flap** - Flapování trunking enkapsulace (.1Q/ISL) 
 +  * **gbic-invalid** - Vadný GBIC nebo SFP 
 +  * **ilpower** - Chyba v PoE 
 +  * **l2ptguard** - Chyba v tunelování L2 protokolu 
 +  * **link-flap** - Flapující linka 
 +  * **loopback** - Detekuje smyčku na interfacu 
 +  * **pagp-flap** - Nekonsistence etherchannelu 
 +  * **psecure-violation** - Událost port security 
 +  * **rootguard** - STP BPDU od root bridge je přijato na nežádoucím portu 
 +  * **security-violation** - Detekuje chyby týkající se port security 
 +  * **storm-control** - Detekce L2 bouře 
 +  * **udld** - Detekce jednosměrného provozu 
 +  * **unicast-flood** - Detekuje trigger blokování unicastového floodování 
 +  * **vmps** - Detekuje chyby při přizazování portu do dynamické VLAN za pomoci VMPS serveru 
 + 
 +Automatická obnova ze stavu errdisable 
 +>Switch(config)# **errdisable recovery cause** [**all** | //cause-name//
 +>Switch(config)# **errdisable recovery interval** //seconds// 
 + 
 +  * Interval obnovy je def. 300 sekund 
 +  * Možnost nastavení 30 - 86400 sekund (24hodin) 
 + 
 +__Troubleshooting:__ 
 +>**show interface** 
 +>**show interfaces status** 
 +>**show interface status err-disabled**
wiki/site/cisco/switchport_config/start.1516105186.txt.gz · Last modified: 2018/01/16 13:19 by root