route add -host ... -iface issues
Sławek Żak
zaks at prioris.mini.pw.edu.pl
Mon Nov 15 09:28:29 PST 2004
Hi,
I'd like to ask why a static arp entry is added when direct route to host is
added like this?
route add -host target -iface interface
The route(8) manpage says, that such route entry is for hosts directly
reachable over interface. But when packets go out on this interface, the MAC
address of target host in each packet is set to local MAC for the interface,
which effectively stops the target host from receiving the packet.
Another thing is the order of adding routes in /etc/rc.d/routing of FreeBSD
5.3. The default gateway is added *before* other static routes are
setup. Sometimes the default router is unreachable before other static
routes are set configured. Is there any reason to not change the line:
static_routes="default ${static_routes}"
to:
static_routes="${static_routes} default"
?
/S
More information about the freebsd-net
mailing list