From owner-freebsd-stable Thu Oct 12 7:34:53 2000 Delivered-To: freebsd-stable@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id 5805F37B502 for ; Thu, 12 Oct 2000 07:34:51 -0700 (PDT) Received: from simoeon.sentex.net (simeon.sentex.ca [209.112.4.47]) by smtp1.sentex.ca (8.11.0/8.11.0) with ESMTP id e9CEYlL38286; Thu, 12 Oct 2000 10:34:47 -0400 (EDT) Message-Id: <5.0.0.25.0.20001012102821.04a18c10@marble.sentex.ca> X-Sender: mdtpop@marble.sentex.ca X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Thu, 12 Oct 2000 10:30:04 -0400 To: Michal Mertl , stable@FreeBSD.ORG From: Mike Tancsa Subject: Re: specifiing source address doesn't work in 4.1.1 (at least) In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 04:18 PM 10/12/00 +0200, Michal Mertl wrote: >For testing purposed I was sometimes using 'telnet -s'. > >In recent versions (4.1.1 and stable) it stopped working > >Environment: >host# ifconfig fxp0 >fxp0: flags=8843 mtu 1500 > inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 > ether 00:08:c7:49:16:4c > media: autoselect (10baseT/UTP) status: active > supported media: autoselect 100baseTX 100baseTX >10baseT/UTP 10baseT/UTP > >host# telnet -s 192.168.0.3 192.168.0.2 >Trying 192.168.0.2... >bind: Can't assign requested address But that is not your IP address. Your source address is .2, and you are saying telnet to .2 from .3. Your machine does not seem to know anything about .3, so how can it use it as a source IP ? If you did ifconfig fxp0 172.16.0.1 netmask 255.255.255.0 alias you could then do telnet -s 172.16.0.1 192.168.0.2 ---Mike ------------------------------------------------------------------------ Mike Tancsa, tel +1 519 651 3400 Sentex Communications mike@sentex.net Cambridge, Ontario Canada www.sentex.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message