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