LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2004, 06:52 PM   #1
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
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
 
Old 11-16-2004, 07:07 PM   #2
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
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.
 
Old 11-16-2004, 07:14 PM   #3
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
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.
 
Old 11-16-2004, 07:22 PM   #4
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
I knew about the graphical way but its nice to know how to do things from the command line ; )

Thanks
 
Old 11-16-2004, 07:42 PM   #5
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
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.
 
Old 11-16-2004, 07:44 PM   #6
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 05:10 PM
linux hangs when enabling wireless card knight-rider Linux - Wireless Networking 1 01-16-2005 11:06 AM
enabling internet sharing through network tehnick Slackware 4 06-06-2004 04:40 PM
Diabling onboard sound card and enabling pci slot sound card abhatia Linux - Hardware 4 01-12-2004 02:10 AM
How to configure a Network everywhere fast network card under Linux Mandrake 7.2 margo256 Linux - Newbie 1 03-12-2001 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration