FreeBSD Gateway, Crossover

Robert Bonomi bonomi at
Sun Dec 4 22:55:46 UTC 2011

> From: APseudoUtopia <apseudoutopia at>
> Hello,
> I'm trying to setup a small home network, It consists of my FreeBSD
> 9.0-RC2 box connected to my modem (just a modem, not modem/router) and
> two other systems connected directly via ethernet to the freebsd box.
> I'm able to connect to the internet with the FreeBSD box. I can get an
> IP via DHCP from my ISP. However, I can't seem to figure out how to
> setup the gateway routes and the IP addresses for the other system.
> I'd like to have the internal network be on I have 2x
> 2-port NICs in the freebsd box.
> em0 - Internet -
> em1 - System1 -
> em2 - System2 -
> I'm kindof lost here. I've played with it a bit, trying to set
> on em1 and em2, then setting the specific IP address on
> system1 and system2 respectively. I've also tried manually adding
> routes from to (my external IP) to no avail.
> The system1/2 boxes cannot ping the freebsd box, nor vise-versa. That
> implies it's not a routing problem, but a problem with the systems
> getting a proper IP address.
> Anyone have any tips?

Other than "don't do it that way", you mean?  <grin>

Having two different interfaces with the same 'network' configuration,
Where either address -cannot- reach *every* host on that 'network'


IP addresses:
  Assign em1
  Assign em2
  Assign System1 
  Assign System2   

  System1; default route
  System2; default route

  Server:  default route
	   (should have auto routes for and

If you _really_ want everything on the same internal network, the easiest
way is to put in an ethernet hub/switch, and connect everything to that
hub/switch -- only 1 interface per device.

More information about the freebsd-questions mailing list