</p>
<ol>
<li>Skonfigurowania odpowiedniej nazwy hosta:
+<pre class="code-block">
+Router(config)#hostname R2
+R2(config)#
+</pre>
+ </li>
+ <li>Ochrona trybu uprzywilejowanego EXEC przy użyciu hasła:
+<pre class="code-block">
+R2(config)#enable secret class
+</pre>
+ </li>
+ <li>Zabezpieczenie dostępu przez konsole:
+<pre class="code-block">
+R1(config)#line console 0
+R1(config-line)#logging synchronous
+R1(config-line)#password cisco
+R1(config-line)#login
+R1(config-line)#exit
+</pre>
+ <li>Umożliwienie zdalnego dostępu przez konsole:
+<pre class="code-block">
+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
+</pre>
+ <li>Ustawienie szyfrowania haseł:
+<pre class="code-block">
+R1(config)#service password-encryption
+</pre>
+ </li>
+ <li>Ustawienie wiadomości powitalnej/ostrzeżenia:
+<pre class="code-block">
+R1(config)#banner motd #
+Enter TEXT message. End with the character '#'.
+WARNING: Unauthorized access is prohibited!
+#
+</pre>
+ </li>
+ <li>Włączenie routingu IPv6:
+<pre class="code-block">
+R1(config)#ipv6 unicast-routing
+</pre>
+ </li>
+ <li>Konfiguracja interfejsów:
+<pre class="code-block">
+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
+</pre>
+ </li>
+ <li>Zapis konfiguracji bierzącej do konfiguracji startowej:
+<pre class="code-inline">
+R1#copy running-config startup-config
+Destination filename [startup-config]?
+Building configuration...
+[OK]
+</pre>
+ </li>
+ </ol>
+ <p>
+ 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ń <em>show</em>.
+ </p>
+ <ul>
+ <li><code class="code-inline">show ip interface brief</code>:
+<pre class="code-block">
+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
+</pre>
+ </li>
+ <li><code class="code-inline">show running-config</code>:
+<pre class="code-block">
+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
+...
+</pre>
+ </li>
+ <li><code class="code-inline">show interfaces</code>:
+<pre class="code-block">
+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
+...
+</pre>
+ <li><code class="code-inline">show ip interface</code>:
+<pre class="code-inline">
+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
+...
+</pre>
+ </li>
+ <li><code class="code-inline">show ip route</code>:
+<pre class="code-block">
+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
+</pre>
+ <li><code class="code-inline">ping</code>:
+<pre class="code-block">
+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
+</pre>
+ </ul>
+ <p>
+ Wyjścia poleceń <code class="code-inline">show running-config<code>,
+ <code class="code-inline">show interfaces</code> czy
+ <code class="code-inline">show ip interfaces</code> można przepusiścić
+ przez znak potoku (<strong>|</strong>) oraz polecenia filtrujące
+ (<em>begin</em>, <em>section</em>, <em>include</em>, <em>exclude</em>.
+ </p>
+ <h3 id="2.14.2.pka">Zadanie praktyczne - Packet Tracer</h3>
+ <p>
+ <a href="">Przegląd podstawowej konfiguracji routera - scenariusz</a><br />
+ <a href="">Przegląd podstawowej konfiguracji routera - zadanie</a>
+ </p>
+ <h2 id="2.14.3.routingtable">2.14.3. Tablica routingu</h2>
+ <p>
+ 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ć:
+ </p>
+ <ul>
+ <li>Sieci bezpośrednio podłączone</li>
+ <li>Trasy statyczne</li>
+ <li>Protokoły routingu dynamicznego</li>
+ </ul>
+ <p>
+ 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ą:
+ </p>
+ <ol>
+ <li>Każdy router podejmuje decyzje samodzielnie na podstawie swojej
+ tablicy routingu.</li>
+ <li>Informacje w tabeli routingu jednego routera niekoniecznie pasują
+ do tabeli routingu innego routera.</li>
+ <li>Informacje o routingu ścieżki nie zapewniają informacji o routingu
+ zwrotnym.</li>
</ol>
</div>
</body>