Solved

Wireless card not getting route set correctly (Pretty sure)

Posted on 2003-11-16
7
562 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
ID: 9761929
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
ID: 9764672
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
ID: 9766196
route add 192.168.1.0 MASK 255.255.255.0 192.168.1.1

0
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

 
LVL 24

Expert Comment

by:shivsa
ID: 9766210
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
ID: 9766348
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
ID: 9768892
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
ID: 9769463
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

943 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

19 Experts available now in Live!

Get 1:1 Help Now