1 |
>> My laptop is connected to a distant wireless signal with a strong |
2 |
>> antenna and I'd like to create a local wireless LAN using the distant |
3 |
>> wireless signal as the WAN. The layout would look something like |
4 |
>> this: |
5 |
>> |
6 |
>> WAN->(wireless)->laptop1->(ethernet)->router->(wireless)->laptop2 |
7 |
>> |
8 |
>> My travel router is wireless, has a LAN port, and can operate in |
9 |
>> Router, Client, or AP mode. I think AP mode is what I want. laptop2 |
10 |
>> can ping the router, but it can't ping laptop1. laptop1 can't ping |
11 |
>> the router. I don't know what my communication problem is between the |
12 |
>> router and laptop1. Here is my eth0 config for laptop1: |
13 |
>> |
14 |
>> config_eth0=( "192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" ) |
15 |
>> |
16 |
>> The travel router is in AP mode and configured like this: |
17 |
>> |
18 |
>> IP: 192.168.0.30 |
19 |
>> Subnet Mask: 255.255.255.0 |
20 |
>> Gateway: 192.168.0.1 |
21 |
>> |
22 |
>> I have dnsmasq and shorewall on laptop1 for DNS and NAT, but I can't |
23 |
>> use those until I get laptop1 talking to the router. Does anyone see |
24 |
>> what I'm doing wrong? |
25 |
>> |
26 |
>> - Grant |
27 |
>> |
28 |
> |
29 |
> Is it possible that you need different subnets for your AP's wired and |
30 |
> wireless connection? |
31 |
|
32 |
I tried with the WAN on ppp0 instead of wlan0 and it worked! |
33 |
|
34 |
The only iffy thing is I manually specify the eth0 gateway IP to match |
35 |
the gateway IP for ppp0 which was DHCPed by wvdial. Is there a way to |
36 |
make that more dynamic so I don't have to match the eth0 gateway IP |
37 |
and the DHCPed ppp0 gateway IP? |
38 |
|
39 |
Here are my configs: |
40 |
|
41 |
laptop1 eth0 (managed by wicd) |
42 |
IP: 192.168.0.1 |
43 |
Netmask: 255.255.255.0 |
44 |
Gateway: the.ppp0.gateway.ip |
45 |
DNS: the.ppp0.gateway.ip |
46 |
|
47 |
router/AP device |
48 |
IP: 192.168.0.30 |
49 |
Netmask: 255.255.255.0 |
50 |
Gateway: 192.168.0.1 |
51 |
|
52 |
laptop2 wlan0 (managed by wicd) |
53 |
IP: 192.168.0.31 |
54 |
Netmask: 255.255.255.0 |
55 |
Gateway: 192.168.0.1 |
56 |
DNS: 192.168.0.1 |
57 |
|
58 |
As Dan mentioned in the previous thread, should I be able to use a |
59 |
wireless network interface instead of the router/AP device? |
60 |
|
61 |
- Grant |