Date: Tue, 17 Jul 2001 14:04:20 -0600 From: Peter Warrick <peter@guest-tek.com> To: Michel Quadflieg <michel@euro.net> Cc: freebsd-questions@freebsd.org Subject: Re: Routing Message-ID: <200107172001.OAA10267@mail.guest-tek.com> In-Reply-To: <20010717110555.A80241@euro.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This still does not seem to work.. I also do not wish to bring the
entire subnet on either. For instance say I had the same IP if 1.2.3.4
and the gateway this time was 1.3.4.1. This would require a subnet
similar to 255.0.0.0. This I do not want because while I would like
1.2.3.4 and 1.3.4.1 to be able to talk to each other I would also like
to be able to find an IP say of 1.4.5.2 out on the internet that may
have a web server.. (I know this may all sound confusing but if we keep
in mind that I just need two arbitrary IPs to be able to talk to each
other.. I do not want the entire subnet.)
Here's what I have now..
ifconfig -a produces...
en1: flags=8963<UP,BROADCAST,b6,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu
1500
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
inet 1.2.3.1 netmask 0xffffffff broadcast 1.255.255.255
ether 00:00:c5:53:07:ac
media: autoselect (100baseTX <full-duplex>) status: active
supported media: 10baseT/UTP 100baseTX 10baseT/UTP <full-duplex>
100base
(I've stripped off the rest of the ifconfig listing. :)
and netstat -nr produces...
Destination Gateway Flags Refs Use Netif
Expire
1.2.3/24 1.2.3.1 UGSc 2 94052 en1
1.2.3.1 0:0:c5:53:7:ac UHLW 2 385 lo0 =>
1.2.3.1/32 link#4 UC 0 0 en1
1.2.3.5 1.2.3.1 UGHS 1 294 en1
127.0.0.1 127.0.0.1 UH 22 9515756 lo0
192.168 link#4 UC 0 0 en1
When I try to ping from my server I get no response.. Also when I do a
tcpdump on en1 I can see the traffic coming from 1.2.3.4 trying to get
to 1.2.3.1 but 1.2.3.1 does not respond.. Also 1.2.3.4 doesn't appear in
the arp table.
Thanks again for any help.
Pete
On Tuesday, July 17, 2001, at 03:05 AM, Michel Quadflieg wrote:
> A long time ago, in an e-mail far away, Peter Warrick wrote:
>> Ok.. Hopefully I have sent this to the right place.
>>
>> I sent in a question to freebsd-net earlier but maybe some
>> clarification
>> here might help. I am trying to reproduce the same functionality that I
>> have achieved on Redhat Linux on a BSD box.
>>
>> In Redhat linux if I issue these commands..
>>
>> ifconfig eth1:0 1.2.3.1 netmask 255.255.255.255
>> route add -host 1.2.3.4 dev eth1:0
>>
>> A computer connected to my BSD box (1.2.3.4) can then start pinging
>> 1.2.3.1 immediately. Additionally this does NOT bring the entire
>> 1.2.3.x
>> subnet onto my BSD box and this is what I want. I simply want to route
>> these two IPs together so they can talk to each other.
>
> This is because you have entered the wrong netmask. If you want to have
> the
> entire 1.2.3.x subnet up you should have a netmask of 255.255.255.0
> Another possibility if you still want to use the 255.255.255.255 (this
> subnet specifies JUST 1 host is in this subnet) you could do a :
> route add -net 1.2.3.0 <gateway address>
>
>
>> On BSD I have tried the following without success...
>>
>> ifconfig en1 1.2.3.1 netmask 255.255.255.255 broadcast 1.255.255.255
>> alias
>> route add -host 1.2.3.4 -interface en1
>
> this should have been
> route add -host 1.2.3.4 1.2.3.1
>
> But once again change the subnetmask!
>
>> I added the broadcast to the ifconfig line in BSD because I noticed in
>> linux my broadcast was 1.255.255.255 by default and BSD wasn't doing
>> this. Yet this still did not help.
>>
>> Is there anything else someone may suggest that I need to do to get
>> this
>> working? Again I have this working on my Redhat Linux box but not my
>> BSD
>> box and I am kind of under the gun to prove that it can be done in BSD
>> as it has been done in Redhat.
>
> As you can see this can be done :)
>
> ---end quoted text---
>
>
> --
> Michel Quadflieg
> IS/IT Operations EuroNet * Internet BV
>
> "It took the computing power of three C-64s to fly to the Moon.
> It takes a 486 to run Windows 95. Something is wrong here."
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107172001.OAA10267>
