Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2001 13:53:50 -0600
From:      Peter Warrick <peter@guest-teik.com>
To:        Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Redhat Linux Route command translated to FreeBSD?
Message-ID:  <200107251950.NAA12554@mail.guest-tek.com>
In-Reply-To: <20010724201354.T75434-100000@cactus.fi.uba.ar>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-1136603887-1
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	format=flowed;
	charset=us-ascii

This I have tried. The problem is that it then specifies the gateway of 
1.2.3.4 as the MAC address of xl0. I am not sure if this is correct but 
it still doesn't work for my purposes.. Here's an example of what the 
ifconfig and route table looks like in redhat.

ifconfig

eth1:0    Link encap:Ethernet  HWaddr 52:54:00:EC:F1:EB
           inet addr:1.2.3.1  Bcast:1.255.255.255  Mask:255.255.255.255
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

route

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
1.2.3.4         *               255.255.255.255 UH    0      0        0 
eth1

Now in FreeBSD...

ifconfig -au

en1: flags=8963<UP,BROADCAST,b6,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 
1500
         inet 1.2.3.1 netmask 0xffffffff broadcast 1.2.3.1
         ether 00:00:c5:53:07:ac
         media: autoselect (100baseTX) status: active
         supported media: 10baseT/UTP 100baseTX 10baseT/UTP <full-duplex> 
100baseTX <full-duplex> autoselect autoselect 10baseT/UTP

netstat -nr

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif 
Expire
1.2.3.1/32         link#4             UC          0        0      en1
1.2.3.4            0:0:c5:53:7:ac     UHLS        0        0      en1
127.0.0.1          127.0.0.1          UH         22  9587562      lo0

I have gotten rid of all the other extraneous IPs of my network but that 
is all the necessary info I can provide...

In the Linux Redhat network 1.2.3.4 and 1.2.3.1 can now communicate with 
each other. In the FreeBSD network they don't seem to want to talk.. 
Even though I see the traffic on the network of a ping there is no 
response. I see arp requests and also replys so from a MAC address level 
they know where each other are.

The other thing that is interesting is that when I bring on an entire 
subnet and once the arp calls start happening I see the IP's of machines 
on that network with their respective MAC addresses in the routing table 
of the server. But when I add the host to the routing table it puts in 
the MAC address of the NIC in the server for the Gateway. I'm curious if 
this is the problem? I am thinking I need to say that 1.2.3.4 is at a 
specific MAC address or something in the routing table?

I hope this makes some sense..

Thanks again for any help.

Pete

On Tuesday, July 24, 2001, at 05:15 PM, Fernando Gleiser wrote:

> Let's say the interface's name is xl0 in FreeBSD, then you say
>
> route add -host 1.2.3.4 -interface xl0
>
> Or, man route for more details. =0)
>
>
> 			Fer
>
>
>
> On Tue, 24 Jul 2001, Peter Warrick wrote:
>
>> Anyone have any idea what the direct translation of this redhat command
>> would be to BSD??
>>
>> route add -host 1.2.3.4 dev eth1:0
>>
>> eth1:0 is an alias on the eth1 network. eth1:0's IP is 1.2.3.1. What
>> that command does is say that 1.2.3.4 is directly connected to the
>> eth1:0 network. This means that  it is routing this 1.2.3.4 IP to
>> 1.2.3.1. Even though these addresses seem to be on the same subnet. 
>> They
>> actually aren't in my configuration.
>>
>> Thanks for any help.. I've been stuck on getting this to work on my BSD
>> box for about a month now. :(
>>
>> Pete
>>
>> To Unsubscribe: send mail to majordomo@FreeBSD.org
>> with "unsubscribe freebsd-questions" in the body of the message
>>
>

--Apple-Mail-1136603887-1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=us-ascii

This I have tried. The problem is that it then specifies the gateway
of 1.2.3.4 as the MAC address of xl0. I am not sure if this is correct
but it still doesn't work for my purposes.. Here's an example of what
the ifconfig and route table looks like in redhat.


ifconfig


<fontfamily><param>VT100</param>eth1:0    Link encap:Ethernet  HWaddr
52:54:00:EC:F1:EB =20

          inet addr:1.2.3.1  Bcast:1.255.255.255  Mask:255.255.255.255

          UP BROADCAST RUNNING MULTICAST  MTU:1500  =
Metric:1</fontfamily>


route


<fontfamily><param>VT100</param>Destination     Gateway       =20
Genmask         Flags Metric Ref    Use Iface

1.2.3.4         *               255.255.255.255 UH    0      0      =20
0 eth1</fontfamily>


Now in FreeBSD...


ifconfig -au


en1: flags=3D8963<<UP,BROADCAST,b6,RUNNING,PROMISC,SIMPLEX,MULTICAST>
mtu 1500

        inet 1.2.3.1 netmask 0xffffffff broadcast 1.2.3.1

        ether 00:00:c5:53:07:ac=20

        media: autoselect (100baseTX) status: active

        supported media: 10baseT/UTP 100baseTX 10baseT/UTP
<<full-duplex> 100baseTX <<full-duplex> autoselect autoselect
10baseT/UTP


netstat -nr


<fontfamily><param>VT100</param>Routing tables


Internet:

Destination        Gateway            Flags     Refs     Use     Netif
Expire

1.2.3.1/32         link#4             UC          0        0      en1

1.2.3.4            0:0:c5:53:7:ac     UHLS        0        0      en1

127.0.0.1          127.0.0.1          UH         22  9587562      lo0

</fontfamily>

I have gotten rid of all the other extraneous IPs of my network but
that is all the necessary info I can provide...


In the Linux Redhat network 1.2.3.4 and 1.2.3.1 can now communicate
with each other. In the FreeBSD network they don't seem to want to
talk.. Even though I see the traffic on the network of a ping there is
no response. I see arp requests and also replys so from a MAC address
level they know where each other are.=20


The other thing that is interesting is that when I bring on an entire
subnet and once the arp calls start happening I see the IP's of
machines on that network with their respective MAC addresses in the
routing table of the server. But when I add the host to the routing
table it puts in the MAC address of the NIC in the server for the
Gateway. I'm curious if this is the problem? I am thinking I need to
say that 1.2.3.4 is at a specific MAC address or something in the
routing table?


I hope this makes some sense..=20


Thanks again for any help.


Pete


On Tuesday, July 24, 2001, at 05:15 PM, Fernando Gleiser wrote:


<excerpt>Let's say the interface's name is xl0 in FreeBSD, then you say


route add -host 1.2.3.4 -interface xl0


Or, man route for more details. =3D0)



			Fer




On Tue, 24 Jul 2001, Peter Warrick wrote:


<excerpt>Anyone have any idea what the direct translation of this
redhat command

would be to BSD??


route add -host 1.2.3.4 dev eth1:0


eth1:0 is an alias on the eth1 network. eth1:0's IP is 1.2.3.1. What

that command does is say that 1.2.3.4 is directly connected to the

eth1:0 network. This means that  it is routing this 1.2.3.4 IP to

1.2.3.1. Even though these addresses seem to be on the same subnet.
They

actually aren't in my configuration.


Thanks for any help.. I've been stuck on getting this to work on my BSD

box for about a month now. :(


Pete


To Unsubscribe: send mail to majordomo@FreeBSD.org

with "unsubscribe freebsd-questions" in the body of the message


</excerpt>

</excerpt>=

--Apple-Mail-1136603887-1--

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?200107251950.NAA12554>