Sie sind auf Seite 1von 3

February 27, 2012

2010-EE-81 To understand the operation of Static Routing.

Objective:

The two routers must be connected serially and their settings should be configured correctly as below, and then both the routers should be configured through their respective switches to the users as shown below, with its connectivity checked using PING command.

Router 1 Serial
Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int serial 1/0 Router(config-if)#ip add 15.0.0.1 255.0.0.0 Router(config-if)#clock rate 64000 Router(config-if)# Router# Router#ping 15.0.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 15.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 6/8/11 ms

Fast Ethernet
Router#en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fastethernet 0/0 Router(config-if)#ip add 10.0.0.1 255.0.0.0 Router(config-if)#no shutdown %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)# Router#ping 10.0.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 2/3/4 ms

Router 2 Serial
Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int serial 1/0 Router(config-if)#ip add 15.0.0.2 255.0.0.0 Router(config-if)#clock rate 64000 Router(config-if)# Router(config-if)#exit Router(config)#exit Router#ping 15.0.0.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 15.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/8/10 ms

February 27, 2012 Fast Ethernet


Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fastethernet 0/0 Router(config-if)#ip add 20.0.0.1 255.0.0.0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

2010-EE-81
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router#ping 20.0.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 20.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/2/4 ms

Now the users system should be configured so the route can be developed. It can be configured as shown below with its connectivity checked using PING command.

1st user
PC>ping 10.0.0.2 Pinging 10.0.0.2 with 32 bytes of data: Reply from 10.0.0.2: bytes=32 time=2ms TTL=128 Reply from 10.0.0.2: bytes=32 time=3ms TTL=128 Reply from 10.0.0.2: bytes=32 time=4ms TTL=128 Reply from 10.0.0.2: bytes=32 time=2ms TTL=128 Ping statistics for 10.0.0.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 2ms, Maximum = 4ms, Average = 2ms

2nd user
PC>ping 20.0.0.2 Pinging 20.0.0.2 with 32 bytes of data: Reply from 20.0.0.2: bytes=32 time=3ms TTL=128 Reply from 20.0.0.2: bytes=32 time=3ms TTL=128 Reply from 20.0.0.2: bytes=32 time=2ms TTL=128 Reply from 20.0.0.2: bytes=32 time=1ms TTL=128 Ping statistics for 20.0.0.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 3ms, Average = 2ms

February 27, 2012 o

2010-EE-81

Now we will configure the routers to create a static route from 1st user to the 2nd user and vice versa. With the route check by the SHOW IP ROUTE command.
Codes: C - connected, S - static, I - IGRP, R - RIP, M mobile, B - BGP Gateway of last resort is not set C 10.0.0.0/8 is directly connected, FastEthernet0/0 C 15.0.0.0/8 is directly connected, Serial1/0 S 20.0.0.0/8 [1/0] via 15.0.0.2

Router 1
Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ip route 20.0.0.0 255.0.0.0 15.0.0.2 Router#show ip route

Router 2
Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ip route 10.0.0.0 255.0.0.0 15.0.0.1 Router(config)#exit Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M mobile, B - BGP Gateway of last resort is not set S 10.0.0.0/8 [1/0] via 15.0.0.1 C 15.0.0.0/8 is directly connected, Serial1/0 C 20.0.0.0/8 is directly connected, FastEthernet0/0

Das könnte Ihnen auch gefallen