Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2004 18:28:26 +0100 (CET)
From:      =?iso-8859-2?Q?S=B3awek_=AFak?= <zaks@prioris.mini.pw.edu.pl>
To:        net@freebsd.org, current@freebsd.org
Subject:   route add -host ... -iface issues
Message-ID:  <20041115172826.3E28911445@localhost>

next in thread | raw e-mail | index | archive | help
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    



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041115172826.3E28911445>