LS1028A:Network file configuration while system bootup

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LS1028A:Network file configuration while system bootup

726 次查看
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 回复

707 次查看
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 项奖励
回复