HowTo: MESA Ethernet Board Network Config Using systemd

More
4 years 1 month ago #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:

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.

More
4 years 1 month ago #251808 by tommylight
Number 1 is twice the same line.
Thank you.

Please Log in to join the conversation.

More
4 years 1 month ago #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 to join the conversation.

More
4 years 1 month ago #251820 by tommylight
LOL at reason for editing! :)

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum