LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   wireless routing problem (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wireless-routing-problem-36960/)

nostrings 12-01-2002 09:39 AM

wireless routing problem
 
I'm having a bit of a routing problem with my wireless linux laptop.
I have a small network comprised of:
linksys router
pc
Linksys Access point
Linux laptop with WPC11 wireless card.

With the help of finegan's postings I've fianlly been able to get the wireless card to work. I am now able to ping any machine within my local network (192.168.1.x). However I can not reach anything outside my network (internet). The cabled PC works just fine.


If I try to ping a host outside my local network I immediately get a "connect: Network is unreachable" message.

My routing table has two entries:

Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0


As you can see the use column always shows 0. I can't seem to figure out why the mcahine is not directing traffic to this gateway.

if I run tcpdump -i eth0 I can see network activity when I ping a local host but if I attempt to ping a host outside my network I get no traffic at all. So I guess that my machine is just immediately assuming that it doesn't know how to reach the destination address and not bothering to hand it off to the router.
Weird huh?

Any help, insight or suggestions would be greatly appreciated.


Thanks,
-nostrings

btw: my access point (linksys WAP11) is configured for a gateway of 192.168.1.1 (the same as my local netwotk gateway)

clavius 12-01-2002 11:07 AM

Re: wireless routing problem
 
Quote:

Originally posted by nostrings

My routing table has two entries:

Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
# route del -net 0.0.0.0 netmask 255.255.255.0 gw 192.168.1.1
# route add default gw 192.168.1.1

Now it have to work. A default route NEVER have another netmask than 0.0.0.0. Check out your configuration.

nostrings 12-01-2002 11:26 AM

Claudiu,


You were absolutely right. I made the change you suggested and now I'm up and running.

Fantastic.

Thanks for the help.

-nostrings


All times are GMT -5. The time now is 01:46 AM.