篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Red en Debian 9相关的知识,希望对你有一定的参考价值。
# Instalar herramientas de red en debian9
apt-get install net-tools
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.163.100/24
gateway 192.168.163.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.1.99.12
# Ver tarjetas de red e ip's
ip addr show
# Desactivar interfaz de red
ip link set eth0 down