- Posts: 140
- Thank you received: 0
HowTo: MESA Ethernet Board Network Config Using systemd
4 years 1 month ago #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:
Code:
sudo systemctl enable systemd-resolved.service
sudo systemctl enable systemd-networkd.service
2. Start the services (going forward they will be automatically started at boot):
Code:
sudo systemctl start systemd-resolved.service
sudo systemctl start systemd-networkd.service
3. Create the config file (I am using 'vi' but any other text editor will do):
Code:
sudo vi /etc/systemd/network/20-wired.network
4. Add the following text:
Code:
[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:
Code:
systemctl restart systemd-networkd
To get the status (sudo not required):
Code:
systemctl status systemd-resolved.service
systemctl status systemd-networkd.service
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.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
4 years 1 month ago #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 to join the conversation.
4 years 1 month ago #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 to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
4 years 1 month ago #251820
by tommylight
Replied by tommylight on topic HowTo: MESA Ethernet Board Network Config Using systemd
LOL at reason for editing!
Please Log in to join the conversation.
Time to create page: 0.077 seconds
