DEBIAN - /etc/network/interfaces Template

From Wiki.IT-Arts.net
Revision as of 19:30, 27 March 2020 by imported>Z (Created page with "Category:Public_Pages This is a Debian '''/etc/network/interfaces''' file example. <nowiki> # This file describes the network interfaces available on your system # a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.222 inet static
        address 10.10.10.1/24
        vlan-raw-device ens18