08-12-2008 01:22 AM - edited 03-06-2019 12:44 AM
The issue is to configure routers with EIGRP to send only desired routes. I heard this is somehow done through prefix lists and route map, but I dont know exactly. Has anyone dealt with it? Or can anyone suggest any links with configuration guide?
Solved! Go to Solution.
08-12-2008 01:37 AM
Ypu would be required to use distribute lists for filtering routes from advertising.
The distribute-list can reference an access-list or prefix-list
eg. say R1<--->R2 R1 runs eigrp on all its interfaces but needs to send routing updates only for loopback1
R1
interface Loopback1
ip address 1.1.1.1 255.255.255.0
!
interface Loopback2
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 10.10.10.1 255.255.255.0
router eigrp 1
network 1.0.0.0
network 2.0.0.0
network 10.0.0.0
distribute-list prefix test out
no auto-summary
ip prefix-list test seq 10 permit 1.1.1.0/24
R2
interface FastEthernet0/0
ip address 10.10.10.2 255.255.255.0
router eigrp 1
network 10.0.0.0
no auto-summary
Router#sh ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/156160] via 10.10.10.1, 00:06:50, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, FastEthernet0/0
Router#
http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfindep.html#wp1001343
HTH
Narayan
08-12-2008 01:37 AM
Ypu would be required to use distribute lists for filtering routes from advertising.
The distribute-list can reference an access-list or prefix-list
eg. say R1<--->R2 R1 runs eigrp on all its interfaces but needs to send routing updates only for loopback1
R1
interface Loopback1
ip address 1.1.1.1 255.255.255.0
!
interface Loopback2
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 10.10.10.1 255.255.255.0
router eigrp 1
network 1.0.0.0
network 2.0.0.0
network 10.0.0.0
distribute-list prefix test out
no auto-summary
ip prefix-list test seq 10 permit 1.1.1.0/24
R2
interface FastEthernet0/0
ip address 10.10.10.2 255.255.255.0
router eigrp 1
network 10.0.0.0
no auto-summary
Router#sh ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/156160] via 10.10.10.1, 00:06:50, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, FastEthernet0/0
Router#
http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfindep.html#wp1001343
HTH
Narayan
08-12-2008 01:47 AM
Thank you, this is what I was looking for
08-12-2008 02:48 AM
try using redistribute..as for route maps, it's mainly used for bgp (for policy based routing or PBR)
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