Newbie wants to connect laptop to internet with wireless router... how?

Lauri Kasanen curaga at
Sun Oct 5 04:23:11 PDT 2008

> Hi everybody. Sorry for the presumably dumb question, I have got 
> *somewhere* but am stuck.
> I've installed LFS fine as per the 6.3 book, though I haven't done 
> sec 7.13, configuring the network script, as I don't know what to 
> put in there. I used a later kernel, Reason being, 
> support for my Intel Wireless 3945 card. So that bit works alright. 
> I've installed wireless-tools-28 as per BLFS.
> After I've booted up I issue the following commands:
> ip link set wlan0 up
> iwconfig wlan0 essid <name-of-my-router>
> iwconfig wlan0 key <hex-key>
> Presumably those could go in a bootup script somewhere... any suggestions?
> Now what else do I need to do? Once I can 'ping' 
> and get a couple of packets back, or use wget to fetch some files, 
> I'll be sorted! The only other bit of info I can think of right now 
> is that the router's address appears to be '' to all 
> computers that should connect to it. Presumably my laptop would not 
> need to know such things as DNS addresses, as those are all handled 
> by the router? The router itself is already connected fine, I can 
> surf all day on Windows and Ubuntu.
> Many thanks in advance.

Everybody has to start somewhere :)

If your wlan router uses WPA encryption instead of WEP, you'll also need wpasupplicant. For WEP your steps are fine.

After connecting like that, you just need to enter your IP, and the router's:
ip addr add dev wlan0
ip route add default via dev wlan0
echo "nameserver" > /etc/resolv.conf

That should get you online.


Surf the Web in a faster, safer and easier way:
Download Opera 9 at

Powered by Outblaze

More information about the blfs-support mailing list