wiki:site:cisco:switchport_config:start
This is an old revision of the document!
Table of Contents
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
Rychlost portu
SW(config-if)# speed {10 | 100 | 1000 | auto(defult)}
- GBIC porty - napevno 1000
- 1000BASE-T - 10/100/1000
Režim duplexu portu
SW(config-if)# duplex {auto | full | half}
- auto - nelze nastavit u 10BASE ethernetu
- Ethernet 10 - defaultně half
- FastEthernet 10/100 - defaultně full
- Rychlejší - defaultně auto
Pro zjištění speed/duplex mismatch:
show interface type mod/num
- hledat nenulové hodnoty v “input errors” a “runts”
Interface range a macro
Konfigurace výčtu interfejsů
SW(config)# interface range type module/number [, type module/number …]
Konfigurace rozsahu interfejsů
SW(config)# interface range type module/first-number – last-number
Konfigurace více interfejsů pomocí makra
SW(config)# define interface-range //macro-name type module/number
[, type module/ number …] [, type module/first-number – last-number] [, …]//
SW(config)# interface range macro macro-name
Příklad:
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
SW(config)# interface range macro MyGroup
wiki/site/cisco/switchport_config/start.1516105369.txt.gz · Last modified: by root
