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
This is a multi-part message in MIME format.

------=_NextPart_000_0015_01BF43CF.914E9200
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

 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.




------=_NextPart_000_0015_01BF43CF.914E9200
Content-Type: text/html;
	charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_0015_01BF43CF.914E9200--



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?001901bf4384$225b0e00$0301010a>