routing between wireless and ethernet
I have an Ethernet LAN consists of 2 PC's (RH6.2 & RH8.0) and a Laptop (Win2000). I want to connect another PC (Win2000) to the LAN over wireless. To do this i have bought 2 PCI-WLAN Cards which are installed and configured right so far. I don't want to use any Access-Point or Wireless-Router hardware, so I plugged one card into the RH8-Box and running it with hostAP in Ad-Hoc Mode. My ethernet-LAN is 192.168.0.0 and my wireless-LAN is 192.168.1.0. The RH8-Box should act as a gateway from wireless to Ethernet, so it has a ethernet-card(eth0) with 192.168.0.2 and a wireless(wlan0) with 192.168.1.1. On my new Windows-Box which I would connect to the LAN over wireless i have an IP 192.168.1.2 and a default gateway to 192.168.1.1. When I ping from 192.168.1.2 to 192.168.1.1 it is OK, even so when I ping to 192.168.0.2 (which is the same box but other interface). Hence my connection to the RH8-Gateway is OK. But when i want to reach(ping) other hosts in the ethernet-LAN, e.g. 192.168.0.3 or 192.168.0.1 those are unreachable. I have tried several things with the static routing-table on my gateway(192.168.1.1-192.168.0.2) which looks currently like follows:
Dest. | Gateway | Netmask | Device
127.0.0.0 | 0.0.0.0 | 255.0.0.0 | lo
192.168.1.0 | 0.0.0.0 | 255.255.255.0 | wlan0
192.168.0.0 | 0.0.0.0 | 255.255.255.0 | eth0
On one of my other Linux-Ethernet-Boxes i have added a route
192.168.1.0 | 192.168.1.1 | 255.255.255.0 | eth0
to forward requests to 192.168.1.0-LAN to Gateway 192.168.1.1.
My general question is: Do I need any router-software (e.g. routed) running on my RH8-Gateway to achieve wireless-to-ethenet-routing? I am also aware of the possibility of ethernet-bridging, but don't want to try this.
Hope things aren't to fuzzy, and clear to understand. Hope also I haven't forgotten something.
so far .... puppetmaster
|