DEBIAN - /etc/network/interfaces Template: Difference between revisions

From Wiki.IT-Arts.net
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...")
 
imported>Z
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Public_Pages]]
[[Category:Post-It]]




Line 29: Line 29:
# The VLAN 666 over the ens18 interface
# The VLAN 666 over the ens18 interface
auto ens18.666
auto ens18.666
iface ens18.222 inet static
iface ens18.666 inet static
         address 10.10.10.1/24
         address 10.10.10.1/24
         vlan-raw-device ens18
         vlan-raw-device ens18


</nowiki>
</nowiki>

Latest revision as of 14:36, 30 March 2020


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