ByC0d3
9/5/2017 - 5:09 PM

Red en Debian 9

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
# Activar interfaz de red
ip link set eth0 up