01-17-2003 05:34 AM - edited 03-02-2019 04:16 AM
Hello,
I have tried to use "distance" command to selectively set the AD for an incoming route from an eigrp neighbor, without success.
The following are my configs:
routerA (running 12.1.6 and configured with "distance" command):
interface Serial3
no ip address
encapsulation frame-relay IETF
clockrate 2000000
frame-relay intf-type dce
!
interface Serial3.1 point-to-point
ip address 12.0.1.1 255.255.255.252
frame-relay interface-dlci 102
!
router eigrp 200
passive-interface default
no passive-interface Serial3.1
network 12.0.0.0
distance 15 12.0.1.2 0.0.0.0 55
no auto-summary
no eigrp log-neighbor-changes
!
access-list 55 permit 1.1.1.1
routerB:
interface Loopback1
ip address 1.1.1.1 255.255.255.255
no ip directed-broadcast
!
interface Loopback2
ip address 2.2.2.2 255.255.255.255
no ip directed-broadcast
!
interface Serial0
no ip address
no ip directed-broadcast
encapsulation frame-relay IETF
no ip mroute-cache
!
interface Serial0.1 point-to-point
ip address 12.0.1.2 255.255.255.252
no ip directed-broadcast
frame-relay interface-dlci 102
!router eigrp 200
redistribute connected
passive-interface default
no passive-interface Loopback1
no passive-interface Loopback2
no passive-interface Serial0.1
network 12.0.0.0
no auto-summary
!
"Sho ip rou eigrp" and "show ip eigrp topo" output :
r1_4700_2033#sho ip rou eig
1.0.0.0/32 is subnetted, 1 subnets
D EX 1.1.1.1 [170/2297856] via 12.0.1.2, 00:00:00, Serial3.1
2.0.0.0/32 is subnetted, 1 subnets
D EX 2.2.2.2 [170/2297856] via 12.0.1.2, 00:00:00, Serial3.1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D EX 10.0.2.0/24 [170/2681856] via 12.0.1.2, 00:00:00, Serial3.1
r1_4700_2033#
r1_4700_2033#sho ip eig top
r1_4700_2033#sho ip eig topology
IP-EIGRP Topology Table for AS(200)/ID(12.0.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.2/32, 1 successors, FD is 2297856
via 12.0.1.2 (2297856/128256), Serial3.1
P 1.1.1.1/32, 1 successors, FD is 2297856
via 12.0.1.2 (2297856/128256), Serial3.1
P 10.0.2.0/24, 1 successors, FD is 2681856
via 12.0.1.2 (2681856/2169856), Serial3.1
P 12.0.1.0/30, 1 successors, FD is 2169856
via Connected, Serial3.1
As you can see, the "distance" command looks to have to effect on the AD for route 1.1.1.1.
1.1.1.1/32 eigrp route remains with its defualt (EIGRP EX = 170).
Only "distance eigrp <value> internal" or "distance eigrp <value> internal"
commands work. But those command will apply for all routes.
Any idea how can selectively set the AD on EIGRP for received routes ?
Thanks in advance...
01-17-2003 06:02 AM
What you can try is add under eigrp on routerB "network 1.0.0.0", see if that makes a difference (ie make the loopback's route an eigrp route and not an external route). Not sure if this command works with external EIGRP. Let us know.
Hope it helps.
Steve
01-17-2003 06:51 AM
According to the config guide you can not selectivelty set the Admin Distance for EIGRP:
Note You cannot set the administrative distance in EIGRP against certain routes or sources, as you can with other protocols. The command does not work this way with EIGRP
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: