From owner-freebsd-questions Wed Jul 25 12:54: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.guest-tek.com (mail.guesttek.com [139.142.1.74]) by hub.freebsd.org (Postfix) with ESMTP id 2A04837B401 for ; Wed, 25 Jul 2001 12:53:52 -0700 (PDT) (envelope-from peter@guest-tek.com) Received: from localhost (peter@[139.142.135.115]) by mail.guest-tek.com (8.9.3/8.8.7) with ESMTP id NAA12554; Wed, 25 Jul 2001 13:50:07 -0600 Message-Id: <200107251950.NAA12554@mail.guest-tek.com> Date: Wed, 25 Jul 2001 13:53:50 -0600 From: Peter Warrick Content-Type: multipart/alternative; boundary=Apple-Mail-1136603887-1 Subject: Re: Redhat Linux Route command translated to FreeBSD? Cc: To: Fernando Gleiser X-Mailer: Apple Mail (2.388) In-Reply-To: <20010724201354.T75434-100000@cactus.fi.uba.ar> Mime-Version: 1.0 (Apple Message framework v388) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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 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 100baseTX 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 VT100eth1: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 route VT100Destination Gateway =20 Genmask Flags Metric Ref Use Iface 1.2.3.4 * 255.255.255.255 UH 0 0 =20 0 eth1 Now in FreeBSD... ifconfig -au en1: flags=3D8963< 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 < 100baseTX < autoselect autoselect 10baseT/UTP netstat -nr VT100Routing 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.=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: 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: 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-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message