PDA

View Full Version : How To Connect to internet with wireless card


banner
2005-05-04, 09:13 PM CDT
I would like to know how to connect to the internet with my wireless card. let me give you the details. I have two ethernet cards one pci wireless card and the other normal type. The normal type connects to my thin clients wich is ether 0 my wirless is ether 1 is working and is activated.

Now how do i get the wirless card to connect to the internet so that i can start surfing the net. I am a newbie so please be gentle on the lingo and if possible a step by step processs please.

Do i have to use the internet connection wizard to get it to work, even though i tried that i keep getting connection refused, and i did check the security level of the eth1 and it is checked as trusted. I have been at this problem for 2 days and still no luck for me.

any help would be greatly appreceated.

ghenry
2005-05-06, 03:33 AM CDT
Do you have a wireless router?

You need to explain your network setup a bit more in order for us to help.

number8838
2005-07-07, 07:26 PM CDT
I have a similar problem.

My (D-Link) DWL-G510 Wireless Network Adapter is (finally) set up and active.
I can ping my wireless router (also D-Link) but if I type (in Firefox) 192.168.0.1, which is D-Link's Network Router IP, I get a connection refused message.

I'm running FC4 and I like to stay out of the terminal whenever possible (complete newb) so any GUI tips will be wonderful--not to say I won't accept command line advice, I just want this thing to work!

thanks

crackers
2005-07-07, 08:58 PM CDT
I think you have to use the wired interface to initially set up the WAP? Just guessing...

andre@home
2005-07-08, 03:58 AM CDT
if you limit yourself to GUI... you may some problems in installing wlan...
You will have to post atleast the output of several things.
Look for examples in the Q and A of others.
(you may look at the ndiswrapper solution I've worked out, but others have done similar things too).
So use the search...

Scruffy
2005-07-08, 04:21 AM CDT
... but if I type (in Firefox) 192.168.0.1, which is D-Link's Network Router IP, I get a connection refused message.
thanks

Are you sure the IP address is 192.168.0.1 ? The standard default router address for most wireless routers is 192.168.2.1 .

With regards to getting your wireless cards to work I have also been trying this with FC4. I have tried with a Belkin Wireless PCIMIA card and also a Belkin Wireless USB stick. I have tried two different ways and both have been successful.

The first way, which is the easiest, would eventually cost $20 (30 day free trial to start with). Go to www.linuxant.com for more details.

The second way, ndiswrapper, has no cost. YOU DO NEED THE GCC COMPILER TO BE INSTALLED FOR THIS ONE. The project is on Sourceforge (http://sourceforge.net/projects/ndiswrapper/). Download the ndiswrapper files and then follow these instructions: http://www.linuxquestions.org/questions/history/323739 (can't find instructions on this forum).

Both worked with no problems for me and I am a complete Linux newbie!

flosofl
2005-07-08, 05:01 AM CDT
if you limit yourself to GUI... you may some problems in installing wlan...
You will have to post atleast the output of several things.
Look for examples in the Q and A of others.
(you may look at the ndiswrapper solution I've worked out, but others have done similar things too).
So use the search...
Well, without a whole lot more info this one is kinda tough to narrow down. Contrary to a previous post D-Link does default to 192.168.0 Class C network. The fact you can ping the router tells me you are negotiating DHCP correctly and your encryption key (if any) is set correctly. Couple of things that may tell us what is happening:

What is the output of /sbin/ifconfig <interface>
What is the ouput of /sbin/iwconfig<interface> NOTE: obscure/remove the encryption key in your post if you run this as root.
Can you get to external web pages?
Can you ping external sites (either with FQDN or IP addresses)


My guess? You have MAC filtering enabled and haven't added this adapter to the list. You can still get an address via DHCP and access your internal network, but the router will not let you out of the network or access the admin web app on the router until the MAC address is in the table. You will either have to add the MAC address or turn off filtering (you'll have to use another computer that has access or use a cable to connect to the device).

flosofl
2005-07-08, 05:02 AM CDT
Crud... I replied to the wrong post. Sorry about that.

number8838
2005-07-08, 08:46 PM CDT
Here's what I get:

[root@localhost ~]# ifconfig ath0
ath0 Link encap: Ethernet HWaddr 00:11:95:c3:01:9e
inet addr:192.168.0.1 Bcast: 192.168.0.255 Mask: 255.255.255.0
inet6 addr: fe80::211:95ff:fec3:19e/64 scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: 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: 199
RX bytes: 0 (0.0 b) TX bytes: 0 (0.0 b)
Interrupt: 3 Memory: c8940000-c8950000

and:

[root@localhost ~]# iwconfig ath0
ath0 IEEE 802.11 ESSID: "HOME" Nickname: "localhost.localdomain"
Mode: Managed Frequency: 2.412 GHz Access Point: FF:FF:FF:FF:FF:FF
Bit Rate: 1Mb/s Tx-Power: 50 sBm Sensitivity=0/3
Retry: off RTS thr: off Fragment thr: off
Encryption Key: off
Power Management: off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid: 0 Rx invalid crypt: 0 Rx invalid frag: 0
Tx excessive retries: 0 Invalid misc: 0 Missed beacon: 0

HOME is the SSID. There is no ecryption enabled at the router (it is an open network)
Most of this stuff is gibberish to me, so any light that can be shed is very much appreciated.

number8838
2005-07-08, 11:34 PM CDT
When I try to set my card for automatic DHCP and then try to activate it I get:

Error for wireless request "Set Mode" (8B06):
SET failed on device ath0; invalid argument

Then it tries to determine IP settings. If It's set to DHCP it won't be able to do it, it'll fail, and ath0 won't be active. If it's set for static IP it won't ry that last part, it'll activate, but I won't be able to do anything but ping my router and scan for other accesspoints (which is only fun for so long :)

I hope this info helps.

Thanks for any help

number8838
2005-07-09, 06:27 PM CDT
Here is what my D-Link Wireless Router is set to. If someone could help me out as to what to enter in DESKTOP>SYSTEM SETTINGS>NETWORK for my D-Link wireless PCI adapter that would be great (it's probably easier than Q&Aing everything one at a time).

BTW: a work with a • before it is an unselected option, a word with an X before it is selected (eg: "• Enabled X Disabled" would mean that the item is disabled), text in grey is grey on the page (i.e. inactive).

Home tab, WIRELESS button:
"Wireless Settings
These are the wireless settings for the AP(Access Point)Portion.
X Enabled • Disabled
SSID: HOME
Channel: 1
Mode Setting: • G Mode X Mix Mode
SSID Broadcast: X Enabled • Disabled
Security: X None • WEP • WPA-PSK • WPA
Authentication: X Open System • Shared Key
WEP Encryption: 64 Bit
Key Type: HEX
Key1: [B]X{/B] <field is blank>
Key2: • <field is blank>
Key3: • <field is blank>
Key4: • <field is blank>

HOME tab, WAN button:
WAN Settings
Please select the appropriate option to connect to your ISP.
• Dynamic IP
X Static IP Address
• PPPoE
• Others
WAN Link Speed • 100Mbps • 10Mbps X 10/100Mbps Auto
Static IP
IP Address: 63.195.16.XXX (assigned by your ISP) <note: full IP has been concealed>
Subnet Mask: 255.255.255.0
ISP Gateway Address: 63.195.16.YYY <also changed--all but last three digits are the same>
Primary DNS Address: 63.200.183.ZZ
Seconday DNS Address: 206.13.28.12 (optional)
MTU: 1500

HOME tab, LAN button:
LAN Settings
The IP address of the Dl-524.
IP Address: 192.168.0.1
Subnet Mask: 255.255.255.0
Local Domain Name: <field left blank> (optional)

HOME tab, DHCP button:
DHCP Server
The DI-524 can be setup as a DHCP Server to distribute IP addresses to the LAN network.
DHCP Server: X Enabled • Disabled
Starting IP Address: 192.168.0.100
Ending IP Address: 192.168.0.199
Lease Time: 1 Week
Static DHCP
Static DHCP is used to allow DHCP server to assign same IP address to specific MAC address.
• Enabled X Disabled
<Name, IP, MAC Address, and DHCP Client fields are all blank>

<All filters in the ADVANCED tab, FILTERS button are off>

ADVANCED tab, FIREWALL button:
Firewall Rules List
X Action: Allow; Name: Allow to Ping WAN port; Source: WAN,*; Destination: LAN, 192.168.0.1; Protocol: ICMP, 8
X Action: Deny; Name: Default; Source: *,*; Destination: LAN,*; Protocol: *,*
X Action: Allow; Name: Default; Source: LAN,*; Destination: *,*; Protocol: *,*

ADVANCED tab, DMZ button:
DMZ
DMZ (Demilitarized Zone) is used to allow a single computer on the LAN to be exposed to the Internet.
• Enabled X Disabled

ADVANCED tab, PERFORMANCE button:
Wireless Performance
These are the Wireless Performance features for the AP(Access Point) Portion.
Beacon interval: 100 (msec, range: 20~1000, default: 100)
RTS Threshold: 2346 (range: 256~2346, default: 2346)
Fragmentation: 2346 (range: 1500~2346, default: 2346, even number only)
DTIM interval: 1 (range: 1~255, default: 1)
TX Rates: Auto
Preable Type: X Short Preamble • Long Preamble
Antenna transmit power: 100% 17dBm

STATUS tab, DEVICE INFO button:
Device Information
Firmware Version: 3.00, Tue 2 Nov 2004
LAN
MAC Address: XX-XX-XX-XX-XX-XX <also concealed>
IP Address: 192.168.0.1
Subnet Mask: 255.255.255.0
DHCP Server: Enabled
WAN
MAC Address: YY-YY-YY-YY-YY-YY
Connection: fixed IP
IP Address: 63.195.16.XXX
Subnet Mask: 255.255.255.0
Default Gateway: 63.195.16.YYY
DNS: XX.XXX.XXX.XX XXX.XX.XX.XX
Wireless
SSID: HOME
Channel: 6 <which is weird because it says channel 1 above>
WEP Disabled"



That's about all of the relevant info. REMEMBER: this is my D-Link WirelessG Router (not my Wireless Adapter PCI card. This Network has been set up for about 6 months and My roommates can access it with their WinXP computers so what it says here works. I would like to know how to configure my Wireless card on my FC4 box to connect so I can share files and surf the web.

Any help is appreciated
Thank you

friez
2005-07-09, 06:46 PM CDT
try sudo /sbin/dhclient wlan0

number8838
2005-07-09, 08:05 PM CDT
When I try that I am asked for a password. Is this supposed to be that pasword for my router? It currently doesn't have one--just a login name.

mobsta
2005-07-09, 08:30 PM CDT
When I try that I am asked for a password.

Some people don't realise that not everyone has setup sudo.

Just become superuser by typing su press enter, type the admin password and run /sbin/dhclient wlan0. this should tell you the info he was requesting.

number8838
2005-07-09, 08:47 PM CDT
Oh, OK

For some reason my root password wouldn't work if I typed
sudo /sbin/dhclient wlan0 (it's actually ath0 for me)

Here's what I got:
[root@localhost ~]# /sbin/dhclient ath0
[root@localhost ~]#

There was a long wait before the second prompt appeared--I could type stuff there, but didn't.
The second time it went quickly.
What was it supposed to do?

friez
2005-07-09, 09:10 PM CDT
it's the last step to setup a wireless network using ndiswrapper it may help , even though your using different software
try using your broswer too see if it helps
here is the full set of steps
*iwlist wlan0 scan

Note: You may have to set the network name before the scan can find your Access Point. If the scan does not find your AP, try issuing the command

*iwconfig wlan0 essid ESSID

before the using the command

*iwlist wlan0 scan

If this lists your AP, you can continue. Otherwise, you may have one of two problems: Your AP doesn't broadcast SSID see the FAQ for more information or the radio of the card is off again, see the FAQ for details. If you see the AP in scan above, set the operating mode of the interface according to your setup. In most cases, it is Managed

*iwconfig wlan0 mode Managed

If you use encryption WEP, set the key:

*iwconfig wlan0 key restricted XXXXXXXX

You can use 10 hex digits for 40-bit encryption or 26 hex digits for 128-bit encryption. You may need to use open security mode instead of restricted depending on the setup of your AP. If you want to write the key in ASCII use s: e.g. iwconfig wlan0 key restricted s:password. Set the network name

*iwconfig wlan0 essid ESSID

Replace ESSID with the network name used by your AP.

At this point, check to make sure that ESSID is set in output of iwconfig wlan0. If you see the ESSID as you set, you can proceed to next step. If you see ESSID: off/any, then your card is not associated to AP. Check if WEP encryption is set exactly as used by AP and the AP broadcasts ESSID. See FAQ for more details. Until ESSID is set in output of iwconfig wlan0, you may not use wlan0 as network interface.
Now, setup the network parameters for the interface wlan0. This varies from distribution to distribution. Refer to your distribution's documents on how to do this. Once this is done, you can use network tools to bring up the network e.g.,

*ifconfig wlan0 up

or

*dhclient wlan0

or

*dhcpcd wlan0 this may or may not help you
edit subsitiute wlan0 for your device

number8838
2005-07-10, 02:46 PM CDT
OK, I got a connection to my network.
I can access my router through Firefox and browse other computers in my network.

But I still can't visit internet sites (www.google.com gives me a connection refused message)

What more do I have to do?

flosofl
2005-07-10, 03:29 PM CDT
That was supposed to assign an address to the adapter from the DHCP server running on your D-LINK.

I'm looking at your ifconfig results for ath0 and I see the following, which is a little troubling:
" inet addr:192.168.0.1 "

Your adapter has the same IP as your router. The reason you're getting a connection refused is because you're trying to connect to your own machine (and you don't have httpd installed/started or you'd come up with the default page for the web server).

Try setting up the adapter with a static IP. Once that is up, DHCP can be figured out. We need to make sure everything works OK first with static info before troubleshooting DHCP (if that is indeed where the problem is). Since the D-LINK DHCP typically starts assigning addresses at xxx.xxx.xxx.100, use the following settings:

IP address: 192.168.0.90
Mask: 255.255.255.0
Gateway: 192.168.0.1

DNS - 192.168.0.1 and/or your ISP DNS.

These are the "must haves". Other stuff like hostname, and domain suffix are optional.

If this works, then the problem seems to be with getting DHCP to work correctly.

flosofl
2005-07-10, 03:39 PM CDT
OK, I got a connection to my network.
I can access my router through Firefox and browse other computers in my network.

But I still can't visit internet sites (www.google.com gives me a connection refused message)

What more do I have to do?

I noticed on the (comprehensive - well done :) ) post on your router settings, you forgot the Filter section. This looks like it may be a MAC filter issue - although usually if your MAC is denied, you can't access the admin web app either, so this may not be it but worth checking. Check and see if MAC filtering is enabled. Either disable it, or add your adapter to the list for "allow".

number8838
2005-07-10, 03:41 PM CDT
inet address is now 192.168.0.150 (assigned by DHCP)!
DHCP seems to be working, I can access and configure my router.

But I can't seem to do anything outside my LAN—no Firefox, etc.

Thanks for all your help, I'm almost there!

number8838
2005-07-10, 03:46 PM CDT
As for the MAC issue:
I enabled the MAC filter and added all MAC numbers for everything on my LAN.
Then, when that didn't make my router accept my linux box, I disabled it.
I brought my computer closer to the router antenna and now DHCP seems to work and I can acces the router (by typing 192.168.0.1 in Firefox)

If DHCP is working (it's selected in DESKTOP>SYSTEM SETTINGS>NETWORK) do I need to configure my subnet mask and gateway?

number8838
2005-07-10, 05:26 PM CDT
now inet address is 192.168.0.102!
This looks promising for DHCP

Still nothing outside LAN, though

flosofl
2005-07-11, 08:42 AM CDT
As for the MAC issue:
I enabled the MAC filter and added all MAC numbers for everything on my LAN.
Then, when that didn't make my router accept my linux box, I disabled it.
I brought my computer closer to the router antenna and now DHCP seems to work and I can acces the router (by typing 192.168.0.1 in Firefox)

If DHCP is working (it's selected in DESKTOP>SYSTEM SETTINGS>NETWORK) do I need to configure my subnet mask and gateway?

No, all that should be provided via DHCP.

Are you still getting "Connection Refused" when you try to get outside? Are you able to ping anything on the internet? If you can't try running a traceroute and see where the connection breaks down.

kg4cbk
2005-07-11, 11:10 AM CDT
If you are getting an IP address and can access systems on your local LAN there are two things that could be wrong.

/etc/resolv.conf may not have nameserver entries. Post the contents of your /etc/resolv.conf file.

Or your default gateway is not set correctly. It should be set to point to your router.

netstat -rn

will list your routing table. You should have an entry that has UG in one column. This will be your default gateway.

number8838
2005-07-12, 06:23 PM CDT
It looks like everythings fine now. I forgot that rule about networks, all you have to do is let them sit for a while and they'll work themselves out--or, if you're a "glass is half empty" kind of person, even if you have everything set right they won't work for a few days ;)

Thanks everybody for all your help.