Static IP Assignment

Ubuntu 17.10, 18.04, and higher follow the steps below to assign the static IP to DUT's 1G or 10G interface.
  1. Create .yaml config file for netplan in /etc/netplan if it does not exist. A number prefix is used for orderly processing. For more information, refer to man netplan.
    Note: Replace eth0 with your system's interface name
    sudo cat >/etc/netplan/01-network-manager-all.yaml
     network:
               version: 2
               renderer: networkd
               ethernets:
                       eth0:                                        # Use your interface name
                              dhcp4: no
                              dhcp6: no
                              addresses:
                                               - 10.0.0.X/22    # Your IP address
                              gateway4: 10.0.0.1            # Your gateway
                              nameservers:
                                                search: [nvidia.com, client.nvidia.com, nvclient.nvidia.com]  #Your corp domain names
                                                addresses: [DNS1,DNS2]
  2. Once the editing of 01-network-manager-all.yaml is completed, apply the settings:
    sudo netplan apply
  3. To review the configuration:
     ip addr
    ip show
    

    Clearly mention the windowing system used ( X, Wayland ,lightdm, etc.).