Solved

Wireless card not getting route set correctly (Pretty sure)

Posted on 2003-11-16
7
563 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FTP File Transfer Failure 13 177
linux  centos   virtualization network quetion 6 82
How to get IPA working with samba on RHEL 6? 1 98
Iptables and mirroring ports 4 88
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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