DEBIAN - /etc/network/interfaces Template: Difference between revisions
From IT-Arts.net
imported>Z No edit summary |
m Text replacement - "Category:Post-It" to "Category:Wiki" |
||
| Line 1: | Line 1: | ||
[[Category: | [[Category:Wiki]] | ||
Revision as of 14:52, 8 December 2025
This is a Debian /etc/network/interfaces file example.
# 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 ens18
#iface ens18 inet dhcp
auto ens18
iface ens18 inet static
address V.W.X.Y/Z
gateway V.W.X.Y
dns-nameservers 80.67.169.12 80.67.169.40
up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
# The VLAN 666 over the ens18 interface
auto ens18.666
iface ens18.666 inet static
address 10.10.10.1/24
vlan-raw-device ens18
