All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rudolf J Streif" <rudolf.streif@ibeeto.com>
To: jchludzinski <jchludzinski@vivaldi.net>
Cc: Yocto <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] Assign IP address at boot time
Date: Wed, 10 Mar 2021 15:50:07 -0800	[thread overview]
Message-ID: <06146634-49f5-d665-6e2b-7169564748dc@ibeeto.com> (raw)
In-Reply-To: <0549f39814132d3d025fa22634c88f0e@vivaldi.net>


[-- Attachment #1.1.1.1: Type: text/plain, Size: 890 bytes --]


On 3/10/21 1:32 PM, jchludzinski wrote:
>> Create the file /etc/systemd/network/eth0.conf:
>>
>> [Match]
>> Name=eth0
>> [Network]
>> Address=<ip>
>> Gateway=<ip>
>> DNS=<ip>
>
> That didn't work BUT editing /lib/systemd/network/80-wired.network
> [Match]
> Name=en* eth*
> KernelCommandLine=!nfsroot
>
> [Match]
> Name=eth0
> [Network]
> Address=192.168.0.101/24
> #Gateway=<ip>
> #DNS=<ip>
>
> [Network]
> DHCP=no
>
> [DHCP]
> #RouteMetric=10
> #ClientIdentifier=mac
> ... did work, after:
> *root@arria10:~#* /systemctl restart systemd-networkd/
Preferred method for local configuration is using /etc/systemd/network. 
However, the probable reason why it did not work is that the file should 
be eth0.network. The name of the file(s) do not matter that much. The 
extension does though.

-- 
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700


[-- Attachment #1.1.1.2: Type: text/html, Size: 1850 bytes --]

[-- Attachment #1.1.2: OpenPGP_0x8D8CA82927339B75.asc --]
[-- Type: application/pgp-keys, Size: 1717 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 505 bytes --]

  reply	other threads:[~2021-03-10 23:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09 21:27 Assign IP address at boot time jchludzinski
2021-03-10  0:45 ` [yocto] " Rudolf J Streif
2021-03-10  7:34   ` jchludzinski
2021-03-10 16:02     ` Rudolf J Streif
2021-03-10 19:31       ` jchludzinski
2021-03-10 19:51         ` Rudolf J Streif
2021-03-10 21:32           ` jchludzinski
2021-03-10 23:50             ` Rudolf J Streif [this message]
2021-03-11 18:12               ` jchludzinski
2021-03-11 22:42                 ` Rudolf J Streif
2021-03-12  5:37                 ` Chen Qi
2021-03-10  9:39 ` Zoran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06146634-49f5-d665-6e2b-7169564748dc@ibeeto.com \
    --to=rudolf.streif@ibeeto.com \
    --cc=jchludzinski@vivaldi.net \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.