Solved

Wireless card not getting route set correctly (Pretty sure)

Posted on 2003-11-16
7
560 Views
Last Modified: 2010-03-18
I am having a problem getting a wireless LAN card to work in SuSE Linux 9.0.  This is the first time I have tried to get a wireless lan card working in any linux version.  Anyway, I have the card working to the point that I can reach the access point.  I know this because I can open up a browser, direct it to the access point web configuration page and configure away.  Of course I can ping the access point too.  But, I cannot reach beyond the router.  Pining anything outside, like my ISPs DNS server, gives me "not accessable".

I am using DHCP, from the access point, to configure both my wired lan and wireless lan connections.  When I have both connections active the response to "route -nNvee" is:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0    0     0      0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0     0     0      0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0     0     0      0

When I have only the wireless card active I get the first route line only.  So, it looks like for some reason the routing does not get fully set up for the wireless lan.  And the obvious question is - why not, and how can I get the route to be set up correctly?  Anybody got any ideas?
0
Comment
Question by:robertjbarker
  • 3
  • 2
  • 2
7 Comments
 
LVL 2

Assisted Solution

by:asbharadwaj
asbharadwaj earned 125 total points
Comment Utility
When you have only the wireless card active, you do not have a default route
add a default route with gateway 192.168.1.1 on wlan0
0
 
LVL 6

Author Comment

by:robertjbarker
Comment Utility
Yes, I tried to do that by setting the default gateway in the Yast network card configuration dialog.  It did not take for some reason. (It would be nice to know why it did not, and why the dhcp did not in the first place since it did for eth0)

So, is there another method for setting that default route?  Two methods come to mind:
 1) Using the "route" command (I suppose I could look up the syntax, but if you know it off the top, could you tell me)
 2) I'm sure there is a configuration file somewhere I could edit directly.  Might you know where it is?
0
 
LVL 24

Expert Comment

by:shivsa
Comment Utility
route add 192.168.1.0 MASK 255.255.255.0 192.168.1.1

0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 24

Expert Comment

by:shivsa
Comment Utility
or
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
0
 
LVL 24

Accepted Solution

by:
shivsa earned 125 total points
Comment Utility
also please note, before adding route, first delete the existing route.

#route del default
#route
#route add default gw 192.168.1.1 netmask 255.255.255.0 dev eth0(or u can use route add default gw 192.168.1.1).
# route


0
 
LVL 2

Assisted Solution

by:asbharadwaj
asbharadwaj earned 125 total points
Comment Utility
Replace the eth0 by wlan0 in the cmd given by shivsa
since you want to have the default route on the wireless lan card.
0
 
LVL 6

Author Comment

by:robertjbarker
Comment Utility
When this was my starting point (route -nNvee):

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0    0     0      0

The command that worked was:

ip route add default via 192.168.1.1 dev wlan0

After which I got (route -nNvee):

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0    0     0      0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0    0     0      0

With the same starting point as above, when I entered "route del default" I got "SIOCDELRT: No such process"
After this, when I entered
"route add default gw 192.168.1.1 netmask 255.255.255.0 dev wlan0"
I got
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt
0.0.0.0         192.168.1.1     255.255.255.0   UG    0      0        0 wlan0    0     0      0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0    0     0      0

Which did not give me access beyond my access point/wireless router.  I have feeling that specifying "netmask 0.0.0.0" may have given me better results.

But, anyway, things work now, and thanks for the pointers.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now