193 lines
4.3 KiB
Plaintext
193 lines
4.3 KiB
Plaintext
---
|
|
|
|
# ---
|
|
# vars used by roles/network_interfaces
|
|
# ---
|
|
|
|
|
|
# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
|
|
network_manage_devices: True
|
|
|
|
# Should the interfaces be reloaded after config change?
|
|
network_interface_reload: False
|
|
|
|
network_interface_path: /etc/network/interfaces.d
|
|
network_interface_required_packages:
|
|
- vlan
|
|
- bridge-utils
|
|
- ifmetric
|
|
- ifupdown
|
|
- ifenslave
|
|
- resolvconf
|
|
|
|
|
|
network_interfaces:
|
|
|
|
# Many device configurations are possible (as many as needed)
|
|
#
|
|
- device: <device-name>
|
|
# use only once per device (for the first device entry)
|
|
headline: br0 - bridge over device eno1
|
|
|
|
# auto & allow are only used for the first entry of that devicei-name)
|
|
#
|
|
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
|
auto: true
|
|
|
|
family: <inet|inet6>
|
|
mode: <manual|statis|dhcp|bootp|tunnel|ppp|wvdialipv4ll|none|loopback)
|
|
description: Bridge Interface IPv4 for LXC
|
|
|
|
# options used by static method
|
|
#
|
|
hwaddress ether:
|
|
# dotted quad or number of bits
|
|
#
|
|
# the entry will be: address/netmask
|
|
address: <ipv4/ipv6-address>
|
|
netmask: <netmask>
|
|
gateway: <gateway-address>
|
|
metric:
|
|
pointopoint:
|
|
media:
|
|
mtu:
|
|
scope:
|
|
|
|
# options used by dhcp method
|
|
#
|
|
hostname:
|
|
leasehours:
|
|
leasetime:
|
|
vendor:
|
|
client:
|
|
|
|
# options used by bootp method
|
|
#
|
|
bootfile:
|
|
server:
|
|
hwaddr:
|
|
|
|
# options used by ppp and wvdial method
|
|
#
|
|
provider:
|
|
|
|
# optional dns settings nameservers - needs package resolvconf installed
|
|
#
|
|
# nameservers:
|
|
# - 194.150.168.168 # dns.as250.net
|
|
# - 91.239.100.100 # anycast.censurfridns.dk
|
|
# search: warenform.de
|
|
#
|
|
nameservers: []
|
|
search:
|
|
|
|
# optional additional subnets/ips subnets: []
|
|
# subnets:
|
|
# - '192.168.123.0/24'
|
|
# - '192.168.124.11/32'
|
|
|
|
# optional bridge parameters bridge: {}
|
|
# bridge:
|
|
# ports: <blank-seperated-list-of-devicenames-to-bind>
|
|
# stp: !!str off
|
|
# fd: 1
|
|
# hello: 2
|
|
# maxwait: 12
|
|
bridge: {}
|
|
|
|
# optional bonding parameters bond: {}
|
|
# bond:
|
|
# master:
|
|
# primary:
|
|
# slave:
|
|
# mode:
|
|
# miimon:
|
|
# lacp-rate:
|
|
# ad-select:
|
|
# downdelay:
|
|
# updelay:
|
|
bond: {}
|
|
|
|
# optional vlan settings | vlan: {}
|
|
# vlan: {}
|
|
# raw-device: 'eth0'
|
|
vlan: {}
|
|
|
|
# inline hook scripts
|
|
#
|
|
# example:
|
|
#
|
|
# up:
|
|
# - !!str "ip addr add 83.223.86.115/24 dev br0"
|
|
# - !!str "ip route add default via 83.223.86.1"
|
|
#
|
|
pre-up: [] # pre-up script lines
|
|
up: [] # up script lines
|
|
post-up: [] # post-up script lines (alias for up)
|
|
pre-down: [] # pre-down script lines (alias for down)
|
|
down: [] # down script lines
|
|
post-down: [] # post-down script lines
|
|
|
|
- device: <device-name>
|
|
# use only once per device (for the first device entry)
|
|
headline:
|
|
|
|
# auto & allow are only used for the first device entry
|
|
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
|
auto: true
|
|
|
|
family: inet6
|
|
method: static
|
|
address:
|
|
netmask: 64
|
|
description:
|
|
|
|
# optional dns settings nameservers: []
|
|
# nameservers:
|
|
# - "194.150.168.168" # dns.as250.net
|
|
# - "91.239.100.100" # anycast.censurfridns.dk
|
|
|
|
# optional additional subnets/ips subnets: []
|
|
# subnets:
|
|
# - '192.168.123.0/24'
|
|
# - '192.168.124.11/32'
|
|
|
|
# optional bridge parameters bridge: {}
|
|
# bridge:
|
|
# ports: <blank-seperated-list-of-devicenames-to-bind>
|
|
# stp: !!str off
|
|
# fd: 1
|
|
# hello: 2
|
|
# maxwait: 12
|
|
bridge: {}
|
|
|
|
# optional bonding parameters bond: {}
|
|
# bond:
|
|
# mode:
|
|
# miimon:
|
|
# master:
|
|
# slaves:
|
|
# lacp-rate:
|
|
bond: {}
|
|
|
|
# optional vlan settings | vlan: {}
|
|
# vlan: {}
|
|
# raw-device: 'eth0'
|
|
vlan: {}
|
|
|
|
# inline hook scripts
|
|
#
|
|
# example:
|
|
#
|
|
# up:
|
|
# - !!str "ip addr add 83.223.86.115/24 dev br0"
|
|
# - !!str "ip route add default via 83.223.86.1"
|
|
#
|
|
pre-up: [] # pre-up script lines
|
|
up: [] # up script lines
|
|
post-up: [] # post-up script lines (alias for up)
|
|
pre-down: [] # pre-down script lines (alias for down)
|
|
down: [] # down script lines
|
|
post-down: [] # post-down script lines
|
|
|