Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "EIGRP not configured on this interface" #3460

Closed
piotrjurkiewicz opened this issue Dec 10, 2018 · 2 comments
Closed

Error "EIGRP not configured on this interface" #3460

piotrjurkiewicz opened this issue Dec 10, 2018 · 2 comments
Assignees

Comments

@piotrjurkiewicz
Copy link
Contributor

When using the config file like that:

router eigrp 1
    eigrp router-id 10.127.0.34
    maximum-paths 32
    variance 5
    network 10.127.0.34/30
    network 10.127.0.49/30

interface eth1
    delay 50
interface eth2
    delay 86

I get an error when trying to set delay: EIGRP not configured on this interface.

EIGRP should be configured on each interface by network command few lines before:

frr/eigrpd/eigrp_network.c

Lines 234 to 237 in 526da6f

FOR_ALL_INTERFACES (vrf, ifp) {
zlog_debug("Setting up %s", ifp->name);
eigrp_network_run_interface(eigrp, p, ifp);
}

but this does not happen. Actually log debug messages are not being produced at all by line 235. This means that are not interfaces in vrf and this loop does not run. They are probably created later during daemon operation by eigrp_if_update.

This bug may be related to commented out line:

void eigrp_if_init()
{
/* Initialize Zebra interface data structure. */
// hook_register_prio(if_add, 0, eigrp_if_new);
hook_register_prio(if_del, 0, eigrp_if_delete_hook);
}

which was introduced by commit b748db6.

Other daemons in that place call functions which create ifp->info and fill it with default params, for example:

int ospf_if_new_hook(struct interface *ifp)

@piotrjurkiewicz
Copy link
Contributor Author

The bug is still present in version 7.2, but the logged error messages have changed:

2019/11/16 02:06:40 warnings: EIGRP: [EC 100663331] nb_callback_configuration: error processing configuration change: error [internal inconsistency] event [validate] operation [modify] xpath [/frr-interface:lib/interface[name='eth1'][vrf='default']/frr-eigrpd:eigrp/delay]
2019/11/16 02:06:40 warnings: EIGRP: [EC 100663337] nb_candidate_commit_prepare: failed to validate candidate configuration
2019/11/16 02:06:40 warnings: EIGRP: [EC 100663331] nb_callback_configuration: error processing configuration change: error [internal inconsistency] event [validate] operation [modify] xpath [/frr-interface:lib/interface[name='eth2'][vrf='default']/frr-eigrpd:eigrp/delay]
2019/11/16 02:06:40 warnings: EIGRP: [EC 100663337] nb_candidate_commit_prepare: failed to validate candidate configuration
2019/11/16 02:06:40 errors: EIGRP: [EC 100663304] ERROR: Command returned Warning Config Failed on config line 21:     delay 187
2019/11/16 02:06:40 errors: EIGRP: [EC 100663304] ERROR: Command returned Warning Config Failed on config line 23:     delay 133

@donaldsharp
Copy link
Member

This appears to be working for me now:

sharpd@eva ~/frr5 (vtysh_enable)> sudo ip link add dummy305 type dummy
sharpd@eva ~/frr5 (vtysh_enable)> sudo ip link set dummy305 up
sharpd@eva ~/frr5 (vtysh_enable)> sudo ip addr add 10.127.0.34/30 dev dummy305
sharpd@eva ~/frr5 (vtysh_enable)> sudo vtysh
line 1: % Unknown command[4]: banner motd file /tmp/foo

Hello, this is FRRouting (version 8.1-dev).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

eva# show ip route connected
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

C>* 1.2.3.4/32 is directly connected, lo, 22:14:07
C>* 10.5.3.0/24 is directly connected, dummy304, 01:54:49
C>* 10.5.3.3/32 is directly connected, dummy304, 01:54:08
C>* 10.127.0.32/30 is directly connected, dummy305, 00:00:12
C>* 192.168.1.0/24 is directly connected, enp39s0, 22:14:07
C>* 192.168.122.0/24 is directly connected, virbr0, 22:14:07
eva# conf
eva(config)# router eigrp 1
eva(config-router)# network 10.127.0.34/30
eva(config-router)# exit
eva(config)# int dummy305
eva(config-if)# delay 50
eva(config-if)# end
eva# do show run
Building configuration...

Current configuration:
!
frr version 8.1-dev
frr defaults datacenter
hostname eva
log file /var/log/frr/foo.log
interface dummy304
 delay 50
!
interface dummy305
 delay 50
!
router eigrp 1
 network 10.5.3.0/24
 network 10.127.0.32/30
!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants