Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2000 10:30:04 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        Michal Mertl <mime@traveller.cz>, stable@FreeBSD.ORG
Subject:   Re: specifiing source address doesn't work in 4.1.1 (at least)
Message-ID:  <5.0.0.25.0.20001012102821.04a18c10@marble.sentex.ca>
In-Reply-To: <Pine.BSO.4.21.0010121611530.5520-100000@prg.traveller.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex> 100baseTX
>10baseT/UTP <full-duplex> 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




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