Odd behavior routed

Vladislav V. Prodan universite at ukr.net
Wed Dec 24 20:09:12 UTC 2008

# uname -a
FreeBSD mary-teresa.XXXXX 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Dec 24 
05:06:55 EET 2008 
vlad11 at mary-teresa.XXXXX:/usr/obj/usr/src/sys/mary-teresa.10  amd64

We have two providers on tun1 and tun2.

router_flags="-s -T /var/log/routed.log -P no_rip"

# netstat -rn
Routing tables

Destination        Gateway            Flags    Refs      Use  Netif Expire
default        UGS         0   653418   tun1        link#1             U           0    85595    re0          UH          0        0    lo0
89.209.XX.YY          UH          0      483    lo0      89.209.XX.YY       UH          0        0   tun1          link#6             UH          0    19781    lo0          UGS         0        0    re0     link#8             UH          0        5   tun2

Destination                       Gateway                       Flags 
  Netif Expire
::1                               link#6                        UH     lo0
fe80::%lo0/64                     link#6                        U     lo0
ff01:6::/32                       fe80::1%lo0                   U     lo0
ff01:7::/32                       fe80::2e0:4dff:fe7b:690c%tun1 UG    tun1
ff01:8::/32                       fe80::2e0:4dff:fe7b:690c%tun2 UG    tun2
ff02::%lo0/32                     fe80::1%lo0                   U     lo0
ff02::%tun1/32                    fe80::2e0:4dff:fe7b:690c%tun1 UG    tun1
ff02::%tun2/32                    fe80::2e0:4dff:fe7b:690c%tun2 UG    tun2

I would like to put some networks via a second ISP:
# /sbin/route add -net -iface tun2
add net gateway tun2
# /sbin/route add -net -iface tun2
add net gateway tun2
# /sbin/route add -net -iface tun2
add net gateway tun2

But routes do not appear, the table remains unchanged.
In the logs routed:

RTM_ADD from pid 7234: (mask 0xfffff000) -->
static route (mask 0xfffff000) --> impossibly 
lacks ifp
-- 11:35:16 --
RTM_ADD from pid 7250: (mask 0xffffe000) -->
static route (mask 0xffffe000) --> impossibly 
lacks ifp
-- 11:35:28 --
RTM_ADD from pid 7262: (mask 0xffffe000) -->
static route (mask 0xffffe000) --> impossibly 
lacks ifp

Before rebuild kernel, it appeared, and now there is no.
It is now adding routes?

Using gated|quagga|zebra does not offer.

More information about the freebsd-current mailing list