mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-10-13 22:19:41 +00:00
24 lines
894 B
Plaintext
24 lines
894 B
Plaintext
# 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 {{ ansible_facts.interfaces | select('search', '^enp') | first }}
|
|
iface {{ ansible_facts.interfaces | select('search', '^enp') | first }} inet dhcp
|
|
|
|
auto {{ ansible_facts.interfaces | select('search', '^enp') | first }}.20
|
|
iface {{ ansible_facts.interfaces | select('search', '^enp') | first }}.20 inet static
|
|
address 192.168.2.10/27
|
|
gateway 192.168.2.1
|
|
hwaddress 90:1b:0e:5b:18:fb
|
|
|
|
auto {{ ansible_facts.interfaces | select('search', '^enp') | first }}.69
|
|
iface {{ ansible_facts.interfaces | select('search', '^enp') | first }}.69 inet static
|
|
address 192.168.69.20/26
|
|
hwaddress 90:1b:0e:5b:18:fc
|