Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Hardware

Linux Hardware All about Hardware Post your questions here about Hardware Issues and Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-2008, 06:20 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default Bring up/down network device

From an SSH shell is it possible to bring up my secondary network card and also take it down? I'm assuming it is since everything is possible in the shell but I don't know how to do this.
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 03-27-2008, 05:17 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 507
Jordan is on a distinguished road
Default

You can use ifconfig:

Code:
# ifconfig eth0 up
# ifconfig eth1 down
Some installations like Redhat ES3 have pre-made scripts. They are usually named:

Code:
# ifup
# ifdown
If you are connected via SSH and you take down your only network connection you will be disconnected with no way of bringing it back up. You will have to physically bring it back up.
Reply With Quote
  #3 (permalink)  
Old 03-27-2008, 05:26 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 414
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

I used those commands under BackTrack 3 beta, to make my wireless card active/inactive.

But I did not use eth0, I think that I used wlan0 or something similar.
__________________
Business Directory
Technology Blog
Reply With Quote
  #4 (permalink)  
Old 04-04-2008, 02:24 AM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default

What is BackTrack 3? I've never heard of this.

No ifup/ifdown script but ifconfig options work.
Reply With Quote
  #5 (permalink)  
Old 04-04-2008, 10:26 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 364
Tor is on a distinguished road
Default

I've never heard of those scripts (ifup/down) - are they homegrown?
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 06-19-2008, 10:42 AM
Member
 
Join Date: Jun 2008
Posts: 67
EugenS is on a distinguished road
Default

I wonder if I'll ever learn this stuff, it seems so complicated :-<
Reply With Quote
Reply

Tags
network, network card

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sd device addresses change Pan Linux Hardware 5 06-19-2008 10:48 AM
Bring down eth0? Void Linux Networking 1 10-18-2007 03:48 PM
Linux-powered device gains Sirius playback kernel Linux News 0 08-17-2007 01:32 AM


All times are GMT. The time now is 09:50 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.