Routing Technologies:Static and Default route

There are three different ways a switch figures out how to forward a parcel

1. Static Routes – Configured by the head physically. The manager should likewise refresh the table physically every time a change to the system happens. Static courses are usually utilized while directing from a system to a stub (a system with a solitary course) arrange.

A static course adds a section to the directing table for a particular goal IP address or subnet.

To arrange a static course, issue the

IP route prefix mask {ip-address | interface-type interface-number [ip-address]} [distance] [name] [permanent] [tag tag] direction in worldwide design mode

Static Routing: It might be actualized in both of two different ways by utilizing ip course direction:

I. By using the following bounce address

Ex: Router(config)#ip route 192.204.1.64 255.255.255.240 192.204.1.2

192.204.1.64 = destination network
255.255.255.240 = subnet mask
192.204.1.2 = next-hop address

Keep in mind this by perusing as To get to the destination network of 192.204.1.64, with a subnet cover of 255.255.255.240, send all bundles to 192.204.1.2

II. By using the leave interface

Router(config)#ip route 192.204.1.64  255.255.255.240  s0/0

192.204.1.64 = destination network
255.255.255.240 = subnet mask
s0/0 = exit interface

Remember this by reading as To get to the destination system of 192.204.1.64, with a subnet veil of 255.255.255.240, send all bundles out interface Serial 0/0

You should determine either the yield interface (the interface on which all bundles are sent to the goal organize) or the following bounce address in a completely indicated static course. You can utilize a completely indicated static course when the yield interface is a multi-get to interface and you have to distinguish the following jump address. The following bounce address must be specifically connected to the predetermined yield interface.

 

Completely Specified Static Route:

 

You should indicate both the yield interface (the interface on which all bundles are sent to the goal arrange) and the following jump address in a completely determined static course. You can utilize a completely determined static course when the yield interface is a multi-get to interface and you have to recognize the following bounce address. The following jump address must be straightforwardly appended to the predetermined yield interface.

Configuration steps:

1. configure terminal

2. ip route { ip-prefix | ip-addr/ip-mask } {[ next-hop | nh-prefix ] | [ interface next-hop | nh-prefix ]} [ name nexthop-name] [ tag tag-value] [ pref ]

or

ipv6 route ip6-prefix { nh-prefix | link-local-nh-prefix } | { nh-prefix [ interface ] | link-local-nh-prefix [ interface ]} [ name nexthop-name] [ tag tag-value] [ pref ]

3. (Optional) show { ip | ipv6 } static-route

4. (Optional) copy running-config startup-config

A static course on a Cisco switch is most normally characterized by utilizing the order

Router(config)# ip route A.B.C.D (destination network/host) A.B.C.D (subnet mask) A.B.C.D (next hop)

You can likewise utilize the port identifier, for example, e0, s1 and so on to characterize the following bounce address.

Alternatively, the “separate metric” can be included toward the finish of the order to change the default weight.

In a completely indicated static course, both the yield interface and the following jump IP address are determined. This type of static course is utilized when the yield interface is a multi-get to interface and it is important to expressly distinguish the following bounce. The following jump must be specifically associated with the predetermined leave interface.

2. Default Routes – The default course (gateway of last resort) is utilized when a course isn’t known or is infeasible. The order is

IP route 0.0.0.0 165.44.56.5

Here 165.44.56.5 is the portal of final depend on system 0.0.0.0

Default course is utilized when there is no other known course to a given IP bundle’s goal. Default course is otherwise called the passage of final resort.

the linguistic structure is for setting default course is: IP highway 0.0.0.0

EX : Router(config)#ip route 0.0.0.0 192.168.1.1

You can likewise set the default course by determining the interface as :

Router(config)#ip route 0.0.0.0 s0

ip default-passage” order is utilized when IP directing is handicapped on a Cisco switch. The IP default-system and IP highway 0.0.0.0 directions are utilized to set the portal of the final resort on Cisco switches that have IP steering empowered.

1. ip default-passage

Ex: ip default-gateway 192.168.14.2

2. ip default-organize

Ex: ip default-organize 192.168.1.0

3. ip route 0.0.0.0

Ex: ip route 0.0.0.0 192.168.1.2

Here 192.168.1.2 is the gateway of final fall back on system 0.0.0.0

3. Dynamic Routes  – As soon as powerful directing is empowered, the steering tables are consequently refreshed. Dynamic steering utilizes communicates and multicasts to speak with different switches. Each course passage incorporates a subnet number, the interface out to that subnet, and the IP address of the following switch that ought to get the bundle. The directions to empower tear are:

router rip 
network <major network number>

The commands to enable eigrp are :

router eigrp 0    -here 0 is the process-id
network <network-id>