distance command EIGRP

From: Ina&Laurean (ina.laurean@gmail.com)
Date: Mon Mar 24 2008 - 14:25:17 ART


Hi Group,

I am working on a lab and one of the requirements is to filter a default
route coming from a specific EIGRP neighbor, I tried different solutions but
none of them work seem to work, the solution is using the distance command
with neighbor EIGRP address and an access list.

I've created a Lab with just two routers to test this and as you can see the
default route is still into the routing table even though under the ip
protocols shows that the distance is 255.

Thanks,

Laurean

Bellow my configurations:

R1-LAB#sh run | s eigrp

router eigrp 236

 redistribute static metric 1000 10 255 1 1500

 network 192.168.253.0

 network 192.168.254.0

 no auto-summary

 deny eigrp any any

R1-LAB#

R1-LAB#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static
route

       o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.9.254 to network 0.0.0.0

      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 10.1.9.0/24 is directly connected, GigabitEthernet0/0

S 10.1.6.5/32 [254/0] via 10.1.9.254, GigabitEthernet0/0

C 192.168.254.0/24 is directly connected, Vlan1

C 192.168.253.0/24 is directly connected, Loopback0

D 192.168.252.0/24 [90/156160] via 192.168.254.2, 00:11:18, Vlan1

S* 0.0.0.0/0 [254/0] via 10.1.9.254

R1-LAB#

R2-LAB#sh run | s eigrp

router eigrp 236

 network 192.168.252.0

 network 192.168.254.0

 distance 255 192.168.254.1 0.0.0.0 1

 no auto-summary

R2-LAB#sh run | s access-

access-list 1 permit 0.0.0.0

R2-LAB#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static
route

       o - ODR, P - periodic downloaded static route

Gateway of last resort is 192.168.254.1 to network 0.0.0.0

     10.0.0.0/32 is subnetted, 1 subnets

D EX 10.1.6.5 [170/2565120] via 192.168.254.1, 00:00:45, Vlan1

C 192.168.254.0/24 is directly connected, Vlan1

D 192.168.253.0/24 [90/156160] via 192.168.254.1, 00:00:45, Vlan1

C 192.168.252.0/24 is directly connected, Loopback0

D*EX 0.0.0.0/0 [170/2565120] via 192.168.254.1, 00:00:45, Vlan1

R2-LAB#

R2-LAB#sh ip protocols

Routing Protocol is "eigrp 236"

  Outgoing update filter list for all interfaces is not set

  Incoming update filter list for all interfaces is not set

  Default networks flagged in outgoing updates

  Default networks accepted from incoming updates

  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

  EIGRP maximum hopcount 100

  EIGRP maximum metric variance 1

  Redistributing: eigrp 236

  EIGRP NSF-aware route hold timer is 240s

  Automatic network summarization is not in effect

  Maximum path: 4

  Routing for Networks:

    192.168.252.0

    192.168.254.0

  Routing Information Sources:

    Gateway Distance Last Update

    192.168.254.1 255 00:01:03

  Distance: internal 90 external 170

    Address Wild mask Distance List

    192.168.254.1 0.0.0.0 255 1

R2-LAB#



This archive was generated by hypermail 2.1.4 : Tue Apr 01 2008 - 07:53:54 ART