public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] WAN->laptop1->router->laptop2 : no laptop1<->router  communication
Date: Sat, 14 Mar 2009 22:19:43 -0700	[thread overview]
Message-ID: <49bf44f10903142219k64be52c1x11aa9b7ac2c1765d@mail.gmail.com> (raw)
In-Reply-To: <49BC2C0D.8020300@f_philipp.fastmail.net>

>> 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	other threads:[~2009-03-15  5:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 21:30 [gentoo-user] WAN->laptop1->router->laptop2 : no laptop1<->router communication Grant
2009-03-14 19:50 ` [gentoo-user] " Grant
2009-03-14 22:13 ` [gentoo-user] " Florian Philipp
2009-03-15  5:19   ` Grant [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49bf44f10903142219k64be52c1x11aa9b7ac2c1765d@mail.gmail.com \
    --to=emailgrant@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox