Trying to make Red Hat 9 router

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,613
4,532
75
And it's not working. I'm trying to connect two windows boxes through the Red Hat box I just set up.

I connected the three boxes with ethernet cards and crossover cables like so:
(I could use a switch, but I had all the materials and I want to learn how to set this up.)

Win1
192.168.0.1
|
192.168.0.7
Red Hat 9 box
192.168.1.7
|
192.168.1.2
Win2

My Kernel routing table is:

Destination.....Gateway.........Genmask.........Flags...MSS.Window..irtt.Iface
192.168.1.0.....*...............255.255.255.0...U.........0.0..........0.eth1
192.168.0.0.....*...............255.255.255.0...U.........0.0..........0.eth0
169.254.0.0.....*...............255.255.0.0.....U.........0.0..........0.eth1 (something with IPV6? It shouldn't matter)
127.0.0.0.......*...............255.0.0.0.......U.........0.0..........0.lo
default.........192.168.0.1.....0.0.0.0.........UG........0.0..........0.eth0

Edit: Oh, yes, my problem. Both Windows boxes can see both addresses of the Linux box, but neither Windows box can see the other.

Any idea what I'm doing wrong?

Thanks!
 

cmetz

Platinum Member
Nov 13, 2001
2,296
0
0
IP forwarding is off by default, you must enable it to forward between subnets. This is a good thing - there's historical precedent of Sun boxes that would magically start routing when they had more than one Ethernet interface, and those boxes caused all sorts of grief in the field.

Try:

echo 1 >/proc/sys/net/ipv4/conf/all/forwarding

depending on kernel version, you might have to do each interface separately for it to actually take:

echo 1 >/proc/sys/net/ipv4/conf/eth0/forwarding
(etc.)
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,613
4,532
75
It worked! Thanks! :)

They never taught me *that* in networking class.