This commit is contained in:
Eduard Tolosa 2019-04-06 20:28:00 -05:00
parent fe99904ffc
commit f861b7da1a
6 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[NetDev]
Name=bond1
Kind=bond
[Bond]
Mode=active-backup
PrimaryReselectPolicy=always
TransmitHashPolicy=layer3+4
MIIMonitorSec=1s
LACPTransmitRate=fast

View file

@ -0,0 +1,11 @@
[Match]
Name=bond1
[Network]
DHCP=ipv4
DNSOverTLS=opportunistic
DNSSEC=true
DNS=9.9.9.9
[DHCP]
UseDNS=no

View file

@ -0,0 +1,14 @@
[Match]
Name=enp2s0
[Network]
# DHCP=ipv4
# DNS=9.9.9.9
# DNSOverTLS=opportunistic
# DNSSEC=true
Bond=bond1
PrimarySlave=true
# [DHCP]
# RouteMetric=10
# UseDNS=no

View file

@ -0,0 +1,13 @@
[Match]
Name=wlp3s0
[Network]
# DHCP=ipv4
# DNS=9.9.9.9
# DNSOverTLS=opportunistic
# DNSSEC=true
Bond=bond1
# [DHCP]
# RouteMetric=20
# UseDNS=no

View file

@ -0,0 +1,12 @@
[Match]
Name=wlp0s20f0u2
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=30
UseDNS=no

View file

@ -15,6 +15,7 @@ general {
# order += "disk /"
order += "wireless _first_"
order += "ethernet _first_"
order += "path_exists bond"
order += "path_exists VPN"
order += "load"
order += "cpu_temperature 0"
@ -32,6 +33,12 @@ ethernet _first_ {
format_down = "E: down"
}
path_exists bond {
format = "Bonding: active"
format_down = "Bond: down"
path = "/proc/net/bonding/bond1"
}
battery all {
format = "%status %percentage"
status_chr = "⚡ CHR"