Re: wifi network connection
On 12/25/07, Mihira Fernando <mihiratheace@gmail.com> wrote:
> On Mon December 24 2007 11:02 am, hce wrote:
> >
> > Right, that was missing on my laptop. Could you please explain more
> > how to enable the IP formward on my laptop (an example of commands
> > will be better).
> >
> To enable IP Forwarding, run (as root)
> # echo "1" > /proc/sys/net/ipv4/ip_forward
>
> (you need to run this everytime the system reboots )
>
> [snip]
> >
> > I'll use the wifi router's DHCP server.
> Then in the wifi router's DHCP configuration, set the Gateway and name server
> to Laptop's ethernet IP address.
> >
> > > Goes withut saying that laptop must have a caching dns service such as
> > > dnsmasq for this to work.
> >
> > Right, please also explain more, or an example of commands.
> install dnsmasq. its a lightweight dns caching server.
>
> # aptitude install dnsmasq
>
> in its default config, it will take name servers as given in resolv.conf so it
> should just work 'out of the box' in your case.
>
> That should get things going.
I did as per above, then did a reboot on my Debian laptop and ping
from my desktop in wifi local network:
# ping -c 2 www.google.com
PING www.l.google.com (209.85.175.147): 56 data bytes
--- www.l.google.com ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
It seems that the DNS works, but still could not get through the
Internet via my laptop. The laptop does not formward packges to ppp0,
something seems still missing in my loptop?
If I plug an Ethernet port from an ADSL modem to the wifi router, that
works. So, Iit seems to me that the wifi local network setting is
fine, the problem of setting is still in the debian laptop. Please see
following informaiton of my laptop status:
$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
139.134.108.242 * 255.255.255.255 UH 0 0 0 ppp0
192.168.5.0 * 255.255.255.0 U 0 0 0 eth1
default * 0.0.0.0 U 0 0 0 ppp0
$ /sbin/ifconfig
eth1 Link encap:Ethernet HWaddr 00:20:E0:64:6E:0A
inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::220:e0ff:fe64:6e0a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1110 (1.0 KiB) TX bytes:1040 (1.0 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:144.139.45.157 P-t-P:139.134.108.242 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3872 errors:0 dropped:0 overruns:0 frame:0
TX packets:3609 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1058759 (1.0 MiB) TX bytes:460017 (449.2 KiB)
Is there any debug messages can see on the debian laptop when I ping
from wifi local network? There was noting shown from dmesg from the
laptop when I ping from the wifi local network.
Thanks all responses.
Jim
Reply to: