Basic static route Configuration

Source: Internet
Author: User

Static Routing is the most commonly used routing protocol. It does not have complicated configurations and often works very well. Let's take a look at the Static Routing Configuration:

Topology:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/043330J25-0.png "title =" 1.PNG" alt = "083849336.png"/>

8.8.8.8 simulate the network segment behind R1 and 9.9.9 simulate the network segment behind R2

The basic configuration of R1 is as follows:

Int f0/0

Ip add 192.168.1.1 255.255.255.0

No sh


The basic configurations of R2 are as follows:

Int f0/0

Ip add 192.168.1.2 255.255.255.0

No shut


At this time, R1 can only ping port f0/0 of R2, but cannot ping port 9.9.9 behind R2. The reason is very simple: the R1 route table does not have the route 9.9.9/24,

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0433301556-1.png "title =" 2.PNG" alt = "0800005765.png"/>

Since R1 does not have a route entry 9.9.9/24, we can manually add a route entry.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/04333051W-2.png "title =" 3.PNG" alt = "084634375.png"/>

Then R1 goes to ping9.9.9, and the result passes.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/04333035c-3.png "title =" 4.PNG" alt = "084847210.png"/>

On the contrary, R2 also needs to ping 8.8.8.8 of R1. Add a static route on R2: ip route 8.8.8.0 route 255.255.0 192.168.1.1


Isn't it easy!

This article is from the "Cisco, zhanbo, Huawei" blog, please be sure to keep this source http://rujinfeng.blog.51cto.com/2712746/1299079

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.