LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 05-13-2006, 06:25 AM   #1
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Rep: Reputation: 0
wireless card active no connection to router


okay here is my problem in as much detail as possible........

I just installed SUSE 10.1 had it up and running with the open linksys at my friends house but it was terribly slow as i installed every single package possible. I tried removing packages manually and messed it all up. SO i reinstalled and started over and now it runs great i did install network and security package and i'm running KDE for gui with a lucent orinoco gold card and from what i can tell everything still comes up and linux can see the card the same.


Now the problem over here the dlink router is using wep enabled inet which i tried disabling but no such luck. i have no idea how to see if i have a ip address but i'm guess no because when i try to ping out all i get is CONNECT: network is unreachable i have put in the wep key and ssid using yast although i don't know if essid is the same as ssid although it is set the same

KWiFiManager says no acces point unavailabe local ip unavailable and it never changes frequencies and if i scan for networks nothing is found

KNetworkManager says no network device found which i believe isn't a good thing usually so can someone please help me as i am very confused

also am tired of stealing windows so i would really appreciate this to work this is my business machine
 
Old 05-13-2006, 10:43 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
OK, lets take this from the top. First thing to do is ignore Yast for the time being and use a console.

Check the outputs of iwconfig and ifconfig. The iwconfig should show you if a wireless card is actually recognized and configured and ifconfig will show you if you have an IP address. In fact, posting the outputs of those two commands will help in getting you up and running.

And welcome to LQ!
 
Old 05-13-2006, 12:55 PM   #3
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
eth1 is as fallows


iwconfig:

IEEE 802.11b ESSID:"" Nickname:"HERMES I"
Mode:Managed Frequency:2.412 GHz Access Point: None
Bit Rate:2mb/s Sensitivity:1/3
Retry limit:4 Rts thrff Fragment thrff
Encrypstion keyff
Power Managementff
Link Quality=0/92 Signal Level=134/153 Noise Level=134/153
Rx Invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx Excessive retries:0 Invalid misc:0 Missed beacon:0

which looks like to me none of my settings ever went into effect even with a reboot unless settings change from root to user which would be stupid but i guess possible idk lol i'm not the expert so it is there and it is wireless but no wireless settings for the router here and then i guess the other thing i'm worried about is once i get it working with this router will i still be able to roam to my friends router without messing it up?

ifconfig:

link encap:Ethernet HWaddr 00:02:2d:52:8c:df
up broadcast multicast MTU:1500 Metrick:1
Rx Packets:0 errors:0 dropped:0 overruns:0 frame:0
Tx Packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Rx bytes:0 (0.0 b) Tx bytes:0 (0.0 b)
Interrupt:3 Base address:0xc100
^this means abosolutly nothing to me other then it hasn't sent anything it looks like a monitor for network traffic through each device?? well thanx for having patients with me

and thankyou for the welcome
 
Old 05-13-2006, 01:07 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Just a friendly reminder: Punctuation is your friend.

You are definitely not configuring this card using Yast. So rather than monkey around with it, try configuring with iwconfig in a console. Check out the iwconfig man page, but basically, you're looking to do a couple of things:"

iwconfig eth1 essid YourSSIDName

If your wireless router isn't encrypted, that should get you associated. If you are using WEP encryption, you also need to add the WEP key

iwconfig eth1 key WEPHexKey

If you're using WPA encryption, you need to investigate how to use wpa_supplicant, which is a separate program.

Once the card is configured, you need to request an IP address:

ifup eth1 (at least I think that works in Suse)

If that is successful, you should see the IP address in the ifconfig output and you should be connected.
Quote:
i guess the other thing i'm worried about is once i get it working with this router will i still be able to roam to my friends router without messing it up?
You'll have no problem re-configuring for your friends router. I usually roam between 4 different networks and I have a configuration script for each one. I just boot, then run the script I need to connect to that network.
 
Old 05-13-2006, 01:33 PM   #5
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
how do i get konsole into root without signing into root?
 
Old 05-13-2006, 01:53 PM   #6
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
asside from the fact that i can't edit it outside of root at the moment i am connected and now can't get a dhcp address but you are helping greatly and i appreciate it thank you

we are getting somewhere now i just have to get a dhcp address
 
Old 05-13-2006, 02:02 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Quote:
how do i get konsole into root without signing into root?
You use the su command to do that. Most people usually use su - (note the -) because that also loads root's environment variables.

Quote:
i am connected and now can't get a dhcp address
I think that Suse uses the ifup script to get an ip address. So once you're in root, try ifup eth1 and see what that does. Alternatives would be dhclient eth1 or dhcpcd eth1. I'm just not sure what dhcp client Suse uses.

If DHCP is giving you fits, you can always try assigning an IP address. There are three things you need to do to get this to work:

1)ifconfig eth1 xxx.xxx.xxx.xxx Just replace xxx with the IP address you want to use.
2) route add default gw yyy.yyy.yyy.yyy and replace yyy with the IP address of your router
3) Edit /etc/resolv.conf to include your ISPs nameservers, with one nameserver per line:

nameserver xxx.xxx.xxx.xxx And replace xxx with the IP address of the nameserver. Sometimes you can get away with having your router's IP address as the nameserver.
 
Old 05-13-2006, 02:07 PM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You can open a terminal program such as "konsole" and use the su command. You will need to enter the root password.
What I did is set up my /etc/sudoers file so that I can precede commands with the sudo command to run them as root. The visudo program is used to edit this file, and it has commented examples. You may be able to do what you want by simply removing the comment character (#), and later making yourself a member of the "wheel" group.

You might take a quick look at the output of the command "iwlist eth1 scan". This will scan for Access Points, and if it lists at least one, that is a good sign that the wireless device is working.

After you su to root, you might want to take a look the /etc/sysconfig/network/ifcfg-eth1 file.
Only root has read access to this file, because it contains the secret keys.

Here is an edited (to remove key info) version of mine:
Code:
BOOTPROTO='dhcp'
BROADCAST=''
IPADDR=''
MTU=''
NAME='Wireless Network Card'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='yes'
WIRELESS_AP='00:14:BF:13:0D:9B'
WIRELESS_AUTH_MODE='psk'
WIRELESS_BITRATE=''
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL=''
WIRELESS_CLIENT_CERT=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_ESSID='mynet'
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0='h:IAmNotUsingTheseKeys'
WIRELESS_KEY_1='h:AnymoreBecauseTheyAreFor'
WIRELESS_KEY_2='h:WEPAndIAmUsingWPA-PSKNow'
WIRELESS_KEY_3='h:AAAAAAAAAAAAAAAAAAAAAAAA'
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_NICK='hpamd64'
WIRELESS_NWID=''
WIRELESS_POWER='no'
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''
WIRELESS_WPA_PSK='abcdefg01234567890abcdef0123456789abcdefg'  # This was 64 characters long before editing.
_nm_name='static-0'
PREFIXLEN=''
This is the file that YaST's network interface configuration program produces. Changes made in this file will be reflected in subsequent YaST dialogs. It is always a good idea to run " /sbin/SuSEconfig" as root after editing a configuration file directly. The WIRELESS_WPA_PSK entry should match the routers WPA-PSK key. I used a 64 digit hexadecimal number I generated manually, and cut and pasted it to the routers setup web based interface so that the two numbers would match.
You could use this oneliner to generate a random key:
Code:
dd if=/dev/random bs=1 count=32 | od -t x1 | sed -e 3d -e 's/^.\{7\}//' -e 's/ //g' | tr -d '\n'; echo
 
Old 05-13-2006, 02:45 PM   #9
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
thanx jschiwal but thats all a bit complicated right now

hangdog42 ok dhcp sent me a ip address but now i can't ping anything in my local network this is starting to anger me greatly cause i connected right up to my friends network and out to the internet without touching nething before i don't understand why now that it has a ip and a connection acording to it why it still like this i get nothing but destination host unreachable

also in firefox instead of site unreachable it just sits there like its finding the page but doesn't wanna goto it
 
Old 05-13-2006, 02:56 PM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
That sounds like either the gateway didn't get set or /etc/resolv.conf is empty. Check the output of route -n (and post it if you need to). Also have a look in /etc/resolv.conf and see if there is anything there.

By the way, did you use ifup or one of the other commands to get an IP address?
 
Old 05-13-2006, 03:16 PM   #11
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
ok route -n says

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 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1

i don't understand how i have to ips if thats what its saying and why the gateway is assigned without an ip again another table i don't understand i have rebooted and started over completely with all programs ifup,dhclient,and dhcpcd
 
Old 05-13-2006, 03:17 PM   #12
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
idk why it deleted all the spaces i hope you can read that
 
Old 05-14-2006, 07:23 AM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
If your router's IP address is 192.168.0.1, then route is fine and that is not the problem.
Quote:
i don't understand how i have to ips if thats what its saying and why the gateway is assigned without an ip again another table i don't understand i have rebooted and started over completely with all programs ifup,dhclient,and dhcpcd
I have absolutely no idea what you are trying to say here. Let me repeat, USE PUNCUTATION. Take a few minutes and write a proper sentence. Using nothing but run-on words makes your stuff incredibly annoying to read and impossible to decipher.
 
Old 05-15-2006, 01:34 AM   #14
djpacman
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I am terribly sorry about that I was getting quite tired of linux for one day but am all better now. Anyways.....I am using a windows box as a router for my dial up connection. The way I have it set up it runs exactly like a router. My question is would linux not see that for some reason as apposed to a router and what would be the problem. I am over at back at my friends now where I live during the week and the second I recieved a ip address from the linksys router here I had no problems what so ever connecting right out to the internet
 
Old 05-15-2006, 07:15 AM   #15
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Since your laptop connects right up to your friends router, it seems likely that the Windows box is doing something funny. So the things to check:

1) That 192.168.0.1 is actually the IP address on the LAN side for your Windows box. If that gateway is set incorrectly, you aren't going anywhere.

2) That /etc/resolv.conf actually has some nameservers in it. That is supposed to be set up by the DHCP process, but it may not be.

3) As jschiwal pointed out, run iwlist eth1 scan to make sure your linux box sees the Windows access point

4)Post the outputs of iwconfig eth1 and ifconfig eth1 and maybe we can spot some problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless card..Wireless router.. Slackware 10.2 ..Problems with Internet Connection. Storm Bringer Linux - Wireless Networking 4 03-23-2006 06:25 AM
wireless connection doesn't stay active after reboot sublyme718 Linux - Wireless Networking 1 11-07-2005 09:34 PM
need help to make card active & respond to the wireless network southamptonfc Linux - Newbie 6 12-09-2004 11:40 PM
Active ethernet card, no connection toegrim Linux - Networking 1 10-15-2003 03:55 PM
wireless router to wireless router connection questions mister_math Linux - Wireless Networking 0 08-06-2003 01:50 PM


All times are GMT -5. The time now is 06:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration