I hope that wasn't unwelcome name dropping, but going through posts in
comp.os.linux.* I have found some by Mr. Hauck that indicate he has
accomplished exactly what I'm trying to do. Bluntly put, Mr. Hauck, if
you're out there, I'd appreciate any pointers you can offer. Of
course, if ANYONE *at* *all* can help me through this, you will be
greatly appreciated.
First, some background. I have an old IBM set up as the internet
gateway for my home network. It is a ZipSlack box with kernel 2.2.16.
IP forwarding and masquerading is configured and works. Internet is a
ppp connection through a modem. An ethernet card is installed, and is
plugged into a hub. Sharing the hub are the two household computers.
This gateway machine also has a Lucent Orinoco Silver card installed,
and we have a laptop equipped with a D-Link wireless card.
My problem is this--all client computers (the two primary machines on
the wired network, and the laptop via the wireless connection) can
access the internet just fine. They can all ping and telnet into the
gateway machine just fine. The two primary machines on the wired
network can ping each other and share Samba shares. But the wired
client machines can't see the laptop, and it can't see them.
Why won't my gateway machine route traffic between the laptop and the
wired boxes?
On the gateway machine, the ethernet card is eth0, and its IP address
is 192.168.1.6. The wireless card is eth1, its address is 192.168.2.6.
The two wired client boxes are 192.168.1.1 & 192.168.1.2, and the
laptop is 192.168.2.1
here's the executed parts of /etc/rc.d/rc.inet1 on the gateway machine:
-----------------------------------------------------------------------
HOSTNAME=`cat /etc/HOSTNAME`
ifconfig lo 127.0.0.1
route add -net 127.0.0.0 netmask 255.0.0.0 lo
ifconfig eth0 192.168.1.6 broadcast 192.168.1.255 netmask 255.255.255.0
ifconfig eth1 192.168.2.6 broadcast 192.168.2.255 netmask 255.255.255.0
-----------------------------------------------------------------------
Notice there are no "route add" statements in there for the NIC's. I
have tested operation both before and after manually issuing the
following commands:
-----------------------------------------------------------------------
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth1
-----------------------------------------------------------------------
Issuing those commands has no effect on the wireless to wired
communication (or lack thereof). However, if I don't issue them, doing
"netstat -r" *s a very sluggish response in displaying my routing
table. Here's what netstat -r tells me after I explicitly issue those
"route add" commands:
-----------------------------------------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
-----------------------------------------------------------------------
Any advice anyone has to offer on this would be very much appreciated!
P.S.
I will go ahead and mention my nagging fear. I am afraid someone will
tell me I have to put the NIC's in the gateway machine into
"promiscuous mode", which will probably turn out to not be possible for
the wireless card-- unless I am somehow able to find a downgrade for
the firmware, since Lucent seems to have disabled promiscuousity in
recent firmware versions.