mirror of
				https://gitea.blesmrt.net/mikaela/shell-things.git
				synced 2025-11-04 03:17:34 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			810 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			810 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
	
	
[Match]
 | 
						|
Name=eth0
 | 
						|
 | 
						|
[Link]
 | 
						|
# My devices generally also have WiFi so lack of ethernet is not a reason
 | 
						|
# to wait for systemd-networkd-wait-online.service
 | 
						|
RequiredForOnline=no
 | 
						|
# Always set administrative state to up. Implies RequiredForOnline=yes
 | 
						|
#ActivationPolicy=always-up
 | 
						|
 | 
						|
[Network]
 | 
						|
#DHCP=yes
 | 
						|
# /24, /16, /8 are the the class C, B, A networks
 | 
						|
Address=192.168.0.2/24
 | 
						|
Gateway=192.168.0.1
 | 
						|
# DNS has no effect unless systemd-resolved is used. Why would it be used?
 | 
						|
# systemctl enable systemd-resolved && systemctl start systemd-resolved
 | 
						|
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
 | 
						|
#DNS=127.0.0.1
 | 
						|
#DNS=::1
 | 
						|
#DNS=8.8.4.4
 | 
						|
# Enable systemd-timesyncd with `timedatectl set-ntp true`, may be specified
 | 
						|
# multiple times, but you are using Chrony instead, right?
 | 
						|
#NTP=fi.pool.ntp.org
 | 
						|
#NTP=time.cloudflare.com
 |