Closed Thread
Results 1 to 6 of 6

Thread: Bring up/down network device

  1. #1
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0

    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.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    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.

  4. #3
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    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.

  5. #4
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0
    What is BackTrack 3? I've never heard of this.

    No ifup/ifdown script but ifconfig options work.

  6. #5
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    I've never heard of those scripts (ifup/down) - are they homegrown?

  7. #6
    Oigen is offline Programmer
    Join Date
    Jul 2008
    Posts
    107
    Rep Power
    0
    I wonder if I'll ever learn this stuff, it seems so complicated :-<

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calling commands on a network device using VB.Net
    By MasterFrmMO88 in forum Visual Basic Programming
    Replies: 3
    Last Post: 10-23-2011, 06:55 AM
  2. Is it possible to detect an usb device when the device is plugged in??
    By yonghan in forum Visual Basic Programming
    Replies: 6
    Last Post: 02-07-2011, 04:47 AM
  3. Bring down eth0?
    By Void in forum Linux Networking
    Replies: 1
    Last Post: 10-18-2007, 07:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts