What is the process underneath debians automatic network setup?
Linux - NetworkingThis 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.
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.
What is the process underneath debians automatic network setup?
When I plug a network cable into my pc, a little magic occurs and then a popup appears at the upper right corner saying that I'm connected to a network.
I want to know what that process of connecting me to a network contains and if i didn't have a fancy GUI to to do that for me, how would i set up my connection and find local network servers only through a terminal?
The icon/gui comes from nm-applet (that's the name of the process, too), a taskbar applet distributed in the network-manager-gnome package, which contains hooks for the network-manager package (network manager infrastructure.) Network Manager (not the applet) does most of the "automatic" work behind the scenes. Aside from providing functionality to nm-applet, network-manager gets used by a bunch of other GNOME apps -- for example Pidgin uses it to check for connectivity per a given polling period.
I do not recommend getting rid of network-manager entirely, as it's unnecessary to do so and will probably only cause heartache (though rare) down the line. network-manager-gnome is what you want to go after. You'll want to setup /etc/network/interfaces appropriately and probably install the ifupdown package. relevant commands then become ifup, ifdown, ifconfig, dhclient. Perhaps have a look also at /etc/resolv.conf.
I personally find the nm applet invaluable for wireless, but it can only do harm on a desktop imho -- on a workstation or server you'll want as a simple and static of a network setup as possible and convenient. (e.g. your computer boots and runs ifup scripts automatically via /etc/rc* scripts, you don't worry about it again until you have to reboot or your network goes down.)
Last edited by jhwilliams; 04-26-2009 at 07:20 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.