Connecting the Atlas 200 DK to the Ubuntu Server
Scenario Description
You can use a USB port or network cable to connect the Atlas 200 DK to the Ubuntu server, as shown in Figure 1.
The Atlas 200 DK can be connected to the Ubuntu server in the following modes:
- Connects to the Ubuntu server over the USB port. For details, see Connecting to the Ubuntu Server over the USB Port.
In this mode, the Atlas 200 DK cannot access the Internet. Only communication with the Ubuntu server is available.
- Connects the Atlas 200 DK to the router using a network cable and then to the Ubuntu server through the network. For details, see (Recommended) Connecting to the Ubuntu Server Through the Network by Connecting to a Router Using a Network Cable.
In this mode (recommended), the Atlas 200 DK can directly access the Internet.
- Connects the Atlas 200 DK to the network port of the Ubuntu server using a network cable. For details, see Connecting to the Ubuntu Server by Using a Network Cable.
In this mode, the Atlas 200 DK cannot access the Internet. Only communication with the Ubuntu server is available.
If you have changed the IP address of the Atlas 200 DK and that of the USB virtual NIC on the Ubuntu server to the same network segment during SD card preparation, skip the following steps of changing the IP address of the USB virtual NIC on the Ubuntu server.
Connecting to the Ubuntu Server over the USB Port
In this mode, the default IP address of the USB virtual NIC of the Atlas 200 DK is 192.168.1.2. Therefore, the IP address of the USB virtual NIC on the Ubuntu server needs to be changed to 192.168.1.x (the value of x can be 0, 1, or 3–254).
The following describes how to configure the IP address of the USB virtual NIC on the Ubuntu server manually and by using a script.
If the Ubuntu server is installed in a VM running Windows on the host, you need to install the USB virtual NIC driver on the Windows host by referring to Installing the Windows USB Network Adapter Driver. Otherwise, the USB virtual NIC of the Atlas 200 DK cannot be identified by the Ubuntu server.
If the Atlas 200 DK has been connected to the Ubuntu server using a USB port, perform the following steps for IP address configuration.
- Configuring the IP address by using a script:
- Download configure_usb_ethernet.sh from https://github.com/Huawei-Ascend/tools/tree/master/configure_usb_ethernet/for_1.7x.0.0 to any directory on the Ubuntu server, for example, /home/ascend/config_usb_ip/.
You can use the script only when configuring the IP address of the USB NIC for the first time. After the IP address of the USB NIC is configured, you can manually change the IP address by referring to Configuring the IP address manually.
- Go to the directory where the script for configuring the IP address of the USB virtual NIC is located as the root user, for example, /home/ascend/config_usb_ip.
- Configure the IP address of the USB virtual NIC:
bash configure_usb_ethernet.sh -s ip_address
Specify the static IP address of the USB NIC. If bash configure_usb_ethernet.sh is run directly, the default IP address 192.168.1.166 is used.
- If there are multiple USB NICs, run the ifconfig command to query the names of the USB NICs, and remove and insert the Atlas 200 DK to determine the USB NIC name of the Atlas 200 DK. The Atlas 200 DK is identified as a USB virtual NIC by the Ubuntu server. Run the following command to configure the IP address:
bash configure_usb_ethernet.sh -s usb_nic_name ip_address
usb_nic_name: name of the USB virtual NIC
ip_address: IP address to be configured
For example, to set the IP address of the USB virtual NIC on the Ubuntu server to 192.168.1.223, run the following command:
bash configure_usb_ethernet.sh -s enp0s20f0u8 192.168.1.223
After the configuration is complete, run the ifconfig command to check whether the IP address takes effect.
- If there are multiple USB NICs, run the ifconfig command to query the names of the USB NICs, and remove and insert the Atlas 200 DK to determine the USB NIC name of the Atlas 200 DK. The Atlas 200 DK is identified as a USB virtual NIC by the Ubuntu server. Run the following command to configure the IP address:
- Download configure_usb_ethernet.sh from https://github.com/Huawei-Ascend/tools/tree/master/configure_usb_ethernet/for_1.7x.0.0 to any directory on the Ubuntu server, for example, /home/ascend/config_usb_ip/.
- Configuring the IP address manually:
- Log in to the Ubuntu server as a common user and run the following command to switch to the root user:
su - root
- Obtain the name of the USB virtual NIC.
ifconfig -a
If there are multiple USB NICs, remove and insert the Atlas 200 DK to determine the required one.
- Add the static IP address of the USB NIC to the /etc/netplan/01-netcfg.yaml file.
Run the following command to open the 01-netcfg.yaml file:
vi /etc/netplan/01-netcfg.yaml
Add the network configuration of the USB NIC at the ethernets layer. For example, if the USB NIC name is enp0s20f0u4 and the static IP address is 192.168.1.223, the configuration should be as follows:ethernets: ... enp0s20f0u4: dhcp4: no addresses: [192.168.1.223/24] gateway4: 192.168.0.1 nameservers: addresses: [255.255.0.0]Enter :wq! to save the change and exit.
- Restart the network service.
After the reboot, run the ifconfig command to check whether the IP address of the USB NIC enp0s20f0u4 takes effect.
- Log in to the Ubuntu server as a common user and run the following command to switch to the root user:
(Recommended) Connecting to the Ubuntu Server Through the Network by Connecting to a Router Using a Network Cable
In this mode, the DHCP function needs to be enabled on the router, which will automatically assign an IP address to the Atlas 200 DK. The IP address obtaining mode of the NIC on the Atlas 200 DK should be changed to DHCP accordingly. You need to connect the Atlas 200 DK to the Ubuntu server using a USB cable, and then log in to the Atlas 200 DK in SSH mode through the Ubuntu server to change the mode of obtaining the virtual NIC IP address.
Assume that you have connected the Atlas 200 DK to the router using a network cable and enabled the DHCP function of the router. To connect to the Ubuntu server, perform the following steps:
- Connect the Atlas 200 DK to the Ubuntu server using a USB port, and configure the IP address of the USB NIC of the Ubuntu server. For details, see Connecting to the Ubuntu Server over the USB Port.
- Change the IP address obtaining mode of the NIC on the Atlas 200 DK to DHCP.
- Log in to the Atlas 200 DK as the HwHiAiUser user in SSH mode on the Ubuntu server.
ssh HwHiAiUser@192.168.1.2
The default IP address of the USB NIC on the Atlas 200 DK is 192.168.1.2.
The default login password of the HwHiAiUser user is Mind@123.
- Switch to the root user and open the network configuration file.
su root
vi /etc/netplan/01-netcfg.yaml
- Change the IP address obtaining mode of eth0 to DHCP.
Modify the configuration of eth0 as follows.
eth0: dhcp4: true addresses: [] optional: true - Save the modifications and exit.
- Log in to the Atlas 200 DK as the HwHiAiUser user in SSH mode on the Ubuntu server.
- Restart the network service.
The Atlas 200 DK can access the Internet now.
- Run the ifconfig command to obtain the IP address of eth0. This IP address and that of the USB NIC can be used to communicate with the Ubuntu server.
Connecting to the Ubuntu Server by Using a Network Cable
- The default IP address of the NIC on the Atlas 200 DK is 192.168.0.2, and the subnet mask if of 24 bits.
- After the network port on the Atlas 200 DK is connected to a network cable, if the yellow ACT indicator blinks, data is being transmitted. When the network port of the Atlas 200 DK accesses the GE network, the green LINK indicator is on. When the network port of the Atlas 200 DK accesses the 100M/10M Ethernet network, the LINK indicator is off, which is normal.
Perform the following steps:
- Log in to the Ubuntu server as a common user and run the following command to switch to the root user:
su - root
Follow-up Operations
After the Atlas 200 DK is connected to the Ubuntu server, you can determine whether to reboot the OS on the Atlas 200 DK or power off the Atlas 200 DK based on the Atlas 200 DK LED indicators. For details, see Table 1.
Restart or power off the server or Atlas 200 DK with caution, especially when the Atlas 200 DK is being upgraded.

