Você está na página 1de 7

CCNA 2 Practice Lab Solutions

Objective
To use dynamic and static routing to provide network connectivity.

Scenario
Given a 199.1.10.0 address provide four subnets to support at least 25 hosts. The current network requires two of the networks and the other two will be used in the future. Use RIP and connect to a web server with the IP address of 200.200.200.5. The 200.200.200.0 network is not to be advertised by the ISP router. Use a static route to reach this network. Configure all routers with a hostname and use cisco as the password for console, enable secret and telnet access.

Step 1
Cable the labs according to the topology in the diagram. Attach a workstation to the Fastethernet 0 interface on RouterA. Configure the workstation with the appropriate IP address. Host A and the web server are to be assigned the fifth usable IP address on the assigned subnet.

Step 2
ISP router configuration On the ISP router configure the hostname, console password, enable secret password, and telnet access. Router>enable Router#configure terminal Router(config)#hostname ISP ISP(config)#enable secret cisco ISP(config)#line console 0 ISP(config-line)#login ISP(config-line)#password cisco ISP(config-line)#exit ISP(config)#line vty 0 4 ISP(config-line)#login

1-1

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

ISP(config-line)#password cisco ISP(config-line)#exit ISP(config)#

Step 3
Configure the interfaces on the ISP router. After calculating the IP address requirements the result is that the network between ISP and RouterA is 199.1.10.0. The serial interface on the ISP router is assigned the first usable IP address on the connected subnet. Use the following commands to configure the IP addresses on the ISP router interfaces: ISP(config)#interface fastethernet 0 ISP(config-if)#ip address 200.200.200.1 255.255.255.0 ISP(config-if)#no shutdown ISP(config-if)#exit ISP(config)#interface serial 0 ISP(config-if)#ip address 199.1.10.1 255.255.255.224 ISP(config-if)#clock rate 56000 ISP(config-if)#no shutdown ISP(config-if)#exit ISP(config)#

Step 4
Enable RIP on the ISP router. Configure RIP routing protocol on this router with the following commands. ISP(config)#router rip ISP(config-router)#network 199.1.10.0 ISP(config-router)#exit

Step 5
RouterA configuration On RouterA configure the hostname, console and enable secret passwords, and telnet access. Router>enable Router#configure terminal Router(config)#hostname RouterA RouterA(config-line)#enable secret cisco RouterA(config)#line console 0 RouterA(config-line)#login RouterA(config-line)#password cisco RouterA(config-line)#exit RouterA(config)#line vty 0 4 RouterA(config-line)#login RouterA(config-line)#password cisco RouterA(config-line)#exit RouterA(config)#

Step 6
Configure the interfaces on RouterA. Assign the second usable IP address to the serial 0 interface. Assign the first usable IP address on the Fastethernet interface .Use the following commands to configure the interfaces on RouterA. RouterA(config)#interface fastethernet 0 RouterA(config-if)#ip address 199.1.10.33 255.255.255.224 RouterA(config-if)#no shutdown RouterA(config-if)#exit RouterA(config)#interface serial 0 RouterA(config-if)#ip address 199.1.10.2 255.255.255.224

1-2

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

RouterA(config-if)#no shutdown RouterA(config-if)#exit

Step 7
Enable RIP on RouterA. Configure RIP routing protocol on RouterA with the following commands. RouterA(config)#router rip RouterA(config-router)#network 199.1.10.0 RouterA(config-router)#exit RouterA(config)#exit

Step 8
Configure a static route Use the show ip route command on RouterA. Do you see the network 200.200.200.0? Answer: _no_ RouterA#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 not set 199.1.10.0/27 is subnetted, 2 subnets C 199.1.10.0 is directly connected, Serial0 C 199.1.10.32 is directly connected, FastEthernet0

Since the ISP router is not advertising the network 200.200.200.0 it will not appear in the routing table on RouterA. Add a static route for 200.200.200.0 network on RouterA with the following command. RouterA#configure terminal RouterA(config)#ip route 200.200.200.0 255.255.255.0 199.1.10.1 RouterA(config)#exit RouterA# Use the show ip route command to check if the route for network 200.200.200.0 is now present in the routing table. RouterA#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 not set S 200.200.200.0/24 [1/0] via 199.1.10.1 199.1.10.0/27 is subnetted, 2 subnets C 199.1.10.0 is directly connected, Serial0 C 199.1.10.32 is directly connected, FastEthernet0

Use the ping command to test connectivity to the web server. RouterA#ping 200.200.200.5
Sending 5, 100-byte ICMP Echos to 200.200.200.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms

1-3

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

Step 9
Check the routing on ISP Now make sure the ISP router has learned about the local network on RouterA. Use the show ip route command on the ISP router. ISP#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 not set C 200.200.200.0/24 is directly connected, FastEthernet0 199.1.10.0/27 is subnetted, 2 subnets C 199.1.10.0 is directly connected, Serial0 R 199.1.10.32 [120/1] via 199.1.10.2, 00:00:19, Serial0

Use the ping command to test the connectivity with Host A. ISP#ping 199.1.10.38
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 199.1.10.38, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms

Verify that Host A can communicate with the web server. From the command prompt on Host A ping the web server.
C:\>ping 200.200.200.5 Pinging 200.200.200.5 with 32 bytes of data: Reply from 200.200.200.5: bytes=32 time<1ms TTL=128 Reply from 200.200.200.5: bytes=32 time<1ms TTL=128 Reply from 200.200.200.5: bytes=32 time<1ms TTL=128 Reply from 200.200.200.5: bytes=32 time<1ms TTL=128 Ping statistics for 200.200.200.5: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

View the active configuration on the ISP router ISP#show running-config

Building configuration...00 Software (C1700-NOSY-M Current configuration: ! version 12.0 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname ISP ! enable secret 5 $1$2KWG$UsaFZQQJecZrJkqo1B1Up1 ! ! ! ! ! memory-size iomem 25 ip subnet-zero ! ! ! process-max-time 200 ! interface Serial0 ip address 199.1.10.1 255.255.255.224 no ip directed-broadcast no ip mroute-cache no fair-queue clockrate 56000

1-4

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

! interface Serial1 no ip address no ip directed-broadcast shutdown ! interface FastEthernet0 ip address 200.200.200.1 255.255.255.0 no ip directed-broadcast ! router rip network 199.1.10.0 ! ip classless no ip http server ! ! line con 0 password cisco login transport input none line aux 0 line vty 0 4 password cisco login ! no scheduler allocate end

View the active configuration on the RouterA RouterA#show running-config

Building configuration... Current configuration: ! version 12.0 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname RouterA ! enable secret 5 $1$R8OL$3SEMCC59e1BtIso3A/rA1. ! ! ! ! ! memory-size iomem 15 ip subnet-zero ! ! ! process-max-time 200 ! ip address 199.1.10.2 255.255.255.224 no ip directed-broadcast no ip mroute-cache no fair-queue ! interface Serial1 no ip address no ip directed-broadcast shutdown ! interface FastEthernet0 ip address 199.1.10.33 255.255.255.224 no ip directed-broadcast ! router rip network 199.1.10.0 ! ip classless

1-5

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

ip route 200.200.200.0 255.255.255.0 199.1.10.1 no ip http server ! ! line con 0 password cisco login transport input none line aux 0 line vty 0 4 password cisco login ! no scheduler allocate end

Other commands that will demonstrate correct configurations RouterA#show interface fastethernet 0
FastEthernet0 is up, line protocol is up Hardware is PQUICC_FEC, address is 0002.1761.7994 (bia 0002.1761.7994) Internet address is 199.1.10.33/27 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s, 100BaseTX/FX ARP type: ARPA, ARP Timeout 04:00:00 Last input never, output 00:00:01, output hang never Last clearing of "show interface" counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 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 Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 0 multicast 0 input packets with dribble condition detected 5261 packets output, 345921 bytes, 0 underruns 4347 output errors, 0 collisions, 3 interface resets 0 babbles, 0 late collision, 0 deferred 4347 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

RouterA#show interface serial 0

Serial0 is up, line protocol is up Hardware is PowerQUICC Serial Internet address is 199.1.10.2/27 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) Last input 00:00:00, output 00:00:07, output hang never Last clearing of "show interface" counters 19:48:40 Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 677 packets input, 43356 bytes, 0 no buffer Received 636 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 870 packets output, 54070 bytes, 0 underruns 0 output errors, 0 collisions, 7 interface resets 0 output buffer failures, 0 output buffers swapped out 1 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

ISP#show interface fastethernet 0

FastEthernet0 is up, line protocol is up Hardware is PQUICC_FEC, address is 0007.50ef.192c (bia 0007.50ef.192c) Internet address is 200.200.200.1/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255

1-6

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

Encapsulation ARPA, loopback not set Keepalive set (10 sec) Half-duplex, 100Mb/s, 100BaseTX/FX ARP type: ARPA, ARP Timeout 04:00:00 Last input 01:20:06, output 00:00:04, output hang never Last clearing of "show interface" counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 77 packets input, 8681 bytes Received 51 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 0 multicast 0 input packets with dribble condition detected 691 packets output, 64037 bytes, 0 underruns 106 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 106 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

ISP#show interface serial 0

Serial0 is up, line protocol is up Hardware is PowerQUICC Serial Internet address is 199.1.10.1/27 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) Last input 00:00:01, output 00:00:04, output hang never Last clearing of "show interface" counters 01:43:51 Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 900 packets input, 56062 bytes, 0 no buffer Received 854 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 698 packets output, 44628 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 output buffer failures, 0 output buffers swapped out 0 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

ISP#show ip interface brief


Interface FastEthernet0 Serial0 Serial1 Interface FastEthernet0 Serial0 Serial1 IP-Address 200.200.200.1 199.1.10.1 unassigned IP-Address 199.1.10.33 199.1.10.2 unassigned OK? YES YES YES OK? YES YES YES Method manual manual unset Method manual manual unset Status Protocol up up up up administratively down down Status Protocol up up up up administratively down down

RouterA#show ip interface brief

1-7

CCNA 2: Routers and Routing Basics v3.0

Copyright 2003, Cisco Systems, Inc.

Você também pode gostar