How do I bring down an interface in Linux?

How do I bring down an interface in Linux?
Answer
Two methods can be used to bring interfaces up or down.
  1. 2.1. Using “ip” Usage: # ip link set dev
    <interface>
    up # ip link set dev
    <interface>
    down. Example: # ip link set dev eth0 up # ip link set dev eth0 down.
    </interface>
    </interface>
  2. 2.2. Using “ifconfig” Usage: # /sbin/ifconfig
    <interface>
    up # /sbin/ifconfig
    <interface>
    down.
    </interface>
    </interface>
 

Tìm kiếm

Back
Top