02-20-2016 04:13 AM - edited 03-05-2019 03:23 AM
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
Solved! Go to Solution.
02-20-2016 12:00 PM
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
02-20-2016 12:00 PM
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
02-21-2016 12:48 PM
Thanks Rolf, problem solved, I've never used the gateway in a distribute-list.
Regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide