Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2001 14:54:38 -0500
From:      Noah Dunker <ndunker@jccc.net>
To:        'Peter Warrick' <peter@guest-teik.com>, Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: Redhat Linux Route command translated to FreeBSD?
Message-ID:  <C18E28011272D41180AD00B0D0496C0801C021E8@ns-exch05>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C11543.A3168A00
Content-Type: text/plain;
	charset="iso-8859-1"

try using:
 
netstat -r
or
netstat -rn
 
pipe through less or more if it's too long.
 
Noah Dunker
Systems Analyst/Technician
Johnson County Community College 

-----Original Message-----
From: Peter Warrick [mailto:peter@guest-teik.com]
Sent: Wednesday, July 25, 2001 2:54 PM
To: Fernando Gleiser
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: Redhat Linux Route command translated to FreeBSD?



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 




------_=_NextPart_001_01C11543.A3168A00
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>

<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=111240320-25072001>try 
using:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=111240320-25072001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=111240320-25072001>netstat -r</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=111240320-25072001>or</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=111240320-25072001>netstat -rn</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=111240320-25072001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=111240320-25072001>pipe 
through less or more if it's too long.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=111240320-25072001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=111240320-25072001>
<P><FONT size=2>Noah Dunker<BR>Systems Analyst/Technician<BR>Johnson County 
Community College </FONT></P></SPAN></FONT></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Peter Warrick 
  [mailto:peter@guest-teik.com]<BR><B>Sent:</B> Wednesday, July 25, 2001 2:54 
  PM<BR><B>To:</B> Fernando Gleiser<BR><B>Cc:</B> 
  freebsd-questions@FreeBSD.ORG<BR><B>Subject:</B> Re: Redhat Linux Route 
  command translated to FreeBSD?<BR><BR></FONT></DIV>
  <P>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. </P><BR>
  <P>ifconfig </P><BR>
  <P><FONT face=VT100>eth1:0 Link encap:Ethernet HWaddr 52:54:00:EC:F1:EB 
  </FONT></P>
  <P><FONT face=VT100>inet addr:1.2.3.1 Bcast:1.255.255.255 Mask:255.255.255.255 
  </FONT></P>
  <P><FONT face=VT100>UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</FONT> 
  </P><BR>
  <P>route </P><BR>
  <P><FONT face=VT100>Destination Gateway Genmask Flags Metric Ref Use Iface 
  </FONT></P>
  <P><FONT face=VT100>1.2.3.4 * 255.255.255.255 UH 0 0 0 eth1</FONT> </P><BR>
  <P>Now in FreeBSD... </P><BR>
  <P>ifconfig -au </P><BR>
  <P>en1: flags=8963&lt;UP,BROADCAST,b6,RUNNING,PROMISC,SIMPLEX,MULTICAST&gt; 
  mtu 1500 </P>
  <P>inet 1.2.3.1 netmask 0xffffffff broadcast 1.2.3.1 </P>
  <P>ether 00:00:c5:53:07:ac </P>
  <P>media: autoselect (100baseTX) status: active </P>
  <P>supported media: 10baseT/UTP 100baseTX 10baseT/UTP &lt;full-duplex&gt; 
  100baseTX &lt;full-duplex&gt; autoselect autoselect 10baseT/UTP </P><BR>
  <P>netstat -nr </P><BR>
  <P><FONT face=VT100>Routing tables </FONT></P><BR>
  <P><FONT face=VT100>Internet: </FONT></P>
  <P><FONT face=VT100>Destination Gateway Flags Refs Use Netif Expire 
</FONT></P>
  <P><FONT face=VT100>1.2.3.1/32 link#4 UC 0 0 en1 </FONT></P>
  <P><FONT face=VT100>1.2.3.4 0:0:c5:53:7:ac UHLS 0 0 en1 </FONT></P>
  <P><FONT face=VT100>127.0.0.1 127.0.0.1 UH 22 9587562 lo0 </FONT></P><BR>
  <P>I have gotten rid of all the other extraneous IPs of my network but that is 
  all the necessary info I can provide... </P><BR>
  <P>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. </P><BR>
  <P>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? </P><BR>
  <P>I hope this makes some sense.. </P><BR>
  <P>Thanks again for any help. </P><BR>
  <P>Pete </P><BR>
  <P>On Tuesday, July 24, 2001, at 05:15 PM, Fernando Gleiser wrote: </P><BR>
  <P>Let's say the interface's name is xl0 in FreeBSD, then you say </P><BR>
  <P>route add -host 1.2.3.4 -interface xl0 </P><BR>
  <P>Or, man route for more details. =0) </P><BR><BR>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fer </P><BR><BR><BR>
  <P>On Tue, 24 Jul 2001, Peter Warrick wrote: </P><BR>
  <P>Anyone have any idea what the direct translation of this redhat command 
</P>
  <P>would be to BSD?? </P><BR>
  <P>route add -host 1.2.3.4 dev eth1:0 </P><BR>
  <P>eth1:0 is an alias on the eth1 network. eth1:0's IP is 1.2.3.1. What </P>
  <P>that command does is say that 1.2.3.4 is directly connected to the </P>
  <P>eth1:0 network. This means that it is routing this 1.2.3.4 IP to </P>
  <P>1.2.3.1. Even though these addresses seem to be on the same subnet. They 
  </P>
  <P>actually aren't in my configuration. </P><BR>
  <P>Thanks for any help.. I've been stuck on getting this to work on my BSD 
</P>
  <P>box for about a month now. :( </P><BR>
  <P>Pete </P><BR>
  <P>To Unsubscribe: send mail to majordomo@FreeBSD.org </P>
  <P>with "unsubscribe freebsd-questions" in the body of the message 
</P><BR><BR></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C11543.A3168A00--

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?C18E28011272D41180AD00B0D0496C0801C021E8>