Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2002 14:23:55 +0300 (EEST)
From:      Iasen Kostov <ikostov@otel.net>
To:        freebsd-net@freebsd.org
Subject:   host routes for interface addresses
Message-ID:  <20020605134856.R82177-100000@shadowhand.OTEL.net>

next in thread | raw e-mail | index | archive | help
  Hi,

  Some times I don't need addition of host route when I'm setting iface's
address like in this case :

xl0: flags=8943<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 212.36.9.113 netmask 0xfffffe00 broadcast 212.36.9.255
        ether 00:04:76:1b:cb:72
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 212.36.9.113 netmask 0xffffffff broadcast 212.36.9.113
        ether 00:50:da:5b:b2:64
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 212.36.9.113 netmask 0xffffffff broadcast 212.36.9.113
        ether 00:04:76:22:16:92
        media: Ethernet autoselect (10baseT/UTP)
        status: active
xl3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 212.36.9.113 netmask 0xffffffff broadcast 212.36.9.113
        ether 00:04:76:22:16:97
        media: Ethernet autoselect (none)
        status: no carrier
xl4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 212.36.9.113 netmask 0xffffffff broadcast 212.36.9.113
        ether 00:10:4b:b8:65:2c
        media: Ethernet autoselect (10baseT/UTP)
        status: active
xl5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 212.36.9.113 netmask 0xffffffff broadcast 212.36.9.113
        ether 00:04:76:22:15:83
        media: Ethernet autoselect (100baseTX)
        status: active


It works fine (just a warrning) with 4.4 kernel and before, but in 4.5
there is a check for host route addition and if it fail to add a route
it also fails to set iface address (ofcourse I've patch it for myself).
  I need this not just for saving IPs but it's somewhat easier to route
just throw iface i not to care about iface IPs. And something more, You
know that the router has 1 IP and thats it , don't care on which iface
Your are connected right now, it has 1 IP and thats your gateway.
  This scheme looks a bit like Cisco's "ip unnumbered" interfaces and I
don't think it's a bad idea.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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