Vous êtes sur la page 1sur 5

http://www.computeronlinetips.com/Router-tips/configure-static-routes.html How to configure static routes on Cisco routers?

You can configure two types of routing on the router- static and dynamic to send the traffic to destination. Static route tell the network devices about exact location (hard-coded destination). Static routers can work well with small network but in large scale network dynamic routing is the best choice. Configure static routes between routers to allow data transfer between routers without the use of dynamic routing protocols. From the global configuration mode, configure the hostname then configure the console and enable passwords on each router.

To configure static routes, first enter global configuration mode to run the following commands.

Configure the Static Routes on Router A.

First run the command show ip route to view the IP routing table for router A before defining static routes

RouterA#configure terminal

(enter in global configuration mode)

RouterA(config)#ip route 15.0.0.0 255.0.0.0 10.1.1.2

(define static routing on Router A)

RouterA(config)#ip route 193.168.2.0 255.255.255.0 10.1.1.2

(define static routing on Router A)

RouterA(config)#ip route 193.168.3.0 255.255.255.0 20.1.1.2

(define static routing on Router A)

RouterA(config)#exit

RouterA#

Now run the command show ip route on router A to view the IP routing table (directly connected + static routes) detail.

Configure the Static Routes on Router B.

First run the command show ip route to view the IP routing table for router B before defining static routes

RouterB#configure terminal

(enter in global configuration mode)

RouterB(config)#ip route 20.0.0.0 255.0.0.0 10.1.1.1

(define static routing on Router B)

RouterB(config)#ip route 193.168.1.0 255.255.255.0 10.1.1.1

(define static routing on Router B)

RouterB(config)#ip route 193.168.3.0 255.255.255.0 15.1.1.2

(define static routing on Router B)

RouterB(config)#exit

RouterB#

Now run the command show ip route on router B to view the IP routing table (directly connected + static routes) detail.

Configure the Static Routes on Router C.

First run the command show ip route to view the IP routing table for router C before defining static routes

RouterC#configure terminal

(enter in global configuration mode)

RouterC(config)#ip route 10.0.0.0 255.0.0.0 15.1.1.1

(define static routing on Router C)

RouterC(config)#ip route 193.168.2.0 255.255.255.0 15.1.1.1

(define static routing on Router C)

RouterC(config)#ip route 193.168.1.0 255.255.255.0 20.1.1.2

(define static routing on Router C)

RouterC(config)#exit

RouterC#

Now run the command show ip route on router C to view the IP routing table (directly connected + static routes) detail.

How to configure RIP v2 step by step?


RIP short for "Routing Information Protocol" is a routing protocol used to select the suitable route for packets with in network. RIP basically an open standard dynamic routing protocol and not relate to any particular vendor. The latest version of RIP is RIP version 2 with some new features, for example RIP v2 is class less protocol that sends subnet mask information with routing updates and support VLSM (variable length subnet masking also). From the global configuration mode, configure the hostname then configure the console and enable passwords on each router.

To configure RIP v2, first enter global configuration mode to run the following commands.

Configure the routing protocol on Router A. First run the command show ip route to view the IP routing table for router A before RIP v2.

RouterA(config)#configure terminal

(enter in global configuration mode)

RouterA(config)#router rip

(enable RIP)

RouterA(config-router)#version 2

(enable RIP v2)

RouterA(config-router)#network 10.0.0.0

(advertise the network 10.0.0.0)

RouterA(config-router)#network 20.0.0.0

(advertise the network 20.0.0.0)

RouterA(config-router)#network 193.168.1.0 (advertise the network 193.168.1.0)

RouterA(config-router)#exit

RouterA(config)#

Configure the routing protocol on Router B.

First run the command show ip route to view the IP routing table for router B before RIP v2.

RouterB(config)#configure terminal

(enter in global configuration mode)

RouterB(config)#router rip

(enable RIP)

RouterB(config-router)#version 2

(enable RIP v2)

RouterB(config-router)#network 10.0.0.0

(advertise the network 10.0.0.0)

RouterB(config-router)#network 15.0.0.0

(advertise the network 15.0.0.0)

RouterB(config-router)#network 193.168.2.0 (advertise the network 193.168.2.0)

RouterB(config-router)#exit

RouterB(config)#

Configure the routing protocol on Router C.

First run the command show ip route to view the IP routing table for router C before RIP v2.

RouterC(config)#configure terminal

(enter in global configuration mode)

RouterC(config)#router rip

(enable RIP)

RouterC(config-router)#version 2

(enable RIP v2)

RouterC(config-router)#network 20.0.0.0

(advertise the network 20.0.0.0)

RouterC(config-router)#network 15.0.0.0

(advertise the network 15.0.0.0)

RouterC(config-router)#network 193.168.3.0 (advertise the network 193.168.3.0)

RouterC(config-router)#exit

RouterC(config)#

From the enable mode, examine the routing table entries using the show ip route command on each router.

Vous aimerez peut-être aussi