Host-Ansible-Setup/root_resources/etc/network/interfaces

39 lines
992 B
Plaintext

# {{ ansible_managed }}
# 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
#auto enp2s0
#iface enp2s0 inet static
# address 192.168.1.61
# netmask 255.255.255.0
# gateway 192.168.1.254
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 192.168.1.254 1.1.1.1 8.8.8.8
# dns-search {{ domain_name }}
auto enp2s0
iface enp2s0 inet manual
# Bridge 0 for Virtual Machines
auto br0
iface br0 inet static
address 192.168.1.61
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255
gateway 192.168.1.254
bridge_ports enp2s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
dns-nameservers 192.168.1.254 1.1.1.1 8.8.8.8
dns-search {{ domain_name }}