Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Hard downing a NIC.

    I've tried googling this, hell I even used bing...

    I have an unusual need to hard down the NICs on some linux boxes. Not just network down, but for the link to show down.. i.e. eth0 NIC Copper Link is Down

    I can get ethtool to drop it for a sec, but I need to keep it down for a few minutes. Anyone know how to do this.

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Hello and Welcome!
    Quote Originally Posted by Hessian View Post
    ... I even used bing.
    Desperate, huh? lol... just kidding.
    Have you tried ifconfig ethx down?
    man ifconfig
    I'm sure it could be worked into a script, if you're working remotely.
    ...I'm not the guy to do it, but I'm sure it can be done.

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Yeah, I'm looking for a bit more than just downing the network. My main goal here is to have the switch the box is connected to show no connection, as if the network cable was unplugged. The boxes are remote, but I do have KVM access.

  4. $spacer_open
  5. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    The Keystone State
    Not sure you can do what you are looking for without messing with the system.
    You might look into modprobe and maybe remove the driver but this might cause the other interface you want up to also be shut down.

    I do have a question, why is it you need the interface to power off?


    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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