Sie sind auf Seite 1von 5

11/19/2010 Configure Static Route – GNS3 Lab

search...

Ads by Google CCNP Route Configure Router Router Lab IP Networking Router

Configure Static Route – GNS3 Lab CCNA EXAM 640-


802
Saturday, 02 October 2010 01:49 administrator

CCNA - WAN
In this tutorial we will connect two routers via static route with GNS3.
CCNA - Lab Sim
Static route and Dynamic route
CCNA -
Static route tells the device exactly where to send traffic, no matter what. Static route Troubleshooting 1
is often used when your network has only a few routers or there is only one route
CCNA -
from a source to a destination. Dynamic routes, on the other hand, use a routing
Troubleshooting 2
protocol to determine the best path and the routes can be changed depending on
specific parameters (like bandwidth, delay, cost...). With dynamic routes, routers CCNA - Drag and Drop
can communicate with each other to exchange routing information. In ROUTE 642- 1
902 you will learn about dynamic routing protocols such as OSPF, EIGRP and BGP
CCNA - Drag and Drop
(RIP is also a dynamic routing protocol but it is not mentioned in ROUTE).
2
The simple syntax of static route:
CCNA - Drag and Drop
ip route <destination><subnet mask><next hop IP address or outbound 3
interface> CCNA - Drag and Drop

Now we consider a real-world example of static routing. Suppose that your 4


company has 2 branches located in New York and Chicago. As the administrator CCNA - Subnetting
of the network, you are tasked to connect them so that employees in the two LANs
CCNA - Hotspot
can communicate with each other. After careful consideration you decided to
connect them via static route. CCNA - Access List

CCNA - OSPF
Questions

CCNA - EIGRP
Questions

CCNA - Operations 1

CCNA - Operations 2

CCNA - Operations 3

CCNA - IPv6

Share your CCNA


experience
New Open Source Router Vyatta - Open Routing & Security Advanced Router,Firewall,VPN - Free www.vyatta.com
Free Trace Route Tool Included With a Free Download of our sl360 Network Monitor Suite. www.ScriptLogic.com/sl360
IPv4 & IPv6 Routing IP Infusion Provides Portable Platform-Independent IPv4 &CCNA
IPv6 www.IPInfusion.com
SELF-STUDY

Practice GNS3 Labs


In GNS3, place 2 routers and connect them as the image below, I used IOS c2600-
bin-mz.123-6f.bin to save some RAM (only require 64MB/router). We will use two EIGRP Routing
loopback interfaces to simulate two Ethernet LANs. Protocol

9tut.com/…/85-configure-static-route-g… 1/5
11/19/2010 Configure Static Route – GNS3 Lab

NETWORK
RESOURCES

Free Router
Simulators

Configuring interfaces on R0 CCNA FAQs & Tips

ICND 1 & ICND 2


R0(config)#interface s0/0
Website
R0(config-if)#ip address 12.12.12.1 255.255.255.0
R0(config-if)#no shutdown CCNA Voice Website
R0(config-if)#interface lo0
CCNA Security
R0(config-if)#ip address 10.0.0.1 255.0.0.0
Website
R0(config-if)#exit
CCNP - ROUTE
Configuring interfaces on R1
Website
R0(config)#interface s0/0 CCNP - SWITCH
R0(config-if)#ip address 12.12.12.2 255.255.255.0 Website
R0(config-if)#no shutdown
R0(config-if)#interface lo0 CCNP - TSHOOT
R0(config-if)#ip address 172.16.0.1 255.255.0.0 Website
R0(config-if)#exit CCDA Website

Now if we check the routing table of R0 & R1 by the command show ip route on 9tut Forum
both R0 and R1
Contact Me
On R0:
R0# show ip route
Support 9tut

Your contribution will help


keep this site updated!

Ads by Google
Cisco Router
IP Metric
Configure OSPF
OSPF Default Route

The letter "C" means "connected" or "directly connected". So there are 2 networks
that are directly connected to R0: 10.0.0.0/8 and 12.12.12.0

On R1

9tut.com/…/85-configure-static-route-g… 2/5
11/19/2010 Configure Static Route – GNS3 Lab
R1# show ip route

Configuring static route on R0

R0(config)#ip route 172.16.0.0 255.255.0.0 12.12.12.2

Configuring static route on R1

R1(config)#ip route 10.0.0.0 255.0.0.0 12.12.12.1

Notice that static route works one-way. It means we have to add static route to both
R0 and R1 so that R0 and R1 can communicate.

9tut.com/…/85-configure-static-route-g… 3/5
11/19/2010 Configure Static Route – GNS3 Lab

Now try to ping each far end network

(Note: In fact, R0 can successfully ping R1 right after adding the static route to R0)

Administrative distance of a static route.

After adding two static routes in R0 & R1 routers, the routing tables of two routers
contain these lines:

S 10.0.0.0/8 [1/0] via 12.12.12.1 (on R1)


S 172.16.0.0/16 [1/0] via 12.12.12.2 (on R0)

The "S" letter tells us this is a static route. The networks 10.0.0.0/8 and
172.16.0.0/16 are the destinations of this static route and if the routers want to
reach them they must send packets to 12.12.12.1 (on R1) and 12.12.12.2 (on R2).
These parameters are straightforward and easy to understand. But what is [1/0]?
Well, 1 is the administrative distance (AD) and 0 is the metric of that static route.

The administrative distance is a measure of trustworthiness where lower numbers


are considered to be more trustworthy than higher numbers. The route with the
lowest administrative distance value is the preferred route that the router selects.
Administrative distance is the value from 0 to 255.

Directly connected routes have an administrative distance of 0. Static routes have

9tut.com/…/85-configure-static-route-g… 4/5
11/19/2010 Configure Static Route – GNS3 Lab
an administrative distance of 1 so in the outputs above you will see the
administrative distance of both static routes are 1.

The router treats a static route pointing to an interface the same as a connected
interface so the its AD is 0. If you configure a static route pointing to an exiting
interface (for example: "ip route 172.16.0.0 255.255.0.0 s0/0" on R0) then the AD
will not be shown.

(For your information, EIGRP has an administrative distance of 90. IGRP has an
administrative distance of 100. OSPF has an administrative distance of 110. And
RIP has an administrative distance of 120)

Muscle Building Miracle Chemists Have Developed a New Natural Muscle Builder. Try it Free ForceFactor.com
Cisco QoS GUI View, edit and create MQC policies. Download your free trial today! www.actionpacked.com/liveaction-qos
Which IP PBX Ranks Best? Gartner Report: Top 11 UC Systems. A Must Read Before You Short List. ShoreTel.com

Comments
gowtham saran Oct-13-2010
thanks nice work. very easy to understand

Add A Comment

Name:

Website:

Add comment

Last Updated ( Monday, 01 November 2010 10:59 )

Copyright © 2010 CCNA Training w ith Real Questions & Answ ers!. All Rights Reserved.
Privacy-Policy

9tut.com/…/85-configure-static-route-g… 5/5

Das könnte Ihnen auch gefallen