On 02/09/2021 05:04 PM, dtra...@tampabay.rr.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.



OK, what does:

systemctl |grep -i net

Yield?

What does:

ip link

Return?



-----------------------------------------

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";>
    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

Reply via email to