cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
399
Views
0
Helpful
2
Replies

Filter RIP received routes from one source

greenplague
Level 1
Level 1

HI,

With this topology with RIP:

R1    R2

    \   /

  Switch

     |

   R3

how can I prevent the R1 router to receive any route that R2 send by RIP?

Thanks for the help.

Regards

1 Accepted Solution

Accepted Solutions

Rolf Fischer
Level 9
Level 9

Hi,

you could try something like this:

R1(config)#ip prefix-list NO_ROUTER_2 seq 10 deny 192.168.0.2/32 ! R2's IP
R1(config)#ip prefix-list NO_ROUTER_2 seq 20 permit 0.0.0.0/0 le 32

R1(config)#do show ip route rip
     2.0.0.0/32 is subnetted, 1 subnets
R       2.2.2.2 [120/1] via 192.168.0.2, 00:00:04, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/1] via 192.168.0.3, 00:00:04, FastEthernet0/0
     10.0.0.0/16 is subnetted, 2 subnets
R       10.2.0.0 [120/1] via 192.168.0.2, 00:00:04, FastEthernet0/0
R       10.3.0.0 [120/1] via 192.168.0.3, 00:00:04, FastEthernet0/0

R1(config-router)#distribute-list gateway NO_ROUTER_2 in
R1(config-router)#do clear ip route *
R1(config-router)#do show ip route rip
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/1] via 192.168.0.3, 00:00:03, FastEthernet0/0
     10.0.0.0/16 is subnetted, 1 subnets
R       10.3.0.0 [120/1] via 192.168.0.3, 00:00:03, FastEthernet0/0

HTH
Rolf

View solution in original post

2 Replies 2

Rolf Fischer
Level 9
Level 9

Hi,

you could try something like this:

R1(config)#ip prefix-list NO_ROUTER_2 seq 10 deny 192.168.0.2/32 ! R2's IP
R1(config)#ip prefix-list NO_ROUTER_2 seq 20 permit 0.0.0.0/0 le 32

R1(config)#do show ip route rip
     2.0.0.0/32 is subnetted, 1 subnets
R       2.2.2.2 [120/1] via 192.168.0.2, 00:00:04, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/1] via 192.168.0.3, 00:00:04, FastEthernet0/0
     10.0.0.0/16 is subnetted, 2 subnets
R       10.2.0.0 [120/1] via 192.168.0.2, 00:00:04, FastEthernet0/0
R       10.3.0.0 [120/1] via 192.168.0.3, 00:00:04, FastEthernet0/0

R1(config-router)#distribute-list gateway NO_ROUTER_2 in
R1(config-router)#do clear ip route *
R1(config-router)#do show ip route rip
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/1] via 192.168.0.3, 00:00:03, FastEthernet0/0
     10.0.0.0/16 is subnetted, 1 subnets
R       10.3.0.0 [120/1] via 192.168.0.3, 00:00:03, FastEthernet0/0

HTH
Rolf

Thanks Rolf, problem solved, I've never used the gateway in a distribute-list.

Regards

Review Cisco Networking for a $25 gift card