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.
|
 |
11-16-2004, 06:52 PM
|
#1
|
Member
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156
Rep:
|
Enabling network card in linux?
I was wondering if anyone could tell me the command to enable/disable my LAN connection in SuSe? i.e the equivalent command to going control panel --> network conections --> right click on network connections and select enable, in XP.
Thanks,
NNP
|
|
|
11-16-2004, 07:07 PM
|
#2
|
Member
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163
Rep:
|
ifconfig <interface> down or ifconfig <interface> up
On my box, I use eth0, so it's:
ifconfig eth0 down
I believe there is also ifup and ifdown on some systems that can bring up and down the interface. I can't seem to find those on my Slackware box, but ifconfig does work.
[edit] I'm sure SuSE has some graphical tool to do that, but I don't run SuSE, so I don't know what that is.
Last edited by 65_289; 11-16-2004 at 07:10 PM.
|
|
|
11-16-2004, 07:14 PM
|
#3
|
Member
Registered: Feb 2002
Posts: 322
Rep:
|
Yes, SuSE has a tool to do that. You have to run YaST (the SuSE control panel) and its under the networking section.
And yes, I believe the ifup and ifdown scripts are also there.
|
|
|
11-16-2004, 07:22 PM
|
#4
|
Member
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156
Original Poster
Rep:
|
I knew about the graphical way but its nice to know how to do things from the command line ; )
Thanks
|
|
|
11-16-2004, 07:42 PM
|
#5
|
Member
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156
Original Poster
Rep:
|
Quote:
Originally posted by 65_289
[B]ifconfig <interface> down or ifconfig <interface> up
On my box, I use eth0, so it's:
ifconfig eth0 down
|
By the way, how would i go about finding what interface im using? I googled but couldnt find the command.
|
|
|
11-16-2004, 07:44 PM
|
#6
|
Member
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163
Rep:
|
Quote:
Originally posted by NNP
By the way, how would i go about finding what interface im using? I googled but couldnt find the command.
|
Just type ifconfig at the command line. It will show each interface. One will be the loopback interface, labeled "lo". The other, assuming you have one and only one, will probably be called eth0. It could be wlan0 if you are using a wireless card.
|
|
|
All times are GMT -5. The time now is 05:57 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
|
|