Basic of routing

From NesevoWiki
Jump to navigationJump to search

Types of routing:

There are 3 different types of routing.

  1. Static Routes
  2. Distance vector protocols
  3. Link-state protocols


Static Routes:

For static routes to the router is required exactly which way he is notified. This is either the next Hopp or output interface. With a self-defined metrics can be an alternative way the failure of the default route automatically activated. Generally the lower the metric is even more popular is the way.

Configuration:

Router>en

 This command will take you to the privileged mode.

Router#config t

 This command can be reached in the global configuration mode.

Router(config)#ip route 172.168.20.0 255.255.255.0 172.16.10.2

Here is the destination network172 .168.20.0 255.255.255.0 'associated with the subnet mask and the next Hopp .16.10.2172'.


Alternatively, instead of the next target interface output interface identify:
Router(config)#ip route 172.168.20.0 255.255.255.0 s0/0

 Here is the destination network 172 .168.20.0 255.255.255.0 associated with the subnet mask and the output interface Serial 0/0.


If a metric is desired to add the syntax behind a number beliebe. However, the lower it is more, this route.

for example:
ip route 172.168.20.0 255.255.255.0 172.16.10.2 1
ip route 172.168.20.0 255.255.255.0 172.16.10.3 5

In this example would be the upper path, because these metrics is much lower than the lower path.

Distance vector protocols:

Representatives of the distance vector protocols are: RIP (v.2), IGRP, EIGRP


Link-state protocols:

Representatives of the link-state protocols are: OSPF, IS-IS


OSPF:

OSPF is a dynamic routing protocol within an autonomous system. It has the RIP routing protocol as a standard Interior Gateway Protocol (IGP) replaced, especially for large networks. OSPF uses the cost of a path as metrics and can weigh costs the same distributed. OSPF costs are taken by default from the available bandwidth. To calculate the cost of the following formula: 10 ^ 8/ bandwidth. The costs add up for every one outbound interface OSPF router.

Configuration:

Router(config)#router ospf 123

     Turns the OSPF process 123. The process ID is any value between 1 and 65535th
     It is not identical with the OSPF Area



Router(config-router)#network 172.16.10.0 0.0.0.255 area 0

     OSPF interfaces are known, not networks. Use the wildcard mask laying down, what interfaces should be disclosed.
     This command can interpret as follows:
     Each interface with an address in the field 172.16.10.x be part of Area 0.


Loopback interface:


Router(config)#interface lo1 With this command, you change to the virtual interface lo1.

Router (config-if)#ip address 192.168.100.1 255,255,255,255 This command is the loopback IP address assigned.

Router (config-if)# no shut using the no shut command to activate the interface.

Router (config-if)# exit This command will revert back to the global configuration mode.

Router (config)#

Attachment: