Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-17-2005, 09:44 PM
|
#1
|
LQ Newbie
Registered: Jul 2005
Distribution: knoppix v3.7
Posts: 4
Rep:
|
automatic connection to network
i am a linux newbie and i'm pretty sure this question has been asked before, however i do not really understand the instructions to connecting my wireless adapter to my network.
I am using a linksys wusb11 and installed knoppix to my harddrive.
I have altered my etc/network/interface to set it to the correct essid and mode.
But whenever i restart my computer and want to use the internet connection, I have to log on as root and type
pump -i wlan0
to connect my adapter.
Is there any automatic way to do it?
|
|
|
07-18-2005, 08:39 AM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Your /etc/network/interfaces file should have these lines..
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
See man interfaces for more details..
|
|
|
07-18-2005, 10:47 PM
|
#3
|
LQ Newbie
Registered: Jul 2005
Distribution: knoppix v3.7
Posts: 4
Original Poster
Rep:
|
where should i put the 3 lines?
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
my current configuration is
auto lo
iface lo inet loopback
wireless_mode managed
wireless_essid mi_network
wireless_channel 11
however, when i change it to
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid mi_network
wireless_channel 11
the adapter is still not detected.
What is man interfaces?
|
|
|
07-21-2005, 06:57 AM
|
#4
|
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607
Rep:
|
man interfaces is the MANual for the interfaces configuration file. Almost all programs have a MANual PAGE as documentation, and any program or system config file you don't understand, you should always try typing man <program_name> into a terminal and see if you get some instructions. This is what we mean when we say "read the man page".
Secondly, I don't think you were supposed to change your current config and replace what was currently there with the three additional lines; I think you were supposed to add the additional lines to the end of the file. Since the last lines are already talking about wireless, adding the new lines after them seems reasonable enough. You definitely need "auto lo", and shouldn't remove it.
What distribution are you using (please fill in the "Distribution" field of your profile)? Does it by chance have a Control Center or system management tool that contains a network configuration utility?
And read man interfaces. It will probably be very technical, but it will probably also explain everything that is explainable about the file.
It will probably also tell you if you can add pump -i wlan0 to the interfaces file, so that it will be run automatically when you boot and the file is read.
|
|
|
07-22-2005, 03:30 AM
|
#5
|
LQ Newbie
Registered: Jul 2005
Distribution: knoppix v3.7
Posts: 4
Original Poster
Rep:
|
I am using knoppix v3.7
after adding the 3 lines, and restarting my computer, i discovered that instead of just typing pump -i wlan0, i still have to change my essid and mode back to my original essid as it is no longer retained.
i have tried putting pump -i wlan0 at the end of my interfaces file before but it doesn't work. And my man interfaces doesnt have must to do with wireless devices. Do i have to set my device to static? and set my IP address too?
|
|
|
07-22-2005, 04:35 AM
|
#6
|
Member
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384
Rep:
|
Hi,
here's how your conf file should look:
Code:
auto lo
iface lo inet loopback
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid mi_network
wireless_channel 11
as for changing to static IP addressing, it depends whether there's a dhcp server on your wireless network. A dhcp server is a machine (a router, or a PC, or lot's of other things) that will give your PC an IP configuration when it requests one (when your network interface comes up).
so if you have such a dhcp server, you can keep your config in dhcp, if not, you have to set it up statically...
but as you told that it worked through doing a pump -i wlan0, then you must have a dhcp server, since it worked without you configuring IP address & mask.
|
|
|
07-25-2005, 03:57 AM
|
#7
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Take a look at the Knoppix docs about saving settings.
The menu option "Save Settings" places a copy of the settings on the local hard drive, or floppy or usb stick.
Booting with "knoppix home=scan" will search for them..
|
|
|
07-27-2005, 03:37 AM
|
#8
|
LQ Newbie
Registered: Jul 2005
Distribution: knoppix v3.7
Posts: 4
Original Poster
Rep:
|
after changing the interfaces file and restarting the com, i discovered i have to type not onli the pump command but also change back my essid and mode because it has been reset. Any idea why this has happened?
using the knoppix save settings doesn't help either.
|
|
|
All times are GMT -5. The time now is 02:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|