Configuring static routes for Cisco routers

Source: Internet
Author: User

before we passed several blog posts direction The basic information configuration method of the router. We should also have mastered the IT migrant workers have four major skills: open equipment, pick up the line, set the address,ping got IP. Let's take a look at how static routing is set up, and how to make the addresses of different address segments interoperable.

based on the information given by the map splash, we have configured the ports for the three routers. IP address.

650) this.width=650; "title=" capture.jpg "src=" http://s5.51cto.com/wyfs02/M02/7D/76/ Wkiol1bpem-rbatvaabmqolobbc354.jpg "alt=" Wkiol1bpem-rbatvaabmqolobbc354.jpg "/>

configuration of the port IP address, after the Yong1 to do the following:

650) this.width=650; "title=" Ping. JPG "src=" http://s1.51cto.com/wyfs02/M01/7D/76/wKioL1bpDb-i-KvPAAA_mOgNqBY706.jpg "alt=" Wkiol1bpdb-i-kvpaaa_ Mognqby706.jpg "/>

not successful because the routing table does not arrive 192.168.2.0 Information about the network segment

What is a routing table that we can use on the router show ip Route command to take a look at the contents of the routing table

650) this.width=650; "Title=" route1. JPG "src=" http://s3.51cto.com/wyfs02/M01/7D/78/wKiom1bpDZWxycpYAAGDhUQc-LE100.jpg "alt=" Wkiom1bpdzwxycpyaagdhuqc-le100.jpg "/>

' C represents a direct-connect network segment, which is the network segment of the router's upper port. And we need to let the router configure and learn the non-direct connection segment L represents the local port

650) this.width=650; "Title=" S1. JPG "src=" http://s1.51cto.com/wyfs02/M01/7D/76/wKioL1bpDwOCHtryAAICPDFkpQM631.jpg "alt=" Wkiol1bpdwochtryaaicpdfkpqm631.jpg "/>

command format: Ip Route Destination network segment, subnet mask, next hop address

Destination network segment: The network segment to which the data is going

Subnet mask: The subnet mask of the destination network segment.

Next hop address: to the network destination network segment data need to be passed from which port.

s represents a static route, an administrative distance value of 1, and a measure of 0.

we'll do it again.PingA bit192.168.2.2, or not, the problem is, the problem isYong3The router is not configured on the192.168.1.1static routes. Pingcommand is based onICMP, the other side receivedPingcommand issued byECHO REQUESTmessage,Yong3need to respond toYong1data, but at this pointYong3not on the name.192.168.1.0the entry for the network segment. So he failed.

650) this.width=650; "title=" Ping. JPG "src=" http://s1.51cto.com/wyfs02/M02/7D/76/wKioL1bpEV6zmCvYAAA_mOgNqBY406.jpg "alt=" Wkiol1bpev6zmcvyaaa_ Mognqby406.jpg "/>

See Yong3 The routing table

650) this.width=650; "Title=" S3. JPG "src=" http://s2.51cto.com/wyfs02/M01/7D/76/wKioL1bpEJChEoy9AAGK5IPS1Sw485.jpg "alt=" Wkiol1bpejcheoy9aagk5ips1sw485.jpg "/>

Then ping on router Yong1

650) this.width=650; "title=" ping2.1.jpg "src=" http://s2.51cto.com/wyfs02/M01/7D/76/ Wkiol1bpedohca5oaabihovexug774.jpg "alt=" Wkiol1bpedohca5oaabihovexug774.jpg "/>

This is because there are 192.168.1.0 segment Routing entries in the router Yong2 's routing table

650) this.width=650; "Title=" S22. JPG "src=" http://s4.51cto.com/wyfs02/M02/7D/76/wKioL1bpErSD4i54AADAteiU4I0855.jpg "alt=" Wkiol1bpersd4i54aadateiu4i0855.jpg "/>

Therefore, after setting the routing entry on the YONG3 on the 192.168.1.0 network segment, ping192.168.2.2 on the Yong1 to ping the

Yong3 (config) #ip Route 192.168.1.0 255.255.255.0 s/0/3/0

Yong3 (config) #end

Yong3#sh IP route

Gateway of last resort are not set

S 192.168.1.0/24 is directly connected, Serial 0/3/0

it has an administrative distance value of 0

C 192.168.23.0/24 is directly connected, Serial 0/3/0

Yong3#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1,timeout are 2 seconds:

!!!!!

This article is from the "Guo Yong Technology blog" blog, make sure to keep this source http://guoyong.blog.51cto.com/408495/1751791

Configuring static routes for Cisco routers

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.