Thursday, May 21, 2015

Static Routing

========================================================
    insert static routing R1
========================================================

R1>enable
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip route 192.168.13.0 255.255.255.0 192.168.11.2
R1(config)#ip route 192.168.12.0 255.255.255.0 192.168.11.2
R1(config)#exit
R1#
R1#show ip route

Gateway of last resort is not set

C    192.168.10.0/24 is directly connected, FastEthernet0/0
C    192.168.11.0/24 is directly connected, Serial2/0
S    192.168.12.0/24 [1/0] via 192.168.11.2
S    192.168.13.0/24 [1/0] via 192.168.11.2

==========================================================
    insert statis routing R3
==========================================================

R3#show ip route

Gateway of last resort is not set

C    192.168.12.0/24 is directly connected, Serial3/0
C    192.168.13.0/24 is directly connected, FastEthernet0/0

R3#configure ter
Enter configuration commands, one per line.  End with CNTL/Z.

R3(config)#ip route 192.168.11.0 255.255.255.0 192.168.12.1
R3(config)#ip route 192.168.10.0 255.255.255.0 192.168.12.1
R3(config)#exit
R3#copy running-config startup-config

R3#show ip route

S    192.168.10.0/24 [1/0] via 192.168.12.1
S    192.168.11.0/24 [1/0] via 192.168.12.1
C    192.168.12.0/24 is directly connected, Serial3/0
C    192.168.13.0/24 is directly connected, FastEthernet0/0
R3#
=============================================================
    insert static R2
=============================================================
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B -

C    192.168.11.0/24 is directly connected, Serial2/0
C    192.168.12.0/24 is directly connected, Serial3/0

R2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#
R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.11.1
R2(config)#ip route 192.168.13.0 255.255.255.0 192.168.12.2
R2(config)#exit

R2#copy running-config startup-config

R2#show ip route

S    192.168.10.0/24 [1/0] via 192.168.11.1
C    192.168.11.0/24 is directly connected, Serial2/0
C    192.168.12.0/24 is directly connected, Serial3/0
S    192.168.13.0/24 [1/0] via 192.168.12.2