Date: Mon, 19 Apr 1999 00:05:20 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: a-karev@geocities.com (Karev Andrew) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Routing Message-ID: <199904190405.AAA06977@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <3719C310.D2BEF648@geocities.com> from Karev Andrew at "Apr 18, 99 03:33:37 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Karev Andrew wrote,
> Hi, All
>
> I still cannot do routing with my 2.2.7 box
>
> I just install it again and set "gateway_enable=YES". No routing tables
> changes are made. No routed loaded.
If you look at /etc/rc.network, you'll see that your modification to
gateway_enable,
if [ "X$gateway_enable" = X"YES" ]; then
echo -n ' IP gateway=YES'
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
Just does a sysctl.
> ifconfig -a:
> ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
> ether ....
> ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet 222.222.222.1 netmask 0xffffff00 broadcast 222.222.222.255
> ether ....
I don't know what the output of 'ifconfig' has to do with this. Making
a machine a gateway is independent of how the interfaces are
configured.
> Just want to ask one question. What also do I need?
What are you trying to do?
--
Crist J. Clark cjclark@home.com
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?199904190405.AAA06977>
