From owner-freebsd-net Tue Mar 26 13: 0:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 2CA1D37B400 for ; Tue, 26 Mar 2002 13:00:05 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA48616; Tue, 26 Mar 2002 12:45:00 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2QKicE37079; Tue, 26 Mar 2002 12:44:38 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203262044.g2QKicE37079@arch20m.dellroad.org> Subject: Re: Unnumbered IP Interface In-Reply-To: <3A6D367EA1EFD4118C9B00A0C9DD99D70655CE@rerun.avayactc.com> "from Cambria, Mike at Mar 26, 2002 09:59:40 am" To: "Cambria, Mike" Date: Tue, 26 Mar 2002 12:44:38 -0800 (PST) Cc: "'Julian Elischer'" , "'Archie Cobbs'" , "'freebsd-net@freebsd.org'" X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Cambria, Mike writes: > example, Archie's answer for unnumbered interfaces isn't in the route > manpage. I'm glad I asked. Quoting route(8): "If the destination is directly reachable via an interface requiring no intermediary system to act as a gateway, the -interface modifier should be specified; the gateway given is the address of this host on the common network, indicating the interface to be used for transmission. Alter- nately, if the interface is point to point the name of the interface itself may be given, in which case the route remains valid even if the local or remote addresses change. By the way, you can have an "unnumbered" P2P interface that still has an IP address configured on it -- just configure the same IP address that's on another interface, e.g.: $ ifconfig dc0: flags=8843 mtu 1500 inet 192.168.0.223 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:a0:cc:d6:cc:b1 media: Ethernet autoselect (100baseTX ) status: active ng0: flags=88d1 mtu 1500 inet 192.168.0.223 --> 1.2.3.4 netmask 0xffffff00 This is sometimes known as "half-routing".. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message