Date: Mon, 22 Jun 1998 08:26:11 -0500 (CDT) From: Joe Schwartz <rjoe@sierrahill.com> To: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: routing issue Message-ID: <199806221326.IAA05713@sierrahill.com>
next in thread | raw e-mail | index | archive | help
Folks, I want to use a FreeBSD machine as an Internet host with 2 ethernet cards. One card on an Internet subnet and the other card to service the internal private network. I'm having trouble getting it to route between the 2 interfaces. I have 3 machines setup for a test. machine a: ---------- ifconfig -a ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 207.8.11.165 netmask 0xfffffff8 broadcast 207.8.11.167 ether 00:a0:24:11:c7:19 machine b: ---------- ifconfig -a ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 207.8.11.166 netmask 0xfffffff8 broadcast 207.8.11.167 ether 00:10:4b:29:aa:a7 ep1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:10:4b:20:94:3a machine c: ---------- ifconfig -a ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:10:4b:29:ab:da machine a's default route is set to 207.8.11.166 machine c's default route is set to 192.168.1.1 machine b has a route between the 2 interfaces by issuing: (but doesn't work) route add -net 192.168.1.0 207.8.11.166 0 machine b can ping machine a and c machine a can ping: 207.8.11.166 and 192.168.1.1 but not 192.168.1.2 machine c can ping: 192.168.1.1 and 207.8.11.166 but not 207.8.11.165 ============================================================== In /etc/rc.conf I've got: gateway_enable="YES" router_enable="YES" Machine b ISN'T routing between the 2 interfaces. Any suggestions? ----- I have several machines set up like this for clients working perfectly under FreeBSD 2.1.x. Does FreeBSD 2.2.x expect a subtle difference somehow? Is my 'route add' command incorrect? HELP!! THANKS, Joe 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?199806221326.IAA05713>