Hi!

I need quagga to add default route to ng1 interface (without specifying 
next-hop address)
when there is no default route yet.

So, I use command 'ip route 0.0.0.0/0 ng1' and it tries to add it to the kernel
and fails. Its debug shows:

2011/11/27 02:44:05 ZEBRA: rib_process: 0.0.0.0/0: Adding route, select 
0x2125f220
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: 0.0.0.0/0: attention! gate not 
found for rib 0x2125f220
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: dumping RIB entry 0x2125f220 for 
0.0.0.0/0
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: refcnt == 0, uptime == 0, type == 
3, table == 0
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: metric == 0, distance == 10, flags 
== 0, status == 0
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: nexthop_num == 1, 
nexthop_active_num == 1, nexthop_fib_num == 0
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: NH 0.0.0.0 (0.0.0.0) with flags 
ACTIVE 
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: dump complete
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: 0.0.0.0/0: rtm_write() unexpectedly 
returned -2 for command RTM_ADD
2011/11/27 02:44:05 ZEBRA: kernel_rtm_ipv4: No useful nexthops were found in 
RIB entry 0x2125f220

Meantime, 'route -n monitor' shows:

got message of size 116 on Sun Nov 27 02:57:03 2011
RTM_ADD: Add Route: len 116, pid: 566, seq 87, errno 51, flags:<UP,PROTO1>
locks:  inits: 
sockaddrs: <DST,GATEWAY,NETMASK>
 default default default

If I use command 'route add default -iface ng1', it succeedes and I see 
differing picture:

got message of size 168 on Sun Nov 27 02:53:47 2011
RTM_ADD: Add Route: len 168, pid: 2817, seq 1, errno 0, flags:<UP,DONE,STATIC>
locks:  inits:
sockaddrs: <DST,GATEWAY,NETMASK>
 default ng1 default

It seems, quagga does not pass interface name ng1 to the kernel.
Does someone know how to fix it quick? I use 8.2-STABLE/amd64 and 
quagga-0.99.20 from ports.

Eugene Grosbein
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to