Vorlage:Network-interfaces-fw: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „*vi /etc/network/interfaces <pre> source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network inte…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
*vi /etc/network/interfaces | *vi /etc/network/interfaces | ||
source /etc/network/interfaces.d/* | |||
source /etc/network/interfaces.d/* | # The loopback network interface | ||
# The loopback network interface | auto lo | ||
auto lo | iface lo inet loopback | ||
iface lo inet loopback | # The primary network interface | ||
# The primary network interface | #WAN | ||
#WAN | auto enp0s3 | ||
auto enp0s3 | iface enp0s3 inet static | ||
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 | |||
#DMZ | auto enp0s8 | ||
auto enp0s8 | iface enp0s8 inet static | ||
iface enp0s8 inet static | address 10.88.2XX.1/24 | ||
#LAN | |||
#LAN | auto enp0s9 | ||
auto enp0s9 | iface enp0s9 inet static | ||
iface enp0s9 inet static | address 172.26.2XX.1/24 | ||
#SERVER | |||
#SERVER | auto enp0s10 | ||
auto enp0s10 | iface enp0s10 inet static | ||
iface enp0s10 inet static | address 10.2XX.1.1/24 | ||
Aktuelle Version vom 9. Mai 2026, 12:33 Uhr
- 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