LS1028A:Network file configuration while system bootup

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1028A:Network file configuration while system bootup

725 Views
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

Tags (1)
0 Kudos
Reply
1 Reply

706 Views
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 Kudos
Reply