Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 1999 12:02:16 +0900
From:      "Kayo" <mimiandi@bh.mbn.or.jp>
To:        <freebsd-questions@freebsd.org>
Subject:   Gateway with two real IPs?
Message-ID:  <001901bf4384$225b0e00$0301010a@kayo>

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

[-- Attachment #1 --]
 Hi,

 I am trying to set up gateway using FreeBSD.
 I aleady enable Gateway_enable to yes
 and set sysctl -w net.inet.ip.fastforwaring=1

 I am trying to do this with two real ips
 (both on same network) since my network uses
  only real ips.

  Here is how my nics are set up in FreeBSD

  % ifconfig -a
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet *.*.*.3 netmask 0xffffff80 broadcast *.*.*.127
        ether 00:a0:c9:ca:ac:df
        media: autoselect (10baseT/UTP) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet *.*.*.4 netmask 0xffffffff broadcast *.*.*.127
        ether 00:90:27:66:da:7a
        media: autoselect (10baseT/UTP) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP

 First Nic in FreeBSD goes to the  hub that is connected
 to the router and Second Nic in FreeBSD goes to
 the hub that is connecting the network.


Here is the topology of the network.

internet - router - hub - freebsd - hub - network

Any help is appreciated

Thanks in advance.




[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-2022-jp" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>&nbsp;Hi,&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;I am trying to set up gateway using FreeBSD. 
</FONT></DIV>
<DIV><FONT size=2>&nbsp;I aleady&nbsp;enable Gateway_enable to yes </FONT></DIV>
<DIV><FONT size=2>&nbsp;and set sysctl -w net.inet.ip.fastforwaring=1 
</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;I am trying to do this with t</FONT><FONT size=2>wo real 
ips </FONT></DIV>
<DIV><FONT size=2>&nbsp;(both on same network) since my 
network&nbsp;</FONT><FONT size=2>uses </FONT></DIV>
<DIV><FONT size=2>&nbsp; only real ips.&nbsp; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; Here is how my nics are set up in FreeBSD</FONT></DIV>
<DIV><FONT size=2>&nbsp;</FONT><FONT size=2>&nbsp;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;% ifconfig -a<BR>fxp0: 
flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu 
1500<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet *.*.*.3 netmask 
0xffffff80 broadcast *.*.*.127<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ether 00:a0:c9:ca:ac:df<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; media: 
autoselect (10baseT/UTP) status: 
active<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supported media: autoselect 
100baseTX &lt;full-duplex&gt; 100baseTX 10baseT/UTP &lt;full-duplex&gt; 
10baseT/UTP<BR>fxp1: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; 
mtu 1500<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet *.*.*.4 netmask 
0xffffffff broadcast *.*.*.127<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ether 00:90:27:66:da:7a<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; media: 
autoselect (10baseT/UTP) status: 
active<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supported media: autoselect 
100baseTX &lt;full-duplex&gt; 100baseTX 10baseT/UTP &lt;full-duplex&gt; 
10baseT/UTP<BR></FONT></DIV>
<DIV><FONT size=2>&nbsp;First Nic </FONT><FONT size=2>in FreeBSD goes to 
the</FONT><FONT size=2>&nbsp;&nbsp;hub that is connected </FONT></DIV>
<DIV><FONT size=2>&nbsp;to the router and Second Nic in FreeBSD goes to 
</FONT></DIV>
<DIV><FONT size=2>&nbsp;the hub that is connecting the network. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Here is the topology of the network.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>internet - router - hub - freebsd - hub - network</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Any help is appreciated</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Thanks in advance.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001901bf4384$225b0e00$0301010a>