- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- HowTo: MESA Ethernet Board Network Config Using systemd
HowTo: MESA Ethernet Board Network Config Using systemd
- fletch
- 
				 Topic Author Topic Author
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 139
- Thank you received: 70
			
	
						13 Sep 2022 13:56		 -  13 Sep 2022 15:16		#251805
		by fletch
	
	
		
			
	
	
			 		
													
	
				HowTo: MESA Ethernet Board Network Config Using systemd was created by fletch			
			
				This is a quick HowTo on the quickest and least intrusive way I have found to configure the network for a MESA 7i96 (or other Ethernet?) board.
The systemd network service means no more editing ifconfig files or installing Network Manager. It appears to play nicely with wpa_supplicant.conf too.
1. Setup systemd networking to start at boot:
2. Start the services (going forward they will be automatically started at boot):
3. Create the config file (I am using 'vi' but any other text editor will do):
4. Add the following text:
Close the file (Esc :wq for vi)
That's it! Next time you boot, your MESA card will be configured.
If you want yo use it immediately then:
To get the status (sudo not required):
I'm using this on a Raspberry Pi, so along with wpa_supplicant.conf in the /boot it makes for a very easy network setup.
					The systemd network service means no more editing ifconfig files or installing Network Manager. It appears to play nicely with wpa_supplicant.conf too.
1. Setup systemd networking to start at boot:
sudo systemctl enable systemd-resolved.service
sudo systemctl enable systemd-networkd.service2. Start the services (going forward they will be automatically started at boot):
sudo systemctl start systemd-resolved.service
sudo systemctl start systemd-networkd.service3. Create the config file (I am using 'vi' but any other text editor will do):
sudo vi /etc/systemd/network/20-wired.network4. Add the following text:
[Match]
Name=eth0
[Network]
DHCP=no
DNS=10.10.10.1
Gateway=10.10.10.1
Address=10.10.10.11/8
Close the file (Esc :wq for vi)
That's it! Next time you boot, your MESA card will be configured.
If you want yo use it immediately then:
systemctl restart systemd-networkdTo get the status (sudo not required):
systemctl status systemd-resolved.service
systemctl status systemd-networkd.serviceI'm using this on a Raspberry Pi, so along with wpa_supplicant.conf in the /boot it makes for a very easy network setup.
		Last edit: 13 Sep 2022 15:16  by fletch.		Reason: Wonky eyes	
	
		The following user(s) said Thank You: arvidb, tommylight 	
			Please Log in or Create an account to join the conversation.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20851
- Thank you received: 7107
			
	
						13 Sep 2022 14:49				#251808
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic HowTo: MESA Ethernet Board Network Config Using systemd			
			
				Number 1 is twice the same line.
Thank you.
					Thank you.
Please Log in or Create an account to join the conversation.
- fletch
- 
				 Topic Author Topic Author
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 139
- Thank you received: 70
			
	
						13 Sep 2022 15:18				#251814
		by fletch
	
	
		
			
	
			
			 		
													
	
				Replied by fletch on topic HowTo: MESA Ethernet Board Network Config Using systemd			
			
				Thank you - y'know, I looked at that line with suspicion several times... There's always one, isn't there?			
					Please Log in or Create an account to join the conversation.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20851
- Thank you received: 7107
			
	
						13 Sep 2022 16:05				#251820
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic HowTo: MESA Ethernet Board Network Config Using systemd			
			
				LOL at reason for editing!  
			
					 
			Please Log in or Create an account to join the conversation.
		Moderators: cmorley	
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- HowTo: MESA Ethernet Board Network Config Using systemd
		Time to create page: 0.134 seconds	
