I am using an image based on the v4.0.0.0 variant but I needed to rebuild it to overcome some other issues with the image. What you listed does work for me. If the link is not active, looking at the output of `ip addr` will not show any inet address(es). I don't see any obvious typos/differences between what you provided and what I am using but including the contents just to be safe. As far as I know the name should not make any difference provided it ends with `.network`.
root@ni-e31x-31D7B0C:~# cat /etc/systemd/network/20-wired.network [Match] Name=eth0 [Network] Address=192.168.200.250/24 root@ni-e31x-31D7B0C:~# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:80:2f:30:8f:ca brd ff:ff:ff:ff:ff:ff inet 192.168.200.250/24 brd 192.168.200.255 scope global eth0 valid_lft forever preferred_lft forever root@ni-e31x-31D7B0C:~# systemctl | grep -i net sys-devices-soc0-amba-e000b000.ethernet-net-eth0.device loaded active plugged /sys/devices/soc0/amba/e000b000.ethernet/net/eth0 sys-subsystem-net-devices-eth0.device loaded active plugged /sys/subsystem/net/devices/eth0 systemd-networkd.service loaded active running Network Service systemd-resolved.service loaded active running Network Name Resolution systemd-timesyncd.service loaded active running Network Time Synchronization systemd-networkd.socket loaded active running Network Service Netlink Socket network-pre.target loaded active active Network (Pre) network.target loaded active active Network nss-lookup.target loaded active active Host and Network Name Lookups Hope this helps. On Tue, Feb 9, 2021 at 5:47 PM Dennis Trask via USRP-users < usrp-users@lists.ettus.com> wrote: > Thanks, Marcus. > > That was actually what I attempted first. As described in the man page ( > https://www.freedesktop.org/software/systemd/man/systemd.network.html) I > created eth0.network under /etc/systemd/network/, with these contents: > > [Match] > Name=eth0 > > [Network] > Address=192.168.200.2/24 > > The system seemed to ignore this configuration, however. > > > > ----------------------------------------- > From: "Marcus D. Leech via USRP-users" > To: usrp-users@lists.ettus.com > Cc: > Sent: Tuesday February 9 2021 4:42:34PM > Subject: Re: [USRP-users] E310 with v4.0.0.0 Image: Configure Static IP > > On 02/09/2021 04:35 PM, Dennis Trask via USRP-users wrote: > > I have re-imaged the SD card for my E310 with the v4.0.0.0 image. I cannot > figure out how to set a static IP address on eth0 at boot-up. I created an > /etc/network/interfaces file that looks like this: > > auto eth0 > iface eth0 inet static > address 192.168.200.2 > netmask 255.255.255.0 > > I can run the command "ifup eth0" and bring up the interface with the > desired configuration, but it does not initialize when I reboot. > > The SD image I am using was obtained with the command: > uhd_images_downloader -t e310 -t sg3 > > I built the uhd_images_downloder from source, and it's version > is 4.0.0.HEAD-0-g90ce6062. > > Dennis > > > > _______________________________________________ > USRP-users mailing list > "mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com > "http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com"> > <http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com> > target= > "_blank"> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > > It almost certainly is running systemd/networkd > > So look under /etc/systemd/networkd > > In Linux, there have historically been many different ways to configure > network devices, and even under systemd, there are a couple of > different schemes "out there". I believe that in a UHD 4 system image > on E310, it is based on Networkd. > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com