I. Lab Objectives
- Master static route configuration methods and techniques;
- Master network connectivity through static routing;
- Familiar with Wan cable connection methods;
Ii. Lab background
The school has two new and old campuses, each of which is an independent lan. In order to allow the new and old campuses to communicate with each other normally and share resources, each campus egress uses a router for connection, the two routers apply for a 2 m ddnleased line for connection between the two schools, and you are required to make appropriate configuration to achieve normal mutual access between the two campuses.
Iii. Technical Principles
A Router belongs to a network-layer device and can select an optimal path based on the IP address header to forward data packets so that hosts in different network segments can access each other. A Router selects and forwards routes based on the route table, and a route table consists of route information.
There are two main ways to generate a route table: manual configuration and dynamic configuration, namely Static Routing Protocol configuration and Dynamic Routing Protocol configuration.
Static Routing refers to the routing information manually configured by the network administrator.
In addition to being simple, efficient, and reliable, Static Routing also features high network security and confidentiality.
The default route can be seen as a special case of Static Routing. When the data finds the route table and does not find a route table that matches the target, the route is specified for the data.
Iv. Experiment steps
Lab Topology
1. Configure the IP address of the interface and the clock frequency on the R1 serial port on routers R1 and R2;
2. view the directly connected route generated by the vro;
3. Configure static routes on routers R1 and R2;
4. Verify the static routing configuration on R1 and R2;
5. Set the default gateway of the pC1 and PC2 hosts to the F1/0 IP address of the router interface;
6. The pC1 and PC2 hosts can communicate with each other;
R1:
Router> router> enrouter # conf tenter configuration commands, one per line. end with cntl/Z. router (config) # hostname r1r1 (config) # interface fa1/0r1 (config-If) # No shutdown % link-5-changed: interface fastethernet1/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on interface fastethernet1/0, changed state to upr1 (config-If) # IP address 192.168.1.1 255.255.255.0r1 (config-If) # exitr1 (config) # interface Serial 2/0r1 (config-If) # No shutdown % link-5-changed: interface serial/0, changed state to downr1 (config-If) # clock rate 64000r1 (config-If) # IP address 192.168.5.2 255.255.255.0r1 (config-If) # End % SYS-5-CONFIG_ I: configured from console by consoler1 # Show IP Route codes: C-connected, s-static, I-IGRP, R-rip, M-mobile, B-BGP D-VPN, ex-VPN 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, L1-is level-1, L2-is level-2, Ia-Is Inter Area *-candidate default, u-per-user static route, o-ODR p-periodic downloaded static routegateway of last resort is not SETC 192.168.1.0/24 is directly connected, fastethernet1/0r1 # % link-5-changed: interface serial/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on interface serial/0, changed state to upr1 # Show IP Route codes: C-connected, S-static, I-IGRP, R-rip, M-mobile, B-BGP D-VPN, ex-OSPF 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, L1-is level-1, L2-is level-2, IA-Is Inter Area *-candidate default, U-per-user static route, o-ODR p-periodic downloaded static routegateway of last resort is not SETC 192.168.1.0/24 is directly connected, fastethernet1/0C 192.168.5.0/24 is directly connected, serial/0r1 # conf tenter configuration commands, one per line. end with cntl/Z. r1 (config) # IP Route 192.168.2.0 255.255.255.0 192.168.5.3r1 (config) # endr1 # % SYS-5-CONFIG_ I: configured from console by consoler1 # Show IP Route codes: C-connected, S-static, i-IGRP, R-rip, M-mobile, B-BGP D-VPN, ex-VPN 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, L1-is level-1, L2-is level-2, Ia-Is Inter Area *-candidate default, u-per-user static route, o-ODR p-periodic downloaded static routegateway of last resort is not SETC 192.168.1.0/24 is directly connected, fastethernet1/0 s 192.168.2.0/24 [1/0] via 192.168.5.3c 192.168.5.0/24 is directly connected, serial/0r1 #
R2:
Router> enrouter # conf tenter configuration commands, one per line. end with cntl/Z. router (config) # hostname r2r2 (config) # interface fa1/0r2 (config-If) # No shutdown % link-5-changed: interface fastethernet1/0, changed state to up % LINEPROTO-5-UPDOWN: Line protocol on interface fastethernet1/0, changed state to upr2 (config-If) # IP address 192.168.2.1 255.255.255.0r2 (config-If) # exitr2 (config) # interface Serial 2/0r2 (config-If) # No shutdown % link-5-changed: interface serial/0, changed state to up
% LINEPROTO-5-UPDOWN: Line protocol on interface serial/0, changed state to up
R2 (config-If) # IP address 192.168.5.3 255.255.255.0r2 (config-If) # endr2 # % SYS-5-CONFIG_ I: configured from console by consoler2 # Show IP Route codes: C-connected, s-static, I-IGRP, R-rip, M-mobile, B-BGP D-VPN, ex-VPN 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, L1-is level-1, L2-is level-2, Ia-Is Inter Area *-candidate default, u-per-user static route, o-ODR p-periodic downloaded static routegateway of last resort is not SETC 192.168.2.0/24 is directly connected, fastethernet1/0C 192.168.5.0/24 is directly connected, serial/0r2 # conf tenter configuration commands, one per line. end with cntl/Z. r2 (config) # IP Route 192.168.1.0 255.255.255.0 192.168.5.2r2 (config) # End % SYS-5-CONFIG_ I: configured from console by consoler2 # Show IP Route codes: C-connected, S-static, i-IGRP, R-rip, M-mobile, B-BGP D-VPN, ex-VPN 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, L1-is level-1, L2-is level-2, Ia-Is Inter Area *-candidate default, u-per-user static route, o-ODR p-periodic downloaded static routegateway of last resort is not sets 192.168.1.0/24 [1/0] via 192.168.5.2c 192.168.2.0/24 is directly connected, fastethernet1/0C 192.168.5.0/24 is directly connected, serial/0r2 #
V. Test
Packet tracer PC command line 1.0 Pc> ipconfigip address ......................: 192.168.1.2subnet mask .....................: 255.255.255.0default gateway .................: 192.168.1.1pc> Ping 192.168.2.2pinging 192.168.2.2 with 32 bytes of data: Request timed out. reply from 192.168.2.2: bytes = 32 time = 17 Ms TTL = 126 reply from 192.168.2.2: bytes = 32 time = 21 Ms TTL = 126 reply from 192.168.2.2: bytes = 32 time = 16 Ms TTL = 126 Ping statistics for 192.168.2.2: Packets: Sent = 4, stored ED = 3, lost = 1 (25% loss ), approximate round trip times in Milli-seconds: Minimum = 16 ms, maximum = 21 Ms, average = 18 mspc>