cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1069
Views
0
Helpful
3
Replies

RIP path selection

andy.cruz
Level 1
Level 1

We have 2 networks separated by 3 routers (L3 switches) in parallel via WAN. AFAIK, RIP will load balance on these 3 routes. How do I influence the routes (metric) so that Router-1 is preferred over Router-2 and Router-3? Is it possible? If not, what are the alternative solutions?

NETWORK-A

|

|

ROUTER-A

|

|

WAN-CLOUD (WITH 3 ROUTERS IN PARALLEL)

|

|

ROUTER-B

|

|

NETWORK-B

Sorry for the poor diagram and thanks in advance for any input.

3 Replies 3

milan.kulik
Level 10
Level 10

Hi,

I think the best way would be moving to some more flexible routing protocol (OSPF, EIGRP).

But if you have to stay with RIP, there might be a solution to use policy routing on router A LAN interface with a route-map using set ip next-hop router1 router2 router3 for traffic with destination to the Network B.

An inverse policy routing should be defined on the router B LAN interface.

See http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/iprrp_r/ip2_s1g.htm#1038121

for details.

Regards,

Milan

Check out the offset-list command in rip router config mode. Its not real clear but it keys on the source of the advertisements not the advertisements themselves. It adds cost or hops to routes learned from listed hosts or interfaces. Here's the cco doc description.

offset-list

To add an offset to incoming and outgoing metrics to routes learned via Routing Information Protocol (RIP), use the offset-list command in router configuration mode. To remove an offset list, use the no form of this command.

offset-list {access-list-number | access-list-name} {in | out} offset [interface-type interface-number]

no offset-list {access-list-number | access-list-name} {in | out} offset [interface-type interface-number]

Syntax Description

access-list-number

Standard access list number to be applied. Access list number 0 indicates all access lists. If offset is 0, no action is taken. For IGRP, the offset is added to the delay component only.

access-list-name

Standard access list name to be applied.

in

Applies the access list to incoming metrics.

out

Applies the access list to outgoing metrics.

offset

Positive offset to be applied to metrics for networks matching the access list. If the offset is 0, no action is taken.

interface-type

(Optional) Interface type to which the offset list is applied.

interface-number

(Optional) Interface number to which the offset list is applied.

Defaults

This command is disabled by default.

Command Modes

Router configuration

Command History

Release Modification

10.0

This command was introduced.

10.3

The interface-type and interface-number arguments were added.

11.2

The access-list-name argument was added.

Usage Guidelines

The offset value is added to the routing metric. An offset list with an interface type and interface number is considered extended and takes precedence over an offset list that is not extended. Therefore, if an entry passes the extended offset list and the normal offset list, the offset of the extended offset list is added to the metric.

Examples

In the following example, the router applies an offset of 10 to the delay component of a router only to access list 21:

offset-list 21 out 10

In the following example, the router applies an offset of 10 to routes learned from Ethernet interface 0:

offset-list 21 in 10 ethernet 0

Thanks Milan and Richard!

EIGRP or OSPF is not an option for us right now. I have told my colleague that PBR and

'offset-list' are our options right now. We might try first the offset-list option.

Sorry for the mistake, ROUTER-A and ROUTER-B are separated by a LAN using FastEthernet

interfaces. Since we are using L3 switches (Cat6500 with MSFC), the interfaces involved

are logical VLAN interfaces. I believe it doesn't matter as long as we have entered the

network command under RIP config mode with the VLAN interfaces' network addresses.

We cannot perform the test right now but what I have in mind is to put the offset-list

command on the 3 routers in parallel, assigning the lowest offset on the preferred router

and the highest offset on the least preferred router. Is this correct or not? Any

additional advice is greatly appreciated.

[ROUTER-1]

!

access-list 10 permit

!

router rip

network x.x.x.x

offset-list 10 out 10

!

[ROUTER-2]

!

access-list 10 permit

!

router rip

network x.x.x.x

offset-list 10 out 20

!

[ROUTER-3]

!

access-list 10 permit

!

router rip

network x.x.x.x

offset-list 10 out 30

!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: