From d5c8e6c73a88551a6c1f7470edc82d6bae63e22b Mon Sep 17 00:00:00 2001
From: xf0r3m
+Router(config)#hostname R2 +R2(config)# ++
+R2(config)#enable secret class ++
+R1(config)#line console 0 +R1(config-line)#logging synchronous +R1(config-line)#password cisco +R1(config-line)#login +R1(config-line)#exit ++
+R1(config)#line vty 0 4 +R1(config-line)#password cisco +R1(config-line)#login +R1(config-line)#transport input ssh +R1(config-line)#exit ++
+R1(config)#service password-encryption ++
+R1(config)#banner motd # +Enter TEXT message. End with the character '#'. +WARNING: Unauthorized access is prohibited! +# ++
+R1(config)#ipv6 unicast-routing ++
+R1(config)#int gig0/0 +R1(config-if)#desc Link to S1 +R1(config-if)#ip addr 192.168.0.1 255.255.255.0 +R1(config-if)#ipv6 addr 2001:db8:acad:0::1/64 +R1(config-if)#ipv6 addr fe80::0:1 link-local +R1(config-if)#no shutdown ++
+R1#copy running-config startup-config +Destination filename [startup-config]? +Building configuration... +[OK] ++
+ W ten sposób wyglÄ da najprostsza konfiguracja routera, jakÄ należaÅo by + przeprowadziÄ, oczywiÅcie konfiguracjÄ interfejsów powtarzamy dla + wszystkich uwzglÄdnionych w topologii. TakÄ konfiguracjÄ możemy + weryfikowaÄ przy pomocy poleceÅ show. +
+show ip interface brief:
++R1#show ip int br +Interface IP-Address OK? Method Status Protocol +GigabitEthernet0/0 192.168.0.1 YES manual up down +GigabitEthernet0/1 unassigned YES unset administratively down down +Vlan1 unassigned YES unset administratively down down ++
show running-config:
++R1#sh running-config +Building configuration... + +Current configuration : 887 bytes +! +version 15.1 +no service timestamps log datetime msec +no service timestamps debug datetime msec +service password-encryption +! +hostname R1 +... ++
show interfaces:
++R1#sh interfaces +GigabitEthernet0/0 is up, line protocol is down (disabled) + Hardware is CN Gigabit Ethernet, address is 0001.9731.1701 (bia 0001.9731.1701) + Description: Link to S1 + Internet address is 192.168.0.1/24 + MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, + reliability 255/255, txload 1/255, rxload 1/255 + Encapsulation ARPA, loopback not set + Keepalive set (10 sec) + Full-duplex, 100Mb/s, media type is RJ45 + output flow-control is unsupported, input flow-control is unsupported + ARP type: ARPA, ARP Timeout 04:00:00, + Last input 00:00:08, output 00:00:05, output hang never + Last clearing of "show interface" counters never + Input queue: 0/75/0 (size/max/drops); Total output drops: 0 + Queueing strategy: fifo + Output queue :0/40 (size/max) + 5 minute input rate 0 bits/sec, 0 packets/sec + 5 minute output rate 0 bits/sec, 0 packets/sec + 0 packets input, 0 bytes, 0 no buffer + Received 0 broadcasts, 0 runts, 0 giants, 0 throttles + 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort + 0 watchdog, 1017 multicast, 0 pause input +... ++
show ip interface:
++R1#show ip interface +GigabitEthernet0/0 is up, line protocol is down (disabled) + Internet address is 192.168.0.1/24 + Broadcast address is 255.255.255.255 + Address determined by setup command + MTU is 1500 bytes + Helper address is not set + Directed broadcast forwarding is disabled + Outgoing access list is not set + Inbound access list is not set + Proxy ARP is enabled + Security level is default + Split horizon is enabled + ICMP redirects are always sent + ICMP unreachables are always sent + ICMP mask replies are never sent + IP fast switching is disabled + IP fast switching on the same interface is disabled + IP Flow switching is disabled + IP Fast switching turbo vector + IP multicast fast switching is disabled + IP multicast distributed fast switching is disabled + Router Discovery is disabled +... ++
show ip route:
++R1#show ip route +Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP + D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area + N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 + E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP + i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area + * - candidate default, U - per-user static route, o - ODR + P - periodic downloaded static route + +Gateway of last resort is not set + + 192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks +C 192.168.0.0/24 is directly connected, GigabitEthernet0/0 +L 192.168.0.1/32 is directly connected, GigabitEthernet0/0 ++
ping:
++R1#ping 192.168.0.100 + +Type escape sequence to abort. +Sending 5, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds: +!!!!! +Success rate is 100 percent (5/5), round-trip min/avg/max = 0/8/43 ms ++
+ WyjÅcia poleceÅ show running-config,
+ show interfaces czy
+ show ip interfaces można przepusiÅciÄ
+ przez znak potoku (|) oraz polecenia filtrujÄ
ce
+ (begin, section, include, exclude.
+
+ PrzeglÄ
d podstawowej konfiguracji routera - scenariusz
+ PrzeglÄ
d podstawowej konfiguracji routera - zadanie
+
+ Tablica routingu jest tabelÄ w pamiÄci routera. Na podstawie wpisów + w tej tabeli urzÄ dzenie dokonuje decyzji gdzie przesÅaÄ otrzymany + pakiet. ŹródÅem tych wpisów mogÄ byÄ: +
++ InstniejÄ trzy zasady zwiÄ zane z tablicami rutingu. Zasady te, a + konkretniej problemy można rozwiÄ zaÄ poprzez stosowanie dynamicznych + protokoÅów routingu, czy tras statycznych na wszystkich urzÄ dzeniach + miÄdzy nadawcÄ a odbiorcÄ : +
+