Date: Sat, 15 Mar 2003 07:19:00 -0800 From: Daxbert <daxbert_news@dweebsoft.com> To: "W. J. Williams" <willardjwilliams@yahoo.com> Cc: "" <freebsd-questions@FreeBSD.ORG> Subject: Re: five networks Message-ID: <1047741540.3e734464b7f13@ra.dweebsoft.com>
next in thread | raw e-mail | index | archive | help
Quoting "W. J. Williams" <willardjwilliams@yahoo.com>: > 1. I would like to configure a separate network on five freebsd boxes. > > 192.168.0 > 192.168.1 > 192.168.2 > 192.168.3 > 192.168.4 > > > 2. My DSL router has network 192.168.0, I also have one of my fbsd boxes > in this network (192.168.0.2) > > 3. I can add the other machines to the 192.168.0 network, no problem, > using default router 192.168.0.1, broadcast 255.255.255.0, > > 4. I tried to configure 192.168.2.1 on one box, using > gateway_enable="YES", router_enable="YES", > defaultrouter=192.168.2.1....doesnt work. > defaultrouter is used to define the host's router of last resort. It doesn't configure any interfaces on the host. If you want a BSD host to act as a router, it's advised that you have more than one NIC, and that you configure those NICs with valid IPs and netmasks for each connected network. example: tl0 and fxp0 as interfaces... ifconfig_tl0="inet 192.168.1.10 netmask 255.255.255.0" ifconfig_fxp0="inet 192.168.2.1 netmask 255.255.255.0" defaultrouter="192.168.1.1" gateway_enable="YES" router_enable="NO" The defaultrouter assumes that you want to use the DSL router as the default gateway for this host. I've set router_enable to "NO", because from the nature of your question, and the lack of complexity in your network, I doubt that you are actually running any routing protocols (RIP, etc.) which would need routed running. You'd be better served with plain static routes on each gateway. You don't really provide enough info to help further. --daxbert 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?1047741540.3e734464b7f13>