-   Linux - Wireless Networking (
-   -   Internet access through router and wifi connection (

caudalie 01-13-2004 03:18 PM

Internet access through router and wifi connection
Hi to all experts !
Well I come to you very humbly after having spent hours and hours of unsuccessful nightly work.
The problem is the following : how to access the internet from a station (PC1) wifi linked to a linux station (PC2) itself Ethernet linked (cable) to a hub connected to a modem router ???

PC 1 ---- wifi ---- PC 2 ---- Hub ---- PC x

The IP configuration of the whole stuff is the following :

PC 1
running Win XP (OK, OK, please...)
Wifi PCIcard : DLink 520+
IP adress, netmask

PC 2
running Linux Mandrake 9.2
First interface : wlan0
= Wifi PCIcard : DLink 520+ (works perfectly under Mandrake 9.2 after module compilation !)
IP adress netmask

Second interface : eth0
= Ethernet card (SIS chip on Motherboard)
IP adress netmask

Modem Router
Bewan ADSL Cx Ethernet modem router
IP adress (THE gateway)

I can ping (wlan0 of PC2) from (PC1)
I can ping (router) from (eth0 of PC2)
I can't ping (PC2) from (PC1)
and of course
I can't ping (router) from (PC1) and of course access the internet, this is the main problem!

The only thing that worked was a successfull ping on (Ethernet on PC2) from (PC1) after having launched a ARP Proxy on eth0 and wlan0. But (router) remained invisible for PC1 even with the ARP proxy running.

I've tried many combinations in the routing table of PC2 using "route add..." but obviously not the good one* ! I feel it is a routing problem but... Would a bridge between the subnets be usefull ? Heeeeeeeelp !
* the default route is defined as using the gateway

The first relevant reply wins my eternal gratitude !

N.B : of course I could add a second ethernet card on PC2 and use it as a residential gateway but it would mean full time power for PC2. Moreover, now I've launched out a challenge to myself I must find a way to succeed... and find peacefull nights ! ;)

Thanks to everybody

caudalie 01-13-2004 03:22 PM

Hum ... the scheme does not appear as I drew it...
The link to the modem router and internet starts from Hub and not PC1 !

caudalie 01-15-2004 11:11 AM

Anybody interested in this issue ?

rocannon 01-22-2004 03:51 PM

you do know you're asking PC2 to act as a wireless access point/router, don't you? Do you have it configured to do that?

i have a home network set up with a wireless access point (AP) plugged into a router. All the wireless PCs connect to the router thru the AP; the rest of the PCs are ethernet cable to the router. The router handles all the routing/dhcp stuff as well as acting as a NAT firewall.

All times are GMT -5. The time now is 02:52 PM.