-
ifconfig:
-s : display a short list (like netstat -i)
-a: display all interfaces which are currently available, even if down
-x: não tem no man (manual do comando)
comando shutdown: arranges for the system to be brought down in a safe way
-
http://www.ti-redes.com/configuracoes-basicas/comandos-basicos-do-linux-para-redes/
-
ifup brings a network interface up, making it available to transmit and receive data.
ifdown takes a network interface down, placing it in a state where it cannot transmit or receive data.
ifquery parses the configuration of a network interface, allowing you to get answers to questions about how it is currently configured.
Fonte: http://www.computerhope.com/unix/ifup.htm
-
Outros comandos para se fazer isso seriam:
# ip link set dev eth0 down
# /sbin/ifconfig eth0 down
-
ifup - ativar as interfaces de rede
ifdown - desativas as interfaces de rede.
Alternativa: B