This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
wiki:site:cisco:ccnp:switch:prikazy [2018/01/23 10:16] root odstraněno |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | (Příkazy označené tečkou fungují v GNS3 na routeru s NM-16ESW modulem) | ||
| - | ====== Switch CAM Table ====== | ||
| - | POZOR! příkazy lze psát dvěma způsoby: | ||
| - | * Po staru: **mac-adress-table** | ||
| - | * Po novu: **mac address-table** | ||
| - | |||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show mac address-table dynamic** [**address** // | ||
| - | >Switch# **show mac address-table count** | ||
| - | |||
| - | >Switch# **clear mac address-table dynamic** [**address** // | ||
| - | |||
| - | ====== Switch Port Configuration ====== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | > | ||
| - | [, type module/ number ...] [, type module/ | ||
| - | > | ||
| - | |||
| - | (předdefinované makro se uloží do configu) | ||
| - | |||
| - | __Příklad: | ||
| - | Switch(config)# | ||
| - | gig 3/0/1 , gig 3/0/10, gig 3/0/32 – 3/0/48**\\ | ||
| - | Switch(config)# | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | * GBIC porty - napevno 1000 | ||
| - | * 1000BASE-T - 10/100/1000 | ||
| - | |||
| - | > | ||
| - | |||
| - | * **auto** - nelze nastavit u 10BASE ethernetu | ||
| - | * Ethernet 10 - defaultně **half** | ||
| - | * FastEthernet 10/100 - defaultně **full** | ||
| - | * Rychlejší - defaultně **auto** | ||
| - | |||
| - | __Konfigurace detekce chyb (errdisable)__ | ||
| - | > | ||
| - | |||
| - | * 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 | ||
| - | |||
| - | > | ||
| - | > | ||
| - | |||
| - | * Interval obnovy je def. 300 sekund | ||
| - | * Možnost nastavení 30 - 86400 sekund (24hodin) | ||
| - | |||
| - | __Troubleshooting__ | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | ___Pro zjištění speed/ | ||
| - | > | ||
| - | |||
| - | * hledat nenulové hodnoty v "input errors" | ||
| - | |||
| - | ====== VLAN Configuration ====== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | * // | ||
| - | * // | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show vlan** | ||
| - | >Switch# **show vlan brief** | ||
| - | < | ||
| - | VLAN Name | ||
| - | ---- ---------------- ------- ------ | ||
| - | 1 default | ||
| - | 20 | ||
| - | 21 | ||
| - | 1002 fddi-default | ||
| - | 1003 trcrf-default | ||
| - | 1004 fddinet-default | ||
| - | 1005 trbrf-default | ||
| - | </ | ||
| - | |||
| - | >Switch# **show running-config interface** //type module/ | ||
| - | < | ||
| - | Building configuration... | ||
| - | Current configuration 64 bytes | ||
| - | interface FastEthernet 0/5 | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | >Switch# **show mac address-table interface** //type module/ | ||
| - | < | ||
| - | Mac Address Table | ||
| - | ————————————————————— | ||
| - | Vlan Mac Address | ||
| - | ---- ----------- | ||
| - | 1 0030.b656.7c3d DYNAMIC Fa0/1 | ||
| - | Total Mac Addresses for this criterion: 1 | ||
| - | </ | ||
| - | |||
| - | >Switch# **show interfaces** //type module/ | ||
| - | < | ||
| - | Name: Fa0/1 | ||
| - | Switchport: Enabled | ||
| - | Administrative Mode: dynamic desirable | ||
| - | Operational Mode: static access | ||
| - | Administrative Trunking Encapsulation: | ||
| - | Operational Trunking Encapsulation: | ||
| - | Negotiation of Trunking: On | ||
| - | Access Mode VLAN: 1 (default) | ||
| - | Trunking Native Mode VLAN: 1 (default) | ||
| - | Trunking VLANs Enabled: ALL | ||
| - | Pruning VLANs Enabled: 2-1001 | ||
| - | Protected: false | ||
| - | Unknown unicast blocked: false | ||
| - | Unknown multicast blocked: false | ||
| - | Broadcast Suppression Level: 100 | ||
| - | Multicast Suppression Level: 100 | ||
| - | Unicast Suppression Level: 100 | ||
| - | </ | ||
| - | |||
| - | Alternativně (GNS3): | ||
| - | >Router# **vlan database** | ||
| - | > | ||
| - | >Router# **show vlan-switch** | ||
| - | >Router# **show vlan-switch brief** | ||
| - | |||
| - | ====== VLAN Trunk Configuration ====== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | Ve všech režimech DTP posílá zprávy každých 30s. | ||
| - | |||
| - | > | ||
| - | |||
| - | >Switch# **show interface** //type mod/port// | ||
| - | >Switch# **show vlan id** //vlan-id// | ||
| - | >Switch# **show interface** //type mod/num// **switchport** | **trunk** | ||
| - | >Switch# **show dtp** [**interface** //type mod/num//] | ||
| - | |||
| - | ====== DTP - Dynamic Trunking Protocol ====== | ||
| - | >SW# **no-isl-entries enable** | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | Ve všech režimech DTP posílá zprávy každých 30s. | ||
| - | |||
| - | Vypnutí DTP: | ||
| - | > | ||
| - | |||
| - | >Switch# **show running-config** | ||
| - | >Switch# **show interface** //type mod/port// | ||
| - | >Switch# **show vlan id** //vlan-id// | ||
| - | >Switch# **show interface** //type mod/num// **switchport** | **trunk** | ||
| - | >Switch# **show dtp** [**interface** //type mod/num//] | ||
| - | |||
| - | >Switch# **show interfaces fastethernet 0/1 trunk** | ||
| - | < | ||
| - | Port Mode Encapsulation | ||
| - | Fa0/1 desirable | ||
| - | Port Vlans allowed on trunk | ||
| - | Fa0/1 1-150 | ||
| - | <further output omitted> | ||
| - | </ | ||
| - | |||
| - | ====== VTP - Vlan Trunking Protocol ====== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | * // | ||
| - | **VTP Pruning** | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | VLAN 1,1002-1005 - nikdy nepodléhají pruningu (VLAN 1-kontrolní provoz) | ||
| - | |||
| - | >Switch# **show vtp status** | ||
| - | < | ||
| - | VTP Version | ||
| - | Configuration Revision | ||
| - | Maximum VLANs supported locally | ||
| - | Number of existing VLANs : 5 | ||
| - | VTP Operating Mode : Server | ||
| - | VTP Domain Name : | ||
| - | VTP Pruning Mode : Disabled | ||
| - | VTP V2 Mode : Disabled | ||
| - | VTP Traps Generation | ||
| - | MD5 digest | ||
| - | Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00 | ||
| - | </ | ||
| - | |||
| - | >Switch# **show vtp counters** | ||
| - | < | ||
| - | VTP statistics: | ||
| - | Summary advertisements received | ||
| - | Subset advertisements received | ||
| - | Request advertisements received | ||
| - | Summary advertisements transmitted | ||
| - | Subset advertisements transmitted | ||
| - | Request advertisements transmitted | ||
| - | Number of config revision errors | ||
| - | Number of config digest errors | ||
| - | Number of V1 summary errors | ||
| - | |||
| - | VTP pruning statistics: | ||
| - | |||
| - | Trunk Join Transmitted | ||
| - | | ||
| - | ----------------- ---------------- --------------- ------------------------------- | ||
| - | Gi0/1 82352 | ||
| - | </ | ||
| - | |||
| - | >Switch# **show vlan brief** | ||
| - | >Switch# **show interface** //type mod/num// **switchport** | ||
| - | >Switch# **show interface** //type mod/num// **pruning** | ||
| - | |||
| - | ====== EtherChannel ====== | ||
| - | Jakmile je nakonfigurován EtherChannel, | ||
| - | |||
| - | > | ||
| - | |||
| - | > | ||
| - | |||
| - | ^// | ||
| - | |**src-ip** | ||
| - | |**dst-ip** | ||
| - | |**src-dst-ip** | ||
| - | |**src-mac** | ||
| - | |**dst-mac** | ||
| - | |**src-dst-mac** | XOR | ||
| - | |**src-port** | ||
| - | |**dst-port** | ||
| - | |**src-dst-port**| | ||
| - | |||
| - | __**L3 Portchannel**__\\ | ||
| - | * Switch(config-if)# | ||
| - | * Switch(config-if)# | ||
| - | |||
| - | ===== PaGP ===== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | **non-silent** - sw standartně v módu auto a desirable ani nečeká na žádné pagp zprávy (z důvodu připojení zař., | ||
| - | |||
| - | ===== LACP ===== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | ===== Troubleshooting ===== | ||
| - | >Switch# **show etherchannel summary** | ||
| - | < | ||
| - | Switch# show etherchannel summary | ||
| - | Flags: | ||
| - | I - stand-alone | ||
| - | H - Hot-standby (LACP only) | ||
| - | R - Layer3 | ||
| - | u - unsuitable for bundling | ||
| - | U - in use f - failed to allocate aggregator | ||
| - | d - default port | ||
| - | Number of channel-groups in use: 1 | ||
| - | Number of aggregators: | ||
| - | |||
| - | Group Port-channel | ||
| - | ------+--------------+-----------+------------------------------------------------ | ||
| - | |||
| - | 1 Po1(SU) | ||
| - | Fa0/45(P) Fa0/46(P) Fa0/47(P) Fa0/48(P) | ||
| - | </ | ||
| - | |||
| - | >Switch# **show etherchannel port** | ||
| - | < | ||
| - | Channel-group listing: | ||
| - | ----------------------- | ||
| - | Group: 1 | ||
| - | ---------- | ||
| - | Ports in the group: | ||
| - | -------------------- | ||
| - | Port: Fa0/41 | ||
| - | ------------ | ||
| - | |||
| - | Port state = Up Mstr In-Bndl | ||
| - | Channel group = 1 Mode = Desirable-Sl | ||
| - | Port-channel | ||
| - | Port index = 0 Load = 0x00 Protocol | ||
| - | |||
| - | Flags: | ||
| - | A - Device is in Auto mode. P - Device learns on physical port. | ||
| - | d - PAgP is down. | ||
| - | Timers: H - Hello timer is running. | ||
| - | S - Switching timer is running. | ||
| - | | ||
| - | Local information: | ||
| - | | ||
| - | Port | ||
| - | Fa0/ | ||
| - | |||
| - | Partner’s information: | ||
| - | |||
| - | | ||
| - | Port | ||
| - | |||
| - | Fa0/ | ||
| - | |||
| - | Age of the port in the current state: 00d: | ||
| - | </ | ||
| - | |||
| - | >**show running-config interface** //type mod/ num// | ||
| - | >**show interface** //type mod/num// **etherchannel** | ||
| - | >**show etherchannel port-channel** | ||
| - | >**show etherchannel detail** | ||
| - | >**show etherchannel load-balance** | ||
| - | >**show etherchannel port-channel** | ||
| - | >**show {pagp | lacp} neighbor** | ||
| - | >**show lacp sys-id** | ||
| - | |||
| - | ====== STP Spanning-tree protocol ====== | ||
| - | |||
| - | > | ||
| - | > | ||
| - | |||
| - | ># **show spanning interface** //type mod/port// | ||
| - | ># **debug spanning-tree switch state** | ||
| - | |||
| - | ===== STP Root Bridge: ===== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | * Standart // | ||
| - | * Extended // | ||
| - | |||
| - | > | ||
| - | |||
| - | * **primary** je-li aktuální priorita roota větší než 24576 switch si nastaví tuto prioritu, jeli priorita roota menší, switch si nastaví o 4096 nižší bridge prioritu (kromě nuly, tu je třeba nastavit ručně). | ||
| - | * **secondary** - bridge priority se nastaví na 28672 | ||
| - | < | ||
| - | Switch(config)# | ||
| - | vlan 1 bridge priority set to 24576 | ||
| - | vlan 1 bridge max aging time unchanged at 20 | ||
| - | vlan 1 bridge hello time unchanged at 2 | ||
| - | vlan 1 bridge forward delay unchanged at 15 | ||
| - | </ | ||
| - | |||
| - | ===== Root Path Cost: ===== | ||
| - | > | ||
| - | >Switch# **show spanning-tree interface** //type mod/num// [**cost**] | ||
| - | < | ||
| - | Switch# show spanning-tree interface fa0/1 | ||
| - | Vlan Role Sts Cost | ||
| - | ----------------- ---- --- ---------- -------- ----------------------------- | ||
| - | VLAN0001 | ||
| - | VLAN0010 | ||
| - | VLAN0020 | ||
| - | </ | ||
| - | |||
| - | ===== Port Priority: ===== | ||
| - | > | ||
| - | >Switch# **show spanning-tree interface** //type mod/num// | ||
| - | |||
| - | ===== STP Timers: ===== | ||
| - | Nastavovat jen na ROOTOVI!!! | ||
| - | |||
| - | __Manuální konfigurace: | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | __Automatická konfigurace pomocí makra:__ | ||
| - | > | ||
| - | |||
| - | ===== PortFast ===== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | < | ||
| - | Switch(config-if)# | ||
| - | switchport mode will be set to access | ||
| - | spanning-tree portfast will be enabled | ||
| - | channel group will be disabled | ||
| - | </ | ||
| - | >Switch# **show spanning-tree interface** //type mod/num// **portfast** | ||
| - | |||
| - | ===== UplinkFast ===== | ||
| - | > | ||
| - | |||
| - | >Switch# **show spanning-tree uplinkfast** | ||
| - | < | ||
| - | Switch# show spanning-tree uplinkfast | ||
| - | UplinkFast is enabled | ||
| - | Station update rate set to 150 packets/ | ||
| - | UplinkFast statistics | ||
| - | Number of transitions via uplinkFast (all VLANs) | ||
| - | Number of proxy multicast addresses transmitted (all VLANs) | ||
| - | |||
| - | Name Interface List | ||
| - | --------------------- -------------------------------- | ||
| - | VLAN0001 | ||
| - | VLAN0010 | ||
| - | VLAN0100 | ||
| - | </ | ||
| - | |||
| - | ===== BackboneFast ===== | ||
| - | > | ||
| - | |||
| - | >Switch# **show spanning-tree backbonefast** | ||
| - | < | ||
| - | Switch# show spanning-tree backbonefast | ||
| - | BackboneFast is enabled | ||
| - | </ | ||
| - | |||
| - | ===== Root Guard ===== | ||
| - | > | ||
| - | >Switch# **show spanning-tree inconsistentports** | ||
| - | |||
| - | ===== BPDU Guard ===== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show spanning-tree summary** | ||
| - | >Switch# **show spanning-tree summary totals** | ||
| - | |||
| - | ===== Loop Guard ===== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show spanning-tree summary** | ||
| - | |||
| - | ===== UDLD ===== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show udld interface** //type mod/num// | ||
| - | >Switch# **udld reset** | ||
| - | |||
| - | ===== BPDU Filter ===== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show spanning-tree summary** | ||
| - | |||
| - | ===== Troubleshooting STP ===== | ||
| - | >Switch# **show spanning-tree** [**detail**] | ||
| - | |||
| - | >Switch# **show spanning-tree** **vlan** //vlan-id// | ||
| - | >Switch# **show spanning-tree** [**vlan** // | ||
| - | >Switch# **show spanning-tree** [**vlan** // | ||
| - | >Switch# **show spanning-tree** [**vlan** // | ||
| - | |||
| - | >Switch# **show spanning-tree bridge brief** | ||
| - | |||
| - | >Switch# **show spanning-tree interface** //type mod/num// | ||
| - | >Switch# **show spanning-tree interface** //type mod/num// **detail** | ||
| - | >Switch# **show spanning-tree interface** //type mod/num// **cost** | ||
| - | >Switch# **show spanning-tree interface** //type mod/num// **portfast** | ||
| - | |||
| - | >Switch# **show spanning-tree uplinkfast** | ||
| - | >Switch# **show spanning-tree backbonefast** | ||
| - | >Switch# **show spanning-tree inconsistentports** | ||
| - | >Switch# **show udld interface** //type mod/num// | ||
| - | |||
| - | ====== Rapid PVST+ ====== | ||
| - | Konfigurace edge portů: | ||
| - | > | ||
| - | Nastavení p2p pro half-duplex linku: (propojení switchů na half-duplexu) | ||
| - | > | ||
| - | Zapnutí RPVSTP+: | ||
| - | > | ||
| - | Přechod zpět na PVST+: | ||
| - | > | ||
| - | |||
| - | >Switch# **show spanning-tree** | ||
| - | >Switch# **show spanning-tree vlan** //vlan-id// | ||
| - | |||
| - | < | ||
| - | Switch#show spanning-tree vlan 1 | ||
| - | VLAN0001 | ||
| - | Spanning tree enabled protocol rstp | ||
| - | Root ID Priority | ||
| - | | ||
| - | | ||
| - | | ||
| - | Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec | ||
| - | |||
| - | Bridge ID Priority | ||
| - | | ||
| - | Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec | ||
| - | Aging Time 20 | ||
| - | |||
| - | Interface | ||
| - | ---------------- ---- --- --------- -------- -------------------------------- | ||
| - | Fa0/ | ||
| - | Fa0/ | ||
| - | Gi0/1 Root FWD 4 | ||
| - | Gi0/2 Desg FWD 4 | ||
| - | </ | ||
| - | |||
| - | ====== MST - Multiple Spanning Tree ====== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | > | ||
| - | >SW# **show spanning-tree mst** | ||
| - | |||
| - | ====== Multilayer switching ====== | ||
| - | ===== InterVLAN Routing ===== | ||
| - | >Switch# **show interface** //type mod/num// **switchport** | ||
| - | |||
| - | < | ||
| - | Switch# show interface gigabitethernet 0/1 switchport | ||
| - | Name: Gi0/1 | ||
| - | Switchport: Disabled | ||
| - | Switch# | ||
| - | </ | ||
| - | |||
| - | === Konfigurace L2 portu: === | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | === Konfigurace L3 portu: === | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | === Konfigurace SVI portu: === | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show interface vlan** //vlan-id// | ||
| - | >Switch# **show vlan** | ||
| - | >Switch# **show ip interface brief** | ||
| - | |||
| - | ===== Autostate of a SVI ===== | ||
| - | |||
| - | Zajistí, že tento interfejs nebude mít vliv na stav SVI: | ||
| - | |||
| - | > | ||
| - | |||
| - | ===== CEF Cisco Express Forwarding ===== | ||
| - | Na Cat3750 a 4500 lze vypnout: | ||
| - | > | ||
| - | > | ||
| - | |||
| - | |||
| - | === FIB table === | ||
| - | >Switch# **show ip cef** [//type mod/num// | **vlan** // | ||
| - | |||
| - | < | ||
| - | Switch# show ip cef vlan 101 | ||
| - | Prefix Next Hop Interface | ||
| - | 10.1.1.0/24 attached Vlan101 | ||
| - | 10.1.1.2/32 10.1.1.2 Vlan101 | ||
| - | 10.1.1.3/32 10.1.1.3 Vlan101 | ||
| - | </ | ||
| - | |||
| - | >Switch# **show ip cef** [// | ||
| - | |||
| - | **longer-prefixes** - vypíše i routy s delší maskou než která byla specifikována v příkazu | ||
| - | |||
| - | < | ||
| - | Switch# show ip cef 10.1.0.0 255.255.0.0 longer-prefixes | ||
| - | Prefix Next Hop Interface | ||
| - | 10.1.1.0/24 attached Vlan101 | ||
| - | 10.1.1.2/32 10.1.1.2 Vlan101 | ||
| - | 10.1.1.3/32 10.1.1.3 Vlan101 | ||
| - | 10.1.2.0/24 attached Vlan102 | ||
| - | 10.1.3.0/26 192.168.1.2 Vlan99 | ||
| - | 192.168.1.3 Vlan99 | ||
| - | 10.1.3.64/ | ||
| - | 192.168.1.3 Vlan99 | ||
| - | 10.1.3.128/ | ||
| - | 192.168.1.3 Vlan99 | ||
| - | [output omitted] | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Switch# show ip cef 10.1.3.0 255.255.255.192 detail | ||
| - | 10.1.3.0/ | ||
| - | 0 packets, 0 bytes | ||
| - | via 192.168.1.2, | ||
| - | traffic share 1 | ||
| - | next hop 192.168.1.2, | ||
| - | valid adjacency | ||
| - | via 192.168.1.3, | ||
| - | traffic share 1 | ||
| - | next hop 192.168.1.3, | ||
| - | valid adjacency | ||
| - | 0 packets, 0 bytes switched through the prefix | ||
| - | | ||
| - | internal 0 packets, 0 byte | ||
| - | </ | ||
| - | |||
| - | * version = počet updatů CEF záznamu od vytvotření tabulky | ||
| - | * epoch = počet zahození CEF tabulky a vytvoření celé nové | ||
| - | |||
| - | === Adjacency table === | ||
| - | >Switch# **show adjacency** [//type mod/num// | **vlan** // | ||
| - | |||
| - | < | ||
| - | Switch# show adjacency summary | ||
| - | Adjacency Table has 106 adjacencies | ||
| - | Table epoch: 0 (106 entries at this epoch) | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Switch# show adjacency vlan 99 detail | ||
| - | Protocol | ||
| - | IP | ||
| - | 0 packets, 0 bytes | ||
| - | | ||
| - | | ||
| - | | ||
| - | IP | ||
| - | 1 packets, 104 bytes | ||
| - | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | * **000A5E45B145**000E387D51000800 - Next-hop MAC adresa | ||
| - | * 000A5E45B145**000E387D5100**0800 - lokální MAC (MAC interface Vlan99) | ||
| - | * 000A5E45B145000E387D5100**0800** - Protocol type (IP) | ||
| - | * **ARP 01:52:50** - stáří ARP záznamu | ||
| - | |||
| - | **Adjacency "glean state": | ||
| - | < | ||
| - | Switch# show ip cef adjacency glean | ||
| - | Prefix Next Hop Interface | ||
| - | 10.1.1.2/32 attached Vlan101 | ||
| - | 127.0.0.0/8 attached EOBC0/0 | ||
| - | [output omitted] | ||
| - | |||
| - | Switch# show ip arp 10.1.1.2 | ||
| - | |||
| - | Switch# show ip cef 10.1.1.2 255.255.255.255 detail | ||
| - | 10.1.1.2/ | ||
| - | 0 packets, 0 bytes | ||
| - | via Vlan101, 0 dependencies | ||
| - | valid glean adjacency | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Switch# show cef drop | ||
| - | CEF Drop Statistics | ||
| - | Slot Encap_fail Unresolved Unsupported No_route No_adj ChkSum_Err | ||
| - | RP | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Switch# show cef not-cef-switched | ||
| - | CEF Packets passed on to next switching layer | ||
| - | Slot | ||
| - | RP 3579706 | ||
| - | </ | ||
| - | |||
| - | ===== DHCP na MLS ===== | ||
| - | |||
| - | === Konfigurace DHCP serveru === | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show ip dhcp binding** | ||
| - | |||
| - | === Konfigurace DHCP Relay === | ||
| - | * konfiguruje se na L3 interfejsu, který bude klientům ve svém subnetu provádět relay | ||
| - | * ip helper-address - lze zadat víckrát | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | ===== HSRP ===== | ||
| - | > | ||
| - | > | ||
| - | |||
| - | * //hello// = 1-254 s nebo 15-999 ms (def. 3 s) | ||
| - | * // | ||
| - | |||
| - | > | ||
| - | |||
| - | * //delay// - pozdržení převzetí aktivní role | ||
| - | * //minimum// - 0-3600s, měří se od chvíle kdy je router schopen převzít aktivní roli (interface up, nakonfigurování HSRP) | ||
| - | * //reload// - 0-3600s po restartu routeru, účelem je dát čas routovacím protokolům aby zkonvergovaly | ||
| - | |||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | __Plaint-text Authentikace: | ||
| - | > | ||
| - | |||
| - | __MD5 Authentikace - string:__ | ||
| - | > | ||
| - | |||
| - | __MD5 Authentikace key-chain: | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | ===== VRRP ===== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | >Switch# **show vrrp** [**brief**] | ||
| - | >Switch# **show vrrp brief all** | ||
| - | >Switch# **show vrrp interface** //type mod/num// | ||
| - | |||
| - | ===== GLBP ===== | ||
| - | |||
| - | > | ||
| - | >Switch# **show glbp** [//group//] [**brief**] | ||
| - | |||
| - | === AVG === | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | * // | ||
| - | * // | ||
| - | |||
| - | === AVF === | ||
| - | > | ||
| - | |||
| - | * " | ||
| - | * " | ||
| - | |||
| - | > | ||
| - | |||
| - | * **line-protocol** - sleduje line protocol up/down | ||
| - | * **ip routing** - sleduje zapnutý routing, nastavenou IP adresu, a line protocol na interfejsu | ||
| - | |||
| - | > | ||
| - | |||
| - | * //lower// - 1-254, def. 1 | ||
| - | * //upper// - 1-254, def. = 100 (defaultně = max weight) | ||
| - | |||
| - | > | ||
| - | |||
| - | === Load Balancing === | ||
| - | > | ||
| - | |||
| - | * //value// - 1-254. def. 10 | ||
| - | |||
| - | ====== Supervizor and Route Processor Redundancy ====== | ||
| - | * první konfigurace se musí udělat na obou supervizorech | ||
| - | * pak už jen na aktivním (změny apod.) | ||
| - | |||
| - | > | ||
| - | > | ||
| - | |||
| - | * **rpr-plus** - verze IOS obou supervizorů musejí být stejné, jinak to poběží jen jako **rpr** | ||
| - | |||
| - | >Router# **show redundancy states** | ||
| - | |||
| - | < | ||
| - | Router# show redundancy states | ||
| - | my state = 13 -ACTIVE | ||
| - | peer state = 8 -STANDBY HOT | ||
| - | Mode = Duplex | ||
| - | Unit = Secondary | ||
| - | |||
| - | Unit ID = 2 | ||
| - | |||
| - | Redundancy Mode (Operational) = Route Processor Redundancy Plus | ||
| - | Redundancy Mode (Configured) = Route Processor Redundancy Plus | ||
| - | Split Mode = Disabled | ||
| - | Manual Swact = Enabled | ||
| - | Communications = Up | ||
| - | | ||
| - | client count = 11 | ||
| - | | ||
| - | keep_alive TMR = 9000 milliseconds | ||
| - | keep_alive count = 1 | ||
| - | keep_alive threshold = 18 | ||
| - | RF debug mask = 0x0 | ||
| - | |||
| - | </ | ||
| - | |||
| - | ==== Synchronizace supervizorů ==== | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | Návrat do defaultu: | ||
| - | > | ||
| - | |||
| - | ==== Nonstop Forwarding ==== | ||
| - | |||
| - | BGP | ||
| - | > | ||
| - | > | ||
| - | |||
| - | EIGRP | ||
| - | > | ||
| - | > | ||
| - | |||
| - | OSPF | ||
| - | > | ||
| - | > | ||
| - | |||
| - | IS-IS | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | > | ||