LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Another newbie cant access the internet (https://www.linuxquestions.org/questions/linux-wireless-networking-41/another-newbie-cant-access-the-internet-702340/)

vgg 02-04-2009 04:56 PM

Another newbie cant access the internet
 
I hope someone can help me with this. I know I'm close but am missing
something. I'm having problems accessing the internet via my wifi
router at home. I have a gateway 3023gb laptop which originally shipped
with windowsXP but I've repartitioned the hard drive to allow me to use
it as a dual-boot with RHEL4.

I think I'm ok as far as drivers/firmware is concerned as I installed the
ipw2200 drivers etc from the extras disk during the installation.

After I press Fn2 to bring up the wireless radio I type
'ifconfig eth1 up' and then I typed 'iwlist scanning'
to see if I could pick up my router at all. This was the output:


------------------------------------------
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

eth1 Scan completed :
Cell 01 - Address: 00:18:F6:97:9F:E1
ESSID:"BTHomeHub-58B2"
Protocol:IEEE 802.11g
Mode:Master
Channel:1
Encryption key: on
Bit Rate:54Mb/s
Extra: Rates (Mb/s): 1 2 5.5 6 9 11 12 18 24 36 48 54
Extra: RSSI: -56 dBm
Extra: Last beacon: 28ms ago
Cell 02 - Address: 00:19:7D:CC:AC:BC
ESSID:"PS3-5632169"
Protocol:IEEE 802.11g
Mode:Master
Channel:11
Encryption key: on
...... a few more cells listed but the first one is
my home router
------------------------------------------

so I then entered 'iwconfig eth1 essid "BTHomeHub-58B2" key KEY'


and when I bring up the KWifiManager it says I'm connected to my router, with
a good signal strength and connection speed of 54MBit/s, it identifies the
Access point but doesn't provide the local IP.

And when I try the following command: 'dhclient eth1'


I get this output:

------------------------------------------


Listening on LPF/eth1/00:12:f0:06:8e:e7
Sending on LPF/eth1/00:12:f0:06:8e:e7
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

------------------------------------------

What am I missing?
Any help would be greatly appreciated.

Vito

repo 02-05-2009 10:55 AM

Seems to me the router isn't setup to do dhcp.

vgg 02-05-2009 11:40 AM

Quote:

Originally Posted by repo (Post 3433167)
Seems to me the router isn't setup to do dhcp.


Thanks Repo.
forgive my ignorance but just checking - that means that the ip address is static right?

I've just logged into the router (BTHomeHub) within windows and was able to extract the following info

LAN ranges from 192.168.1.64-237 the gateway is on 192.168.1.254/24

and also it has a mask of 24.

So do I setup the ip in the ifcfg-eth1 as IP=192.168.1.67 (or whatever it is) and the MASK=0.0.0.24

would that be correct?

also I found a primary and secondary dns ips - where do I put these?

Thanks

Vito

repo 02-05-2009 12:04 PM

Do you recieve an ip in windows?

Quote:

So do I setup the ip in the ifcfg-eth1 as IP=192.168.1.67 (or whatever it is) and the MASK=0.0.0.24
MASK= 255.255.255.0

then you need to add the default gw
route add default gw 192.168.1.254

DNS goes into /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx

pentode 02-05-2009 12:19 PM

You've set up correct security keys on your Linux machine? The best approach is to temporarily turn off security on your router and see if you can connect. If so, then you can focus on the security settings. If the router has wpa security, you'll need wpasupplicant.

The kwifimanager never worked for me. You might try installing wicd. But I generally just do configuration in the text configuration files for wireless.


All times are GMT -5. The time now is 11:41 PM.