Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Bring up/down network device

hardware

  • Please log in to reply
5 replies to this topic

#1 Hektor

Hektor

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 122 posts

Posted 26 March 2008 - 09:20 AM

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.
  • 0

#2 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 27 March 2008 - 08:17 AM

You can use ifconfig:

# ifconfig eth0 up
# ifconfig eth1 down

Some installations like Redhat ES3 have pre-made scripts. They are usually named:

# 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.
  • 0

#3 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 27 March 2008 - 08:26 AM

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.
  • 0

#4 Hektor

Hektor

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 122 posts

Posted 03 April 2008 - 05:24 PM

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

No ifup/ifdown script but ifconfig options work.
  • 0

#5 Tor

Tor

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 448 posts

Posted 04 April 2008 - 01:26 PM

I've never heard of those scripts (ifup/down) - are they homegrown?
  • 0

#6 Oigen

Oigen

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 105 posts

Posted 19 June 2008 - 01:42 AM

I wonder if I'll ever learn this stuff, it seems so complicated :-<
  • 0





Also tagged with one or more of these keywords: hardware

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download