I've got a linux box, which I'm trying to make do some simple routing. I've have two subnets, 192.168.0.0/24 and 192.168.1.0/24, and I'd like to be able to route packets between these two. The router's ip is 192.168.0.6 and 192.168.1.6 on both subnets, and the default route for all should be 192.168.0.1. My current routing table is: (ignore 192.168.2.0)
and I've got "1" in /proc/sys/net/ipv4/ip_forward. Shouldn't this start to route by default, or do I need to add anything? I've started playing with quagga as I like the cisco-like interface, but for the moment I can't even do basic stuff. What am I missing?
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0.4
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0.3
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0.2
192.168.254.0 * 255.255.255.0 U 0 0 0 eth0
default nosey.mrmen.hom 0.0.0.0 UG 0 0 0 eth0.2
and I've got "1" in /proc/sys/net/ipv4/ip_forward. Shouldn't this start to route by default, or do I need to add anything? I've started playing with quagga as I like the cisco-like interface, but for the moment I can't even do basic stuff. What am I missing?