LS1028A:Network file configuration while system bootup

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1028A:Network file configuration while system bootup

732件の閲覧回数
gouravjain
Contributor IV

Hi All,

Can some one pls guide me where to configure ethernet ip address for eth0 port so system will preserve the ip address after boot up.

 

regards,

Gourav Jain

タグ(1)
0 件の賞賛
返信
1 返信

713件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

I assume that you are using Ubuntu rootfs filesystem.

To configure your system to use static address assignment, create a netplan configuration in the file /etc/netplan/99_config.yaml. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the addresses, routes, and nameservers values to meet the requirements of your network.

network:

  version: 2

  renderer: networkd

  ethernets:

    eth0:

      addresses:

        - 10.10.10.2/24

      routes:

        - to: default

          via: 10.10.10.1

      nameservers:

          search: [mydomain, otherdomain]

          addresses: [10.10.10.1, 1.1.1.1]

 

The configuration can then be applied using the netplan command.

sudo netplan apply

0 件の賞賛
返信