Vorlage:Network-interfaces-fw
Zur Navigation springen
Zur Suche springen
- vi /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#WAN
auto enp0s3
iface enp0s3 inet static
address {{{ip}}}/{{{cidr}}}
gateway {{{gw}}}
dns-nameservers {{{ns}}}
dns-search {{{dom}}}
post-up ip route add 10.88.0.0/16 via {{{ns}}}
#DMZ
auto enp0s8
iface enp0s8 inet static
address 10.88.2XX.1/24
#LAN
auto enp0s9
iface enp0s9 inet static
address 172.26.2XX.1/24
#SERVER
auto enp0s10
iface enp0s10 inet static
address 10.2XX.1.1/24