From owner-freebsd-questions@FreeBSD.ORG Sat Feb 12 16:27:23 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 928EE16A4CE for ; Sat, 12 Feb 2005 16:27:23 +0000 (GMT) Received: from lilzmailso01.liwest.at (lilzmailso01.liwest.at [212.33.55.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F65943D1D for ; Sat, 12 Feb 2005 16:27:23 +0000 (GMT) (envelope-from dgw@liwest.at) Received: from cm248-169.liwest.at ([81.10.248.169]) by lilzmailso01.liwest.at with esmtp (Exim 4.24) id 1D0077-0006sM-La; Sat, 12 Feb 2005 17:27:21 +0100 From: Daniela To: Volker Kindermann Date: Sat, 12 Feb 2005 18:27:13 +0000 User-Agent: KMail/1.5.3 References: <200502112206.43267.dgw@liwest.at> <200502121505.20754.dgw@liwest.at> <420E2992.10509@ps102.de> In-Reply-To: <420E2992.10509@ps102.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502121827.13481.dgw@liwest.at> cc: Alin-Adrian Anton cc: questions@freebsd.org Subject: Re: How do I set the source address on a multi-homed host? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dgw@liwest.at List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 16:27:23 -0000 On Saturday 12 February 2005 16:06, Volker Kindermann wrote: > Hi Daniela, > > > Yes, this happens when I connect from my machine (which functions as a > > router with NAT to allow the other LAN machines connect to the internet) > > to another LAN machine. When the router establishes a connection to > > another point in the intranet, the source address used is my official IP, > > and not 10.0.0.1, which is the intranet IP of the router. > > please post the output of the following commands: > > ifconfig -a [Showing only relevant entries. My official IP is replaced with x.x.x.x] rl0: flags=8843 mtu 1500 inet6 fe80::202:44ff:fe66:bf4%rl0 prefixlen 64 scopeid 0x1 inet x.x.x.x netmask 0xffffff00 broadcast x.x.x.255 ether 00:02:44:66:0b:f4 media: Ethernet autoselect (100baseTX ) status: active rl1: flags=8843 mtu 1500 inet6 fe80::20a:cdff:fe00:c076%rl1 prefixlen 64 scopeid 0x2 inet 10.0.0.1 netmask 0xff000000 broadcast 10.255.255.255 ether 00:0a:cd:00:c0:76 media: Ethernet autoselect (100baseTX ) status: active > netstat -nr Destination Gateway Flags Refs Use Netif Expire default x.x.x.1 UGSc 0 340313 rl0 10 link#2 UC 2 0 rl1 10.0.0.3 00:0d:61:17:fc:30 UHLW 1 444 rl1 903 10.255.255.255 ff:ff:ff:ff:ff:ff UHLWb 0 2453 rl1 x.x.x/24 link#1 UC 2 0 rl0 x.x.x.1 00:d0:88:01:03:f5 UHLW 1 0 rl0 623 x.x.x.x 127.0.0.1 UGHS 2 3458 lo0 x.x.x.255 ff:ff:ff:ff:ff:ff UHLWb 1 2464 rl0 127.0.0.1 127.0.0.1 UH 1 5540 lo0