Ospf New
Ospf New
planning Documentation:
Network:192.9.1.0/24 (R-1)
1
Loopback 0 1.1.1.1 255.255.255.2
55
Gig0/1 Connect to
R-1
2 SW-1
Fa0/1 Connect
to PC-1
3 PC-1 192.9.1.10 255.255.255.0 192.9.1.1
Network:192.9.2.0/24 (R-2)
S.N Device Interface Descripti on IP Address Subnet Mask Default
Gateway
Se0/2/0 Connect to 25.1.1.1 255.255.255.252
R-5
1 R-2 Se0/1/1 Connect 12.1.1.2
to R-1
Gig 0/0/1 Connect 192.9.2.1 255.255.255.0
to SW-2
Loopback 2.2.2.2 255.255.255.255
0
Gig0/1 Connect to
R-2
2 SW-2
Fa0/1 Connect to
PC-2
3 PC-2 192.9.2.10 255.255.255.0 192.9.2.1
Network:192.9.3.0/24 (R-3)
S.N Device Interface Descripti on IP Address Subnet Mask Default
Gateway
Se0/1/0 Connect 13.1.1.2 255.255.255.252
R-3 To R-1
2
1 R-3 Se 0/1/1 Connect to 34.1.1.1 255.255.255.252
R-4
Gig 0/0/1 Connect to 192.9.3.1 255.255.255.0
SW-3
Loopback 3.3.3.3 255.255.255.255
0
Gig0/1 Connect to
R-3
2 SW-3
Fa0/1 Connect to
PC-3
3 PC-3 192.9.3.10 255.255.255.0 192.9.3.1
3
Network:192.9.5.0/24 (R-5)
S.N Device Interface Descripti IP Address Subnet Mask Default
on Gateway
Se0/1/0 Connect To 45.1.1.2 255.255.255.252
R-4
1 R-5
Se 0/2/0 Connect to 25.1.1.2 255.255.255.252
R-2
Gig 0/0/1 Connect 192.9.5.1 255.255.255.0
to SW-5
Loopback 0 5.5.5.5 255.255.255.255
Gig0/1 Connect
to R-5
2 SW-5
Fa0/1 Connect to
PC-5
3 PC-5 192.9.5.10 255.255.255.0 192.9.5.1
Network:200.200.200.0/24 (ISP)
S.N Device Interface Descripti IP Address Subnet Mask Default
on Gateway
Se 0/2/1 Connect 200.200.200.1 255.255.255.0
1 ISP to R-1
Gig 0/0/0 Connect 100.100.100.1 255.255.255.0
to Server
2 Server Fa0 Connect 100.100.100.10 255.255.255.0 100.100.100
to ISP .1
4
Router (R-1)
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R-1
R-1(config)#enable password cisco
R-1(config)#line console 0
R-1(config-line)#password class
R-1(config-line)#login
R-1(config-line)#exit
R-1(config)#line vty 0 5
R-1(config-line)#password bim5
R-1(config-line)#login
R-1(config-line)#exit
R-1(config)#interface serial 0/1/0
R-1(config-if)#description ***connected-to-R-3***
R-1(config-if)#ip address 13.1.1.1 255.255.255.252
R-1(config-if)#no shutdown
R-1(config-if)#exit
R-1(config)#interface serial 0/1/1
R-1(config-if)#description ***connected-to-R-2***
R-1(config-if)#ip address 12.1.1.1 255.255.255.252
R-1(config-if)#no shutdown
R-1(config-if)#exit
R-1(config)#
R-1(config)#interface serial 0/2/0
R-1(config-if)#description ***connected-to-R-4***
R-1(config-if)#ip address 14.1.1.1 255.255.255.252
R-1(config-if)#no shutdown
R-1(config-if)#exit
R-1(config)#interface serial 0/2/1
R-1(config-if)#description ***connected-to-ISP***
R-1(config-if)#ip address 200.200.200.2 255.255.255.0
R-1(config-if)#no shutdown
R-1(config-if)#exit
R-1(config)#interface gigabitethernet 0/0/1
R-1(config-if)#description ***connected to SW-1***
R-1(config-if)#ip address 192.9.1.1 255.255.255.0
R-1(config-if)#no shutdown
R-1(config)#interface loopback 0
R-1(config-if)#ip address 1.1.1.1 255.255.255.255
R-1(config-if)#end
R-1(config)#router ospf 10
R-1(config-router)#router-id 1.1.1.1
R-1(config-router)#network 192.9.1.0 0.0.0.255 area 0
R-1(config-router)#network 12.1.1.0 0.0.0.3 area 0
5
R-1(config-router)#network 13.1.1.0 0.0.0.3 area 0
R-1(config-router)#network 14.1.1.0 0.0.0.3 area 0
R-1(config-router)#network 200.200.200.0 0.0.0.3 area 0
R-1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R-1(config-router)#end
R-1#wr
ROUTER (R-2)
Router>enable
Router#conf t
Router(config)#hostname R-2
R-2(config)#enable password cisco
R-2(config)#line console 0
R-2(config-line)#password class
R-2(config-line)#login
R-2(config-line)#exit
R-2(config)#line vty 0 5
R-2(config-line)#password bim5
R-2(config-line)#login
R-2(config-line)#exit
R-2(config)#interface serial 0/2/0
R-2(config-if)#description ***connected-to-R-5***
R-2(config-if)#ip address 25.1.1.1 255.255.255.252
R-2(config-if)#no shutdown
R-2(config-if)#exit
R-2(config)#interface serial 0/1/1
R-2(config-if)#description ***connected-to-R-1***
R-2(config-if)#ip address 12.1.1.1 255.255.255.252
R-2(config-if)#no shutdown
R-2(config-if)#exit
R-2(config)#interface gigabitethernet 0/0/1
R-2(config-if)#description ***connected to SW-1***
R-2(config-if)#ip address 192.9.2.1 255.255.255.0
R-2(config-if)#no shutdown
R-2(config)#interface loopback 0
R-2(config-if)#ip address 2.2.2.2 255.255.255.255
R-2(config-if)#end
R-2#conf t
R-2(config)#router ospf 10
R-2(config-router)#router-id 2.2.2.2
R-2(config-router)#network 192.9.2.0 0.0.0.255 area 0
R-2(config-router)#network 12.1.1.0 0.0.0.3 area 0
R-2(config-router)#network 13.1.1.0 0.0.0.3 area 0
R-2(config-router)#network 14.1.1.0 0.0.0.3 area 0
R-2(config-router)#network 200.200.200.0 0.0.0.3 area 0
R-2(config-router)#network 2.2.2.2 0.0.0.0 area 0
6
R-2(config-router)#end
R-2#wr
ROUTER (R-3)
Router>enable
Router#conf t
Router(config)#hostname R-3
R-3(config)#enable password cisco
R-3(config)#line console 0
R-3(config-line)#password class
R-3(config-line)#login
R-3(config-line)#exit
R-3(config)#line vty 0 5
R-3(config-line)#password bim5
R-3(config-line)#login
R-3(config-line)#exit
R-3(config)#interface serial 0/1/0
R-3(config-if)#description ***connected-to-R-1***
R-3(config-if)#ip address 13.1.1.1 255.255.255.252
R-3(config-if)#no shutdown
R-3(config-if)#exit
R-3(config-if)#description ***connected-to-R-4***
R-3(config-if)#ip address 34.1.1.1 255.255.255.252
R-3(config-if)#no shutdown
R-3(config-if)#exit
R-3(config)#interface gigabitethernet 0/0/1
R-3(config-if)#description ***connected to SW-3***
R-3(config-if)#ip address 192.9.3.1 255.255.255.0
R-3(config-if)#no shutdown
R-3(config-if)#exit
R-3(config)#interface loopback 0
R-3(config-if)#ip address 3.3.3.3 255.255.255.255
R-3(config-if)#end
R-3(config-router)#router-id 3.3.3.3
R-3(config-router)#network 192.9.3.0 0.0.0.255 area 0
R-3(config-router)#network 13.1.1.0 0.0.0.3 area 0
R-3(config-router)#network 34.1.1.0 0.0.0.3 area 0
R-3(config-router)#network 200.200.200.0 0.0.0.3 area 0
R-3(config-router)#network 3.3.3.3 0.0.0.0 area 0
R-3#wr
ROUTER (R-4)
Router>enable
Router#configure terminal
Router(config)#hostname R-4
7
R-4(config)#enable secret cisco
R-4(config)#line console 0
R-4(config-line)#password class
R-4(config-line)#login
R-4(config-line)#exit
R-4(config)#line vty 0 4
R-4(config-line)#password bim5
R-4(config-line)#login
R-4(config-line)#exit
R-4(config)#int gig0/0/1
R-4(config-if)#description ***connection-to-SW-4***
R-4(config-if)#ip address 192.9.4.1 255.255.255.0
R-4(config-if)#no shutdown
R-4(config-if)#exit
R-4(config-if)#exit
R-4(config-if)#exit
8
R-4(config-if)#ip address 14.1.1.2 255.255.255.252
R-4(config-if)#no shutdown R-4
(config-if)#exit
R-4(config)#interface loopback 0
Router(R-5)
Router>enable
Router#conf t
Router(config)#hostname R-5
R-5(config)#enable secret cisco
R-5(config)#line console 0
R-5(config-line)#password class
R-5(config-line)#login
R-5(config-line)#exit
R-5(config)#line vty 0 4
R-5(config-line)#password bim5
R-5(config-line)#login
9
R-5(config-line)#exit
R-5(config)#int gig0/0/1
R-5(config-if)#description ***connection-to-SW-5***
R-5(config-if)#ip address 192.9.5.1 255.255.255.0
R-5(config-if)#no shutdown
R-5(config-if)#exit
R-5(config)#int serial 0/1/0
R-5(config-if)#description ***connection-to-R-4***
R-5(config-if)#ip address 25.1.1.2 255.255.255.252
R-5(config-if)#no shutdown
R-5(config-if)#exit
R-5(config)#int serial 0/2/0
R-5(config-if)#description ***connection-to-R-2***
R-5(config-if)#ip address 25.1.1.2 255.255.255.252
R-5(config-if)#no shutdown
R-5(config-if)#exit
R-5(config)#interface loopback 0
R-5(config-if)#ip address 5.5.5.5 255.255.255.255
R-5(config-if)#end
R-5(config)#router ospf 10
R-5(config-router)#router-id 5.5.5.5
R-5(config-router)#network 192.9.5.0 0.0.0.255 area 0
R-5(config-router)#network 25.1.1.0 0.0.0.3 area 0
R-5(config-router)#network 45.1.1.0 0.0.0.3 area 0
R-5(config-router)#network 5.5.5.5 0.0.0.0 area 0
R-5(config-router)#end
R-5#write
For ISP
10
Router(config)#hostname ISP
ISP(config)#enable password cisco
ISP(config)#line console 0
ISP(config-line)#password cisco
ISP(config-line)#login
ISP(config-line)#exit
ISP(config)#line vty 0 5
ISP(config-line)#password bim5
ISP(config-line)#login
ISP(config-line)#exit
ISP(config)#interface gigabitethernet0/0/1
ISP(config-if)#ip address 100.100.100.1 255.255.255.0
ISP(config-if)#ip route 0.0.0.0 0.0.0.0 200.200.200.2
ISP(config-if)#no shutdown
ISP(config-if)#int se0/2/1
ISP(config-if)#ip address 200.200.200.1 255.255.255.0
ISP(config-if)#no shutdown
ISP(config-if)#ip route 0.0.0.0 0.0.0.0 200.200.200.2
ISP(config)#end
ISP#wr
Verification
ROUTER (R-1)
Show ip ospf neighbor
11
Show ip int brief
Show ip protocols
12
Router (R-2)
Show ip int brief
Show ip protocols
13
Show ip route ospf
Router (R-3)
14
Show ip int brief
Router (R-4)
Show ip int brief
15
Show ip ospf neighbor
Router (R-5)
Show ip int brief
16
Show ip ospf neighbor
Show ip protocol
17
ISP
Show ip int brief
Show ip route
18
Reachability
Router (R-1) to other network
19
Router (R-2) to other networks
20
Router (R-3) to other networks
21
Router (R-4) to other networks
22
Router (R-5) to other networks
23