======CISCO====== ===Obsah:===
[[#mody|Mody:]]
[[#mo-user|uzivatelsky]]
[[#mo-priv|privilegovany]]
[[#mo-conf|konfiguracni]]
[[#router|Router:]]
[[#ro-route|Smerovani]]
[[#ro-firewall|Firewall]]
[[#ro-nat|NAT]]
[[#ro-vlan|VLANy na routeru]]
[[#ro-wan|WAN]]
[[#switch|Switch:]]
[[#sw-port|porty]]
[[#sw-stp|STP]]
[[#sw-vlan|VLANy]]
[[#sw-firewall|firewall]]
[[#ipv6|IPv6]]\\
===Okazy=== [[http://www.samuraj-cz.com/serie/cisco-ios/|Cisco IOS]]\\ [[http://www.samuraj-cz.com/serie/pocitacove-site-computer-networks/|Pocitacove site]]\\ [[http://www.samuraj-cz.com/clanek/priprava-na-cisco-ccna/|Priprava na CCNA]]\\ [[http://www.gns3.net/download|GNS]] - Graphical Network Simulator - graficka simulace site, konfigurace routeru\\ en (enable) ... prepnuti do privilegovaneho modu\\ logout ... odpojeni ze systemu\\ ping ip 192.168.2.1 ... pingne ip adresu 192.168.2.1\\ resume 4 ... obnovi telnetove spojeni c. 4\\ sh arp ... ukaze routovaci tabulku\\ sh cdp neighbors detail ... ukaze CDP (Cisco Discovery Protocol) sousedy a jejich IP\\ sh cdp traffic\\ sh cdp entry *\\ sh controllers s1/0 ... podrobne informace o zarizeni Serial 1/0\\ sh flash ... ukaze obsah flash pameti\\ sh hist (show history) ... ukaze historii\\ sh hosts ... ukaze preklady jmen na IP\\ sh int (show interface) ... seznam adapteru i s parametrama\\ sh ip arp ... ukaze arp tabulku\\ sh ip eigrp neighbors ... ukaze eigrp sousedy\\ sh ip eigrp topology ... ukaze eigrp topologii\\ sh ip ospf ... ukaze nastaveni OSPF routovani\\ sh ip ospf database ... ukaze databazi routeru v OSPF databazi\\ sh ip ospf interface f0/1 ... ukaze OSPF informace tykajici se FastEthernet0/1 zarizeni\\ sh ip ospf neighbor ... ukaze OSPF sousedy\\ sh ip protocols ... informace o zarizenich, routach atd.\\ sh ip route ... ukaze routovaci tabulku\\ sh ip route eigrp ... ukaze eigrp routovaci linky\\ show ip interface brief\\ sh memory\\ sh processes ... ukaze bezici procesy na Cisco\\ sh run (show running-config) ... ukaze aktualni nastaveni routeru\\ sh run | begin interface ... ukaze aktualni nastaveni zacinajici prvnim slovem interface\\ sh run | include 1.2.3.4 ... ukaze radky obsahujici text 1.2.3.4\\ sh term (show terminal) ... ukaze nastaveni terminalu\\ sh sessions ... ukaze vsechny pripojeni na switch, Ctrl_Shift+F6 - docasne prerusi spojeni, ctrl-z ukonci spojeni\\ sh start (show startup-config) ... ukaze startovaci nastaveni\\ sh users ... ukaze pripojene uzivatele\\ sh ver (show version) ... ukaze verzi IOS, pamet, ...\\ show protocols\\ telnet 192.168.2.1 ... navazani telnetoveho spojeni\\ terminal history size 25 ... zmeni historii terminalu\\ traceroute ip 192.168.2.6\\ Staticky (AD =1) ip 0.0.0.0 0.0.0.0 1.2.3.4; ip classless ... defaultni route\\ ip route 1.2.3.0 255.255.255.0 1.2.3.4 ... konfigurace staticke routy pro sit 1.2.3.0/24 na router 1.2.3.4\\ ip default-network 1.2.3.4; ip classless ... defaultni route\\
EIGRP (AD = 90)
router eigrp 10 ... Nastavovani EIGRP routovani, AS (autonomous system 10)\\ router eigrp 10; network 10.0.0.0 ... nastavi eigrp na site 10.0.0.0\\ router eigrp 10; passive-interface serial 0/1 ... nastavi seriovy port jako pasivni - nevysila, ani neprijma EIGRP data\\ router eigrp 10; redistribute rip metric 1000000 20000 255 1 1500 ... redistribuje RIP tabulku do EIGRP pomoci nadefinovane metriky\\ router eigrp 10; maximum-paths 6 ... nastaveni maximalniho poctu ruznych cest na 6 ze 4\\ router eigrp 10; maximum-hops 140 ... zvysi maximalni pocet skoku pri routovani z 100 na 140\\ router eigrp 10; no auto-summary ... bez auto-summary (distribuuje podsite mezi 2 routry)\\ ip summary-address eigrp 10 192.168.10.64 255.255.255.224 ... nastavi podsit, takze se pozivaji podsite, ne site\\
OSPF (Open shortest path first) (AD = 110)
router ospf 1 ... Nastavovani Open Shortest Path First routovani (cislo procesu 1)\\ router ospf 1; network 10.0.0.0 0.127.255.255 area 0 ... bude se distribuovat sit 10.0.0.0/9 v oblasti 0\\ roiter ospf 1; area 1 range 192.168.10.64 255.255.255.224 ... nastavi podsit misto pouzivani cele site\\ int s0; ip ospf priority 2 ... zmeni prioritu zarizeni pri volbe Designated Router (DR) a Backup DR (BDR)\\
RIP (AD = 120)
router rip ... nastavovani RIP routovani\\ router rip; network 10.0.0.0 ... bude se distribuovat sit 10.0.0.0\\ router rip; version 2 ... Nastaveni RIPv2\\ router rip; redistribute eigrp 10 metric 1 ... redistribuce eigrp AS 10 na RIP s metrikou 1\\ router rip; passive-interface s0 ... nastavi, ze Serial0 nebude vysilat update, ale jen prijimat\\ no router rip ... zakaze rip\\
HDCL (High-Level Data-Link Control protocoL int s1/0; encalupsation hdlc\\
PPP
hostname R1\\ username R2 password HESLO ... nastavi jmeno routeru partnera a heslo\\ int s0\\ int s0; encalupsation ppp ... nastavi uzavirani paketu typu PPP\\ int s0; ppp authentication chap pap ... nastavi CHAP authentikaci, pokud partner nema, tak PAP authentikaci\\ debug ppp authentication ... ukazuje ppp autentifikacni pakety\\
PPPoE
int f0/0\\ int f0/0; pppoe enable group global\\ int f0/0; pppoe-client dial-pool-number 1\\ int f0/0; ip address negotiated\\ int f0/0; ppp authentication chap callin\\ int f0/0; ppp chap hostname R2\\ int f0/0; ppp password 0 HESLO\\
Frame Relay - jedno zarizeni
int s0\\ int s0; encalupsation framerelay (ietf) ... nastavi obalovani paketu Frame Relay (ietf kdyz partner neni Cisco)\\ int s0; interface-dlci 101 ... nastavi DLCI (data link connection identifiers) na 101\\ int s0; frame-relay lmi-type cisco ... nastavi LMI (Local Management Interface) na cisco\\ do sh frame pvc\\ do sh frame lmi ... lmi statistiky\\ do sh frame map\\ do debug frame-relay lmi\\
Frame Relay - jedno zarizeni
int s0\\ int s0; encalupsation framerelay (ietf) ... nastavi obalovani paketu Frame Relay (ietf kdyz partner neni Cisco)\\ int s0; int s0.16 point-to-point ... nastavi podinterfejs\\ int s0; int s0.16 point-to-point; ip address 1.2.3.4 255.255.255 ... nastavi ip adresu\\ int s0; int s0.16 point-to-point; interface-dlci 16 ... nastavi DLCI na 16\\ int s0; int s0.16 point-to-point; no ip directed-broadcast\\ int s0; int s0.104 point-to-point ... nastavi podinterfejs\\ int s0; int s0.104 point-to-point; ip address 1.2.4.4 255.255.255 ... nastavi ip adresu\\ int s0; int s0.104 point-to-point; interface-dlci 104 ... nastavi DLCI na 16\\ int s0; int s0.104 point-to-point; no ip directed-broadcast\\ do sh frame-relay pvc\\
Frame Relay Switch
frame-relay switching\\ int s0/0\\ int s0/0; encalupsation frame-relay\\ int s0/1\\ int s0/1; encalupsation frame-relay\\ int s0/0\\ int s0/0; frame intf-type dce ... nastavi zarizeni na DCE (Data Communication equipment)\\ int s0/0; frame-relay route 102 interface Serial0/1 201\\ int s0/0; clock rate 64000\\ int s0/1\\ int s0/1; frame intf-type dce ... nastavi zarizeni na DCE (Data Communication equipment)\\ int s0/0; frame-relay route 201 interface Serial0/0 102\\ int s0/0; clock rate 64000\\
ISDN
(config)# dialer-list 1 protocol ip permic ... definice datovych toku pro isdn\\ (config)# access-list 1 all\\ (config)# int br0\\ (config-if)# dialer-group 1 ... aktivace ACL na interfejsu\\