Networking problem UPDATED

Chris Dillon cdillon at wolves.k12.mo.us
Fri Mar 5 09:04:26 PST 2004


On Thu, 4 Mar 2004, Steve Ireland wrote:

> The two interfaces are on different subnets: 192.168.0.0/24 and
> 192.168.10.0/24. You need to either add a static route between them
> or change their netmasks to at least a /21.

Huh?  They _must_ be on different subnets.  You can't route one subnet
across multiple network interfaces.  Besides, a router always knows
how to route packets between its own directly-attached networks, no
additional routes are necessary.

The problem here is that a route needs to be added for 192.168.10.0/24
-> 192.168.0.100 in the upstream router(s), since the upstream
router(s) do not currently know to send any packets destined for
192.168.10.0/24 to 192.168.0.100 for delivery.  The upstream router is
currently sending these packets to its own default gateway, which is
likely even further upstream.  IP routers aren't mind-readers, you
have to tell them exactly where to send packets, but usually that is
very simple.

Running a routing protocol (such as RIP) on both the FreeBSD box in
question and the upstream router(s) would automatically add the same
route for you, but that is unnecessary in such a simple network
configuration.

-- 
 Chris Dillon - cdillon(at)wolves.k12.mo.us
 FreeBSD: The fastest, most open, and most stable OS on the planet
 - Available for IA32, IA64, AMD64, PC98, Alpha, and UltraSPARC architectures
 - PowerPC, ARM, MIPS, and S/390 under development
 - http://www.freebsd.org

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?



More information about the freebsd-questions mailing list