route add -host ... -iface issues

From: Sławek Żak <zaks_at_prioris.mini.pw.edu.pl>
Date: Mon, 15 Nov 2004 18:28:26 +0100 (CET)
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    
Received on Mon Nov 15 2004 - 16:28:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:22 UTC