no internet from local wireless network

hello all,

I have a ‘main pc’ with internet working via DSL, a wireless router connected by eth0 to the main pc, and a laptop with a working wireless connection to the main pc through the router.

I can ssh to the laptop from the main pc, and from the laptop to the main pc; but I can not connect to the internet from the laptop

this is probably a simple thing to remediate, but it is eluding me for the moment … the setup did work before, but since installing suse 11.3 on the laptop, internet is unreachable on the laptop.

/etc/hosts: (IPs statically allocated)
192.168.0.14 wireless.local wireless ← this is the laptop
192.168.0.10 stille-pc.local stille-pc ← this is the main pc
192.168.0.1 router.local router ← this is the router


on the laptop:

ping 209.132.180.167

PING 209.132.180.167 (209.132.180.167) 56(84) bytes of data.
(no answer)

ping www . gnome . org (spaces added just for convenience here)

ping: unknown host www. gnome. org

route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0 wlan0

more /etc/resolv.conf

search local
nameserver 195.238.2.21
nameserver 195.238.2.22


on the main pc:


route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
91.176.99.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0


iptables -L (using an empty firewall script, in order to eliminate this element)

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


more /etc/resolv.conf

search local
nameserver 195.238.2.21
nameserver 195.238.2.22

if someone could possibly hint me to a way of solving this?

On 11/06/2010 04:36 PM, velsd99 wrote:
>
> hello all,
>
> I have a ‘main pc’ with internet working via DSL, a wireless router
> connected by eth0 to the main pc, and a laptop with a working wireless
> connection to the main pc through the router.
>
> I can ssh to the laptop from the main pc, and from the laptop to the
> main pc; but I can not connect to the internet from the laptop
>
> this is probably a simple thing to remediate, but it is eluding me for
> the moment … the setup did work before, but since installing suse 11.3
> on the laptop, internet is unreachable on the laptop.
>
> /etc/hosts: (IPs statically allocated)
> 192.168.0.14 wireless.local wireless ← this is the laptop
> 192.168.0.10 stille-pc.local stille-pc ← this is the
> main pc
> 192.168.0.1 router.local router ← this is the
> router
>
> --------------------------------------------------------------
> on the laptop:
> # ping 209.132.180.167
> PING 209.132.180.167 (209.132.180.167) 56(84) bytes of data.
> (no answer)
>
> # ping www . gnome . org (spaces added just for convenience here)
> ping: unknown host www. gnome. org
>
> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
> wlan0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> wlan0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0
> wlan0

If I understand your setup correctly, the wireless access point routes through
the PC. Thus. this default (UG) entry is wrong. This computer should route
through the Access Point/router, not the main PC, and the 192.168.0.10 entry
should be 192.168.0.1.

Is there a reason that you do not connect the access point directly to the modem
and connect the PC to one of the ethernet points on the router. Is it becaust
the AP/router does not have any switch ports?

well yes, this awkard setup is the result of me buying a wireless router that doesn’t accept USB for DSL input.

So the USB / DSL modem connects to the pc, the pc connects over eth0 to the wireless router, and the router connects over wifi to the laptop. :slight_smile:

but anyway, I happened to solve this in the meantime, sorry about this post then, but after two tiring evenings of getting everything working on the laptop, I didn’t check the obvious:
“echo 1 > /proc/sys/net/ipv4/ip_forward” on the main pc made everything come together …

thanks for your response!