HowTo: MESA Ethernet Board Network Config Using systemd

More
13 Sep 2022 13:56 - 13 Sep 2022 15:16 #251805 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:

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):


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):

sudo vi /etc/systemd/network/20-wired.network

4. 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-networkd


To get the status (sudo not required):

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.
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.

More
13 Sep 2022 14:49 #251808 by tommylight
Number 1 is twice the same line.
Thank you.

Please Log in or Create an account to join the conversation.

More
13 Sep 2022 15:18 #251814 by fletch
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.

More
13 Sep 2022 16:05 #251820 by tommylight
LOL at reason for editing! :)

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.548 seconds
Powered by Kunena Forum