Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help

Status
Not open for further replies.

sbet9487

Technical User
Jan 5, 2001
2
IN
What is the best definiton for static and dynamic routing
 
best definition? Here a short version. For more detail go over to the cisco router forum and I've posted a FAQ on static routing. The dynamic routing FAQ is in process :)

Static routing is where the router has a table that has been manually edited to give a hard coded path to the desired network.

Dynamic routing is where the router uses a "routing" protocol like RIP, OSPF, IRGP, BGP etc to pass routes to networks back and forth. There is normally a time base to the updates and the routes are based on distance or hop count.( simply put.. there are other considerations)

Mike S
 
Can you give me detailed definition dear about these topics,i am not finding in cisco router forum,pls try to give dear
 
What is a static route and how do I use it?
faq557-387
Cisco Static Routes FAQ
Static routes while manually intensive to keep up, are a very quick and effective way to route data from one subnet to different subnet. Lets start with the basics.
What is a static route?
- a static route is a hard coded path in the router that specifies how the router will get to a certain subnet by using a certain path.
What do you mean by "hard coded"?
- you or someone has typed in the network ID and the next hop to get to the network specified
How do I add a static route into my Cisco router?
- Pretty simple
router# config t ; get into the configuration mode
router(config)# ip route A.B.C.D (destination network/host) A.B.C.D (mask) A.B.C.D (next hop); this is a simple static route
Are there any other ways to name the next hop except by using an IP address?
- Yes, you can use the port name i.e. ethernet0, E0, S0 and so on
What is "distance metric" that I can add at the end of the command?
- all routes have a value that allows the router to give a priority to which type of routing is used first. In static routes, the value is 1 which means no matter what other protocol you may have running like OSPF or RIP, the static route will always be used first. This can be changed to special needs. for example, if you have a frame link with ISDN back up, you can static routes for the frame and a second set of the same static routes but with a distance matric of 255. This means while the frame is up, it goes first but when the frame goes down, the router will try to use the 2nd static which is normally ignored due to the 255 value.
Why do I want to use static routes when there are neat routing protocols like OSPF?
- static routes are easy, no overhead either on the link or the the CPU of the router. They also offer good security when coupled with a tight IP mask like 252 which gives only 2 hosts on a given link
If static routes are so easy, why not use them all the time?
- Static routes while easy can be overwhelming in a large or complicated network. Each time there is a change, someone must manually make changes to reflect the change. If a link goes down, even if there is a second path, the router would ignore it and consider the link down.
One of the most common uses of a static map is the default classless route
- ip classless
- ip route 0.0.0.0 0.0.0.0 [next hop]
This static map says that everything is remote and should be forwarded to the next hop( or supernet) which will take care fo the routing.
Dial on demand is also a big user of static routes. Many times with dial up or ISDN, you do not have the bandwidth or you do not want to pay the connection fees for routing updates so you use static routes.
Static routes allow you to set up load balancing after a fashion. Keep in mind that the IOS load balances across routes first and not interfaces. The easiest way to configure multiple routes on the same interface is to use the secondary IP command
Router 1
!
interface serial 0
 ip address 192.0.0.1 255.255.255.0
 ip address 192.0.0.2 255.255.255.0 secondary ! second route on same interface
 
interface serial 1
 ip address 192.1.0.1 255.255.255.0
 ip address 192.1.0.2 255.255.255.0 secondary
 
ip route 200.2.0.0 255.255.255.0 196.0.0.4; goes to serial 0
ip route 200.2.0.0 255.255.255.0 196.0.0.5; goes to serial 0
ip route 200.2.0.0 255.255.255.0 196.1.0.4; goes to serial 1
Router 2
!
interface ethernet 0
 ip address 200.2.0.1 255.255.255.0
!
interface serial 0
 ip address 196.0.0.4 255.255.255.0
 ip address 196.0.0.5 255.255.255.0 secondary
!
interface serial 1
 ip address 196.1.0.4 255.255.255.0
 ip address 196.1.0.5 255.255.255.0 secondary
 
 
The traffic would go out router 1 across the two IPs on serial 0 first then across 1 IP on serial 1
This gives you unequal load balancing.
 
This is just the basics of static routing. You can get very creative if you want and take things further then described here. I would suggest "Routing TCP/IP Vol 1" from Cisco Press for more information
 
I would suggest Internetworking with TCP/IP VOL-1 by Douglas E Commer ,EEE edition
 
Thabk you dear,

Now can you tell me what is the difference between connection less and connection oriented or best way to get understand these concepts
 
From what I understand connection less is when you essentially have a PPP or a PVC type connection with only 2 routers involved. It's mainly used when you don't have or don't want to add an IP to an interface.

I know this isn't a good/full explanation but hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top