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.