GNS3 how to configure a static route to complete two different gateways connected hosts

Static Routing A routing way, routing entries manually configured, rather than dynamic decision. Unlike dynamic routing, static routing is fixed and will not change, even if network conditions have changed or re-configuration. Generally, static routes are itemized by the network administrator added to the routing table.

Here Insert Picture Description

1. First, let's add two routers .
Here Insert Picture Description

2. The two routers connected and turned on.
Here Insert Picture Description

3. Configure the IP address of the pc2 and pc1 and default gateway.

Here Insert Picture Description
Here Insert Picture Description

4. The router R1 into the static route and an interface ip, ip attention must be finished configuring activate.
Here Insert Picture Description
Here Insert Picture Description

5. Enter do show ip route routing table.
Here Insert Picture Description

6. do communicate with a router configuration, note the IP address and number.
Here Insert Picture Description

7. Review the R2 routing table.
Here Insert Picture Description

8. Use vpc for the ping command, ping can pass.
Here Insert Picture Description

Because it will first try to directly connected interface, so the first two fail.

Guess you like

Origin blog.51cto.com/14449798/2427216