Академический Документы
Профессиональный Документы
Культура Документы
Addressing Table
Device Interface
Fa0/0 HQ S0/0/0 S0/0/1 Lo1 Fa0/0 Branch1 S0/0/0 S0/0/1 Fa0/0 Branch2 S0/0/0 S0/0/1
IP Address
172.20.0.1 172.20.56.1 172.20.56.5 10.10.10.1 172.20.32.1 172.20.56.2 172.20.56.9 172.20.48.1 172.20.56.10 172.20.56.6 172.20.47.254 172.20.31.254 172.20.55.254
Subnet Mask
255.255.224.0 255.255.255.252 255.255.255.252 255.255.255.252 255.255.240.0 255.255.255.252 255.255.255.252 255.255.248.0 255.255.255.252 255.255.255.252 255.255.240.0 255.255.224.0 255.255.248.0
Default Gateway
N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 172.20.32.1 172.20.0.1 172.20.48.1
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 1 of 14
Learning Objectives
Upon completion of this lab, you will be able to: Cable a network according to the Topology Diagram Erase the startup configuration and reload a router to the default state Configure routers including OSPF Configure and propagate a static default route Verify OSPF operation Test and verify full connectivity Reflect upon and document the network implementation
Scenario
A combination OSPF routing and static routing will be required so that hosts on networks that are not directly connected will be able to communicate with each other. OSPF area ID of 0 and process ID of 1 will be used in all OSPF configurations.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 2 of 14
Step 3: Configure the correct bandwidth for the serial interfaces on the Branch 1 router. What commands are required to accomplish this? _BRANCH1(config)#interface serial 0/3/0_ _BRANCH1(config-if)#bandwidth 128_ _BRANCH1(config-if)#exit_ _BRANCH1(config)#interface serial 0/3/1_ _BRANCH1(config-if)#bandwidth 64_ Step 4: Configure the correct bandwidth for the serial interfaces on the Branch 2 router. What commands are required to accomplish this? _BRANCH2(config)#interface serial 0/3/0_ _BRANCH2(config-if)#bandwidth 64_ _BRANCH2(config-if)#exit_ _BRANCH2(config)#interface serial 0/3/1_ _BRANCH2(config-if)#bandwidth 256_ Step 5: Configure the correct bandwidth for the serial interfaces on the HQ router. What commands are required to accomplish this? _HQconfig)#interface serial 0/3/0_ _HQ(config-if)#bandwidth 128_ _HQ(config-if)#exit_ _HQ(config)#interface serial 0/3/1_ _HQ(config-if)#bandwidth 256_
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 3 of 14
What commands are required to enable OSPF and include the connected networks in the routing updates? _BRANCH1(config)#router ospf 1_ _BRANCH1(config-router)#network 172.20.32.0 0.0.15.255 area 0_ _BRANCH1(config-router)#network 172.20.56.8 0.0.0.3 area 0_ _BRANCH1(config-router)#network 172.20.56.0 0.0.0.3 area 0_ Are there any router interfaces that do not need to have OSPF updates sent out? _YES, fastethernet 0/0_ What command is used to disable OSPF updates on these interfaces? _BRANCH1(config-router)#passive-interface fast0/0_
Will the networks of the HQ LAN and the links between the Branch 1 and Branch2 routers need to have the subnet mask information included in the network statements? _YES_ What commands are required to enable OSPF and include the appropriate networks in the routing updates? _HQ(config)#router ospf 1_ _HQ(config-router)#network 172.20.0.0 0.0.31.255 area 0_ _HQ(config-router)#network 172.20.56.0 0.0.0.3 area 0_ _HQ(config-router)#network 172.20.56.4 0.0.0.3 area 0_ _HQ(config-router)#network 10.10.10.1 0.0.0.3 area 0_ Are there any router interfaces that do not need to have OSPF updates sent out? _YES_ What command is used to disable OSPF updates on these interfaces? _HQ(config-router)#passive-interface fast0/0_ _HQ(config-router)#passive-interface loopback 1_ The HQ router needs to send the default route information to the Branch1 and Branch2 routers in the OSPF updates. What command is used to configure this? _HQ(config-router)#default-information originate_
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 4 of 14
What commands are required to enable OSPF and include the connected networks in the routing updates? _BRANCH2(config)#router ospf 1_ _BRANCH2(config-router)#network 172.20.48.0 0.0.7.255 area 0_ _BRANCH2(config-router)#network 172.20.56.8 0.0.0.3 area 0_ _BRANCH2(config-router)#network 172.20.56.4 0.0.0.3 area 0_ Are there any router interfaces that do not need to have OSPF updates sent out? _YES_ What command is used to disable OSPF updates on these interfaces? _BRANCH2(config-router)#passive-interface fast0/0_
_O*E2 0.0.0.0/0 [110/1] via 172.20.56.1, 00:09:47, Serial0/3/0_ What is the gateway of last resort in the routing table of the Branch1 router? _Gateway of last resort is 172.20.56.1 to network 0.0.0.0_ What OSPF routes are present in the routing table of the HQ router? _10.0.0.0/30 is subnetted, 1 subnets_
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 5 of 14
_C _C _O _O _C _C _O
10.10.10.0 is directly connected, Loopback1_ 172.20.0.0/19 is directly connected, FastEthernet0/0_ 172.20.32.0/20 [110/782] via 172.20.56.2, 00:14:46, Serial0/3/0_ 172.20.48.0/21 [110/391] via 172.20.56.6, 00:06:12, Serial0/3/1_ 172.20.56.0/30 is directly connected, Serial0/3/0_ 172.20.56.4/30 is directly connected, Serial0/3/1_ 172.20.56.8/30 [110/1952] via 172.20.56.6, 00:06:12, Serial0/3/1_
_S* 0.0.0.0/0 is directly connected, Loopback1_ What is the gateway of last resort in the routing table of the HQ router? _Gateway of last resort is 0.0.0.0 to network 0.0.0.0_ What OSPF routes are present in the routing table of the Branch2 router? _10.0.0.0/32 is subnetted, 1 subnets_ _O _O _O _C _O _C _C 10.10.10.1 [110/391] via 172.20.56.5, 00:07:37, Serial0/3/1_ 172.20.0.0/19 [110/391] via 172.20.56.5, 00:07:37, Serial0/3/1_ 172.20.32.0/20 [110/1172] via 172.20.56.5, 00:07:37, Serial0/3/1_ 172.20.48.0/21 is directly connected, FastEthernet0/0_ 172.20.56.0/30 [110/1171] via 172.20.56.5, 00:07:37, Serial0/3/1_ 172.20.56.4/30 is directly connected, Serial0/3/1_ 172.20.56.8/30 is directly connected, Serial0/3/0_ _172.20.0.0/16 is variably subnetted, 6 subnets, 4 masks_
_O*E2 0.0.0.0/0 [110/1] via 172.20.56.5, 00:07:37, Serial0/3/1_ What is the gateway of last resort in the routing table of the Branch2 router? _Gateway of last resort is 172.20.56.5 to network 0.0.0.0_
Task 9: Reflection
On PC1, use the tracert command to examine the route that is used between PC1 and PC3. What are the hops in the route to PC3? _Tracing route to 172.20.48.1 over a maximum of 30 hops: _ _ 1 10 ms _ 2 94 ms _ 3 20 ms 6 ms 94 ms 21 ms 62 ms 8 ms 6 ms 172.20.32.1_ 172.20.56.1_ 172.20.48.1_
BRANCH1, HQ AND BRANCH2 Is this the least number of hops that can be used to reach PC3? _No_ If the answer is no, why is a path with more than the minimum amount of hops used? _It is because OSPF calculates metric as cost, which is based on bandwidth. The cost from PC1 to PC3 using BRANCH1, HQ and BRANCH2 is 1172 but the cost to PC3 using BRANCH1, BRANCH2 is 1563. Thus, OSPF uses the route with more hops(it can be seen from show ip route), it demonstrates that less amount of hops does not mean the faster or better path to a host. Using RIP, it would be different, and from PC1 to PC3 will use BRANCH1, BRANCH2_
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 6 of 14
PASTE THE RESULTS HERE: BRANCH1#show running-config Building configuration... Current configuration : 1032 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname BRANCH1 ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ! ! ! ! ! ! ! ! no ip domain-lookup ! ! ! ! ! ! interface FastEthernet0/0 ip address 172.20.32.1 255.255.240.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/3/0 bandwidth 128 ip address 172.20.56.2 255.255.255.252
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 7 of 14
clock rate 125000 ! interface Serial0/3/1 bandwidth 64 ip address 172.20.56.9 255.255.255.252 ! interface Vlan1 no ip address shutdown ! router ospf 1 log-adjacency-changes passive-interface FastEthernet0/0 network 172.20.32.0 0.0.15.255 area 0 network 172.20.56.8 0.0.0.3 area 0 network 172.20.56.0 0.0.0.3 area 0 ! ip classless ! ! ! banner motd ^C 11 ^C ! ! ! ! line con 0 exec-timeout 15 0 password cisco logging synchronous login line vty 0 4 exec-timeout 15 0 password cisco logging synchronous login ! ! ! end BRANCH1#show ip route Codes: C - connected, S - static, I - IGRP, 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 172.20.56.1 to network 0.0.0.0 O O C O C 10.0.0.0/32 is subnetted, 1 subnets 10.10.10.1 [110/782] via 172.20.56.1, 00:33:45, Serial0/3/0 172.20.0.0/16 is variably subnetted, 6 subnets, 4 masks 172.20.0.0/19 [110/782] via 172.20.56.1, 00:34:47, Serial0/3/0 172.20.32.0/20 is directly connected, FastEthernet0/0 172.20.48.0/21 [110/1172] via 172.20.56.1, 00:26:13, Serial0/3/0 172.20.56.0/30 is directly connected, Serial0/3/0
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 8 of 14
O 172.20.56.4/30 [110/1171] via 172.20.56.1, 00:34:37, Serial0/3/0 C 172.20.56.8/30 is directly connected, Serial0/3/1 O*E2 0.0.0.0/0 [110/1] via 172.20.56.1, 00:32:36, Serial0/3/0 BRANCH1#show ip interface brief Interface IP-Address OK? Method Status FastEthernet0/0 FastEthernet0/1 Serial0/3/0 Serial0/3/1 172.20.32.1 unassigned 172.20.56.2 172.20.56.9 YES manual up
Protocol up
BRANCH1#show ip protocols Routing Protocol is "ospf 1" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 172.20.56.9 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 172.20.32.0 0.0.15.255 area 0 172.20.56.8 0.0.0.3 area 0 172.20.56.0 0.0.0.3 area 0 Passive Interface(s): FastEthernet0/0 Routing Information Sources: Gateway Distance Last Update 10.10.10.1 110 00:27:02 172.20.56.9 110 00:27:20 172.20.56.10 110 00:27:02 Distance: (default is 110) HQ#show running-config Building configuration... Current configuration : 1218 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname HQ ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ! ! ! !
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 9 of 14
! ! ! ! no ip domain-lookup ! ! ! ! ! ! interface Loopback1 ip address 10.10.10.1 255.255.255.252 ! interface FastEthernet0/0 ip address 172.20.0.1 255.255.224.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/3/0 bandwidth 128 ip address 172.20.56.1 255.255.255.252 ! interface Serial0/3/1 bandwidth 256 ip address 172.20.56.5 255.255.255.252 clock rate 125000 ! interface Vlan1 no ip address shutdown ! router ospf 1 log-adjacency-changes passive-interface FastEthernet0/0 passive-interface Loopback1 network 172.20.0.0 0.0.31.255 area 0 network 172.20.56.0 0.0.0.3 area 0 network 172.20.56.4 0.0.0.3 area 0 network 10.10.10.0 0.0.0.3 area 0 default-information originate ! ip classless ip route 0.0.0.0 0.0.0.0 Loopback1 ! ! ! banner motd ^C 11 ^C ! ! ! ! line con 0
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 10 of 14
exec-timeout 15 0 password cisco logging synchronous login line vty 0 4 exec-timeout 15 0 password cisco logging synchronous login ! ! ! end HQ#show ip route Codes: C - connected, S - static, I - IGRP, 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 0.0.0.0 to network 0.0.0.0 C C O O C C O S* 10.0.0.0/30 is subnetted, 1 subnets 10.10.10.0 is directly connected, Loopback1 172.20.0.0/16 is variably subnetted, 6 subnets, 4 masks 172.20.0.0/19 is directly connected, FastEthernet0/0 172.20.32.0/20 [110/782] via 172.20.56.2, 00:37:10, Serial0/3/0 172.20.48.0/21 [110/391] via 172.20.56.6, 00:28:36, Serial0/3/1 172.20.56.0/30 is directly connected, Serial0/3/0 172.20.56.4/30 is directly connected, Serial0/3/1 172.20.56.8/30 [110/1952] via 172.20.56.6, 00:28:36, Serial0/3/1 0.0.0.0/0 is directly connected, Loopback1 OK? Method Status YES manual up Protocol up
HQ#show ip interface brief Interface IP-Address FastEthernet0/0 FastEthernet0/1 Serial0/3/0 Serial0/3/1 Loopback1 172.20.0.1
YES NVRAM administratively down down YES manual up YES manual up YES manual up up up up
HQ#show ip protocols Routing Protocol is "ospf 1" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 10.10.10.1 It is an autonomous system boundary router Redistributing External Routes from, Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 11 of 14
Routing for Networks: 172.20.0.0 0.0.31.255 area 0 172.20.56.0 0.0.0.3 area 0 172.20.56.4 0.0.0.3 area 0 10.10.10.0 0.0.0.3 area 0 Passive Interface(s): FastEthernet0/0 Loopback1 Routing Information Sources: Gateway Distance Last Update 10.10.10.1 110 00:29:03 172.20.56.9 110 00:29:21 172.20.56.10 110 00:29:03 Distance: (default is 110) BRANCH2#show running-config Building configuration... Current configuration : 1032 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname BRANCH2 ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ! ! ! ! ! ! ! ! no ip domain-lookup ! ! ! ! ! ! interface FastEthernet0/0 ip address 172.20.48.1 255.255.248.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/3/0
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 12 of 14
bandwidth 64 ip address 172.20.56.10 255.255.255.252 clock rate 125000 ! interface Serial0/3/1 bandwidth 256 ip address 172.20.56.6 255.255.255.252 ! interface Vlan1 no ip address shutdown ! router ospf 1 log-adjacency-changes passive-interface FastEthernet0/0 network 172.20.48.0 0.0.7.255 area 0 network 172.20.56.8 0.0.0.3 area 0 network 172.20.56.4 0.0.0.3 area 0 ! ip classless ! ! ! banner motd ^C 11 ^C ! ! ! ! line con 0 exec-timeout 15 0 password cisco logging synchronous login line vty 0 4 exec-timeout 15 0 password cisco logging synchronous login ! ! ! end BRANCH2#show ip route Codes: C - connected, S - static, I - IGRP, 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 172.20.56.5 to network 0.0.0.0 10.0.0.0/32 is subnetted, 1 subnets 10.10.10.1 [110/391] via 172.20.56.5, 00:30:12, Serial0/3/1 172.20.0.0/16 is variably subnetted, 6 subnets, 4 masks O 172.20.0.0/19 [110/391] via 172.20.56.5, 00:30:12, Serial0/3/1 O 172.20.32.0/20 [110/1172] via 172.20.56.5, 00:30:12, Serial0/3/1 C 172.20.48.0/21 is directly connected, FastEthernet0/0 O
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 13 of 14
O 172.20.56.0/30 [110/1171] via 172.20.56.5, 00:30:12, Serial0/3/1 C 172.20.56.4/30 is directly connected, Serial0/3/1 C 172.20.56.8/30 is directly connected, Serial0/3/0 O*E2 0.0.0.0/0 [110/1] via 172.20.56.5, 00:30:12, Serial0/3/1 BRANCH2#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 FastEthernet0/1 Serial0/3/0 Serial0/3/1 172.20.48.1 unassigned 172.20.56.10 172.20.56.6 YES manual up up
BRANCH2#show ip protocols Routing Protocol is "ospf 1" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 172.20.56.10 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 172.20.48.0 0.0.7.255 area 0 172.20.56.8 0.0.0.3 area 0 172.20.56.4 0.0.0.3 area 0 Passive Interface(s): FastEthernet0/0 Routing Information Sources: Gateway Distance Last Update 10.10.10.1 110 00:00:55 172.20.56.9 110 00:01:13 172.20.56.10 110 00:00:55 Distance: (default is 110)
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page 14 of 14