Packet Tracer 5.0 Experiment (eight) router static routing configuration

Source: Internet
Author: User

Packet Tracer 5.0 Experiment (eight) router static routing configuration

First, the experimental target

    • Master the configuration methods and techniques of static routing;

    • Mastering the connectivity of the network through static routing method;

    • Familiar with the connection mode of WAN cable;

Second, the experimental background

School has new and old two campuses, each campus is an independent LAN, in order to make the old and new campus can communicate with each other, sharing resources, each campus export using a router to connect, two routers between the school applied for a 2M DDN line to connect, Requires you to do proper configuration to achieve normal mutual access between the two campuses.

Three, the principle of technology

Routers belong to the network layer device, can be based on the information of the IP header, select an optimal path to forward the packet out, to achieve mutual access between different network segments of the host. Routers are routed and forwarded based on routing tables, and routing tables consist of routing information.

There are two main ways to build a routing table: manual configuration and dynamic configuration, that is, static routing protocol configuration and dynamic routing protocol configuration.

Static routing refers to routing information that is manually configured by the network administrator.

In addition to the advantages of simple, efficient and reliable, static routing has the advantage of high network security.

The default route can be seen as a special case of static routing. The route that is specified for the data when the data is found in a routing table that does not find a route table entry that matches the target.

Iv. Steps of the experiment

Experimental topology

650) this.width=650; "src=" http://pic002.cnblogs.com/images/2012/370046/2012071813590224.jpg "/>

1, configure the interface IP address on the router R1, R2 and the clock frequency on the R1 serial port;

2, check the router generated direct connection route;

3, configure the static route on the router R1, R2;

4, verify the static routing configuration on R1 and R2;

5, the PC1, PC2 host default gateway is set to the router interface f1/0 IP address;

6, PC1, PC2 between the host can communicate with each other;

R1:

650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>

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 SERIAL2/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 - 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      &nbsP; 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 serial2/0, changed state to up% Lineproto-5-updown: line protocol on interface serial2/0, changed state  to upr1#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 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, serial2/0r1# conf tenter configuration commands, one per line.  end with  Cntl/z.r1 (config) #ip  route&nbsP;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 - 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 routegateway of last  resort is not setC    192.168.1.0/24 is directly  connected, fastethernet1/0s    192.168.2.0/24 [1/0] via 192.168.5.3c     192.168.5.0/24 is directly connected, serial2/0r1#

650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>

R2:

650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>

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 STA Te 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 serial2/0, CHANGED state-to-up
%lineproto-5-updown:line protocol on Interface serial2/0, changed
R2 (config-if) #ip address 192.168.5.3 255.255.255.0r2 (config-if) #endR2 #%sys-5-config_i:configured from the console by Consoler2#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     &NBS P I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area       *-candidate default, U-p Er-user Static route, O-odr       p-periodic downloaded static routegateway of last resort was not setc    192.168.2.0/24 is directly connected, fastethernet1/0c    192.168.5.0/24 is directly connected, Se rial2/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-EIGRP, ex-eigrp external, O-OSPF, IA-OSPF Inter area     &NBS P N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2       E1-OSPF external type 1, E2-OSPF E Xternal Type 2, E-EGP       I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area &nbs P     *-candidate default, U-per-user static route, O-odr       P-periodic downloaded Stati C Routegateway of last resort are not sets    192.168.1.0/24 [1/0] via 192.168.5.2C    192.168.2.0/24 I s directly connected, fastethernet1/0c    192.168.5.0/24 is directly connected, serial2/0r2#

650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>

V. Testing

650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>

Packet Tracer PC Command line 1.0pc>ipconfigip Address .......: 192.168.1.2Subnet Mask for the ...... ...: 255.255.255.0Default Gateway .....: 192.168.1.1pc>ping, ..... £ º +/---/--------192.168.2.2Pinging 192.168.2.2 with + bytes of data:request timed out. Reply from 192.168.2.2:bytes=32 time=17ms ttl=126reply from 192.168.2.2:bytes=32 time=21ms ttl=126reply from 192.168.2.2 : bytes=32 time=16ms ttl=126ping statistics for 192.168.2.2:packets:sent = 4, Received = 3, Lost = 1 (25% loss), Appro Ximate round trip times in milli-seconds:minimum = 16ms, Maximum = 21ms, Average = 18mspc>


Packet Tracer 5.0 Experiment (eight) router static routing configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.