mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
fe99904ffc
commit
f861b7da1a
6 changed files with 67 additions and 0 deletions
10
etc/network/10-bond1.netdev
Normal file
10
etc/network/10-bond1.netdev
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[NetDev]
|
||||
Name=bond1
|
||||
Kind=bond
|
||||
|
||||
[Bond]
|
||||
Mode=active-backup
|
||||
PrimaryReselectPolicy=always
|
||||
TransmitHashPolicy=layer3+4
|
||||
MIIMonitorSec=1s
|
||||
LACPTransmitRate=fast
|
||||
11
etc/network/10-bond1.network
Normal file
11
etc/network/10-bond1.network
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Match]
|
||||
Name=bond1
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
DNSOverTLS=opportunistic
|
||||
DNSSEC=true
|
||||
DNS=9.9.9.9
|
||||
|
||||
[DHCP]
|
||||
UseDNS=no
|
||||
14
etc/network/20-wired.network
Normal file
14
etc/network/20-wired.network
Normal 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
|
||||
13
etc/network/25-wireless.network
Normal file
13
etc/network/25-wireless.network
Normal 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
|
||||
12
etc/network/26-wireless.network
Normal file
12
etc/network/26-wireless.network
Normal 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
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue