>> My laptop is connected to a distant wireless signal with a strong
>> antenna and I'd like to create a local wireless LAN using the distant
>> wireless signal as the WAN.  The layout would look something like
>> this:
>>
>> WAN->(wireless)->laptop1->(ethernet)->router->(wireless)->laptop2
>>
>> My travel router is wireless, has a LAN port, and can operate in
>> Router, Client, or AP mode.  I think AP mode is what I want.  laptop2
>> can ping the router, but it can't ping laptop1.  laptop1 can't ping
>> the router.  I don't know what my communication problem is between the
>> router and laptop1.  Here is my eth0 config for laptop1:
>>
>> config_eth0=( "192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" )
>>
>> The travel router is in AP mode and configured like this:
>>
>> IP: 192.168.0.30
>> Subnet Mask: 255.255.255.0
>> Gateway: 192.168.0.1
>>
>> I have dnsmasq and shorewall on laptop1 for DNS and NAT, but I can't
>> use those until I get laptop1 talking to the router.  Does anyone see
>> what I'm doing wrong?
>>
>> - Grant
>>
>
> Is it possible that you need different subnets for your AP's wired and
> wireless connection?

I tried with the WAN on ppp0 instead of wlan0 and it worked!

The only iffy thing is I manually specify the eth0 gateway IP to match
the gateway IP for ppp0 which was DHCPed by wvdial.  Is there a way to
make that more dynamic so I don't have to match the eth0 gateway IP
and the DHCPed ppp0 gateway IP?

Here are my configs:

laptop1 eth0 (managed by wicd)
IP: 192.168.0.1
Netmask: 255.255.255.0
Gateway: the.ppp0.gateway.ip
DNS: the.ppp0.gateway.ip

router/AP device
IP: 192.168.0.30
Netmask: 255.255.255.0
Gateway: 192.168.0.1

laptop2 wlan0 (managed by wicd)
IP: 192.168.0.31
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS: 192.168.0.1

As Dan mentioned in the previous thread, should I be able to use a
wireless network interface instead of the router/AP device?

- Grant

Reply via email to