This commit is contained in:
2021-11-05 15:17:48 +01:00
parent f662fe0f30
commit 466c99375c
36 changed files with 5444 additions and 215 deletions

View File

@ -16,8 +16,9 @@ network_interface_required_packages:
- vlan
- bridge-utils
- ifmetric
- ifupdown2
- ifupdown
- ifenslave
- resolvconf
network_interfaces:
@ -34,47 +35,15 @@ network_interfaces:
auto: true
family: <inet|inet6>
# The statisc Mode
# Options
# address <dotted quad address[/netmask]>
# gateway <dotted quad address>
# pointopoint <Address of other end point (dotted quad). Note the spelling of "point-to">
# hwaddress <mac-address>
# mtu <size>
# scope <Address validity scope. Possible values: global, link, host>
#
# The manual Method
# Options
# hwaddress <mac-address>
# mtu <size>
#
# The dhcp Method
# Options
# hwaddress <mac-address>
# hostname <Hostname to be requested (pump, dhcpcd, udhcpc)>
# metric <metric>
# leasehours <Preferred lease time in hours (pump)>
# leasetime <Preferred lease time in seconds (dhcpcd)>
# vendor <Vendor class identifier (dhcpcd)>
# client <Client identifier (dhcpcd), or "no" (dhclient)>
#
# The bootp Method
# Options
# bootfile: <file: Tell the server to use 'file' as the bootfile.>
# server: <address: Use the IP address 'address' to communicate with the server.>
# hwaddr <mac-address: Use addr as the hardware address instead of whatever it really is.>
#
method: <manual|static|dhcp|bootp|tunnel|ppp|wvdial|ipv4ll|none|loopback)
mode: <manual|statis|dhcp|bootp|tunnel|ppp|wvdialipv4ll|none|loopback)
hwaddress ether: ac:1f:6b:d1:20:f2
description: Bridge Interface IPv4 for LXC
address: <ipv4/ipv6-address>
# dotted quad or number of bits
#
# the entry will be: address/netmask
netmask:
gateway:
netmask: <netmask>
gateway: <gateway-address>
metric:
pointopoint:
mtu:
@ -93,12 +62,18 @@ network_interfaces:
bootfile:
server:
hwaddr:
# optional dns settings nameservers: []
# nameservers:
# - "194.150.168.168" # dns.as250.net
# - "91.239.100.100" # anycast.censurfridns.dk
# 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:
- 195.201.179.131
- 95.217.204.204
search: oopen.de
# optional additional subnets/ips subnets: []
# subnets:
@ -107,17 +82,12 @@ network_interfaces:
# optional bridge parameters bridge: {}
# bridge:
# ports:
# stp:
# fd:
# maxwait:
# waitport:
bridge:
ports: <blank-seperated-list-of-devicenames-to-bind> # for mor devices support a blank separated list
stp: !!str off
fd: 1
hello: 2
maxage: 12
# ports: <blank-seperated-list-of-devicenames-to-bind>
# stp: !!str off
# fd: 1
# hello: 2
# maxwait: 12
bridge: {}
# optional bonding parameters bond: {}
# bond:
@ -138,6 +108,13 @@ network_interfaces:
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)
@ -145,17 +122,19 @@ network_interfaces:
down: [] # down script lines
post-down: [] # post-down script lines
- device: eno2
- device: <device-name>
# use only once per device (for the first device entry)
headline: eno2 - LAN Interface VLAN definition
headline:
# auto & allow are only used for the first device entry
allow: [] # array of allow-[stanzas] eg. allow-hotplug
auto: true
family: inet
mode: manual
description: LAN Interface only VLAN definition
family: inet6
method: static
address:
netmask: 64
description:
# optional dns settings nameservers: []
# nameservers:
@ -169,11 +148,11 @@ network_interfaces:
# optional bridge parameters bridge: {}
# bridge:
# ports:
# stp:
# fd:
# maxwait:
# waitport:
# ports: <blank-seperated-list-of-devicenames-to-bind>
# stp: !!str off
# fd: 1
# hello: 2
# maxwait: 12
bridge: {}
# optional bonding parameters bond: {}
@ -191,71 +170,17 @@ network_interfaces:
vlan: {}
# inline hook scripts
pre-up: # pre-up script lines
- ip link set $IFACE up
- ip link add link eno2 name eno2.11 type vlan id 11
up: [] # up script lines
post-up: [] # post-up script lines (alias for up)
pre-down: # pre-down script lines (alias for down)
- ip link set $IFACE down
down: [] # down script lines
post-down: [] # post-down script lines
- device: eno2.11
# use only once per device (for the first device entry)
headline: eno2.11 - LAN Interface IPv4 for LXC host
# auto & allow are only used for the first device entry
allow: [] # array of allow-[stanzas] eg. allow-hotplug
auto: true
family: inet
mode: auto
description: Bridge Interface IPv4 for LXC
address: '10.10.11.4'
netmask: '255.255.255.0'
gateway: '10.10.11.254'
# 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:
# stp:
# fd:
# maxwait:
# waitport:
# optional bonding parameters bond: {}
# bond:
# master
# primary
# slave
# mode:
# miimon:
# lacp-rate:
# ad-select-rate:
# master:
# slaves:
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