Connecting Atlas 200 DK to Ubuntu Server
Scenarios
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 any of the following modes:
- Direct Connection over the USB Port
In this mode, the Atlas 200 DK is only suitable for communication with the Ubuntu server due to inconvenience in Internet access.
- Direct Connection Through a Network Cable
In this mode, the Atlas 200 DK is only suitable for communication with the Ubuntu server due to inconvenience in Internet access.
- (Recommended) Connection Using a Router Through a Network Cable
This mode is recommended, because the Atlas 200 DK can directly access the Internet.
Direct Connection 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) to enable the communication between the Atlas 200 DK and the Ubuntu server.
- If you have changed the IP address of the USB virtual NIC of the Atlas 200 DK to be on the same network segment as the IP address of the USB virtual NIC on the Ubuntu server during SD card creation, skip the following operations.
- 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.
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 Atlas 200 DK has been connected to the Ubuntu server over 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 GitHub 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 virtual NIC for the first time. After the IP address of the USB virtual 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 GitHub 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 a static IP address of the USB NIC to the /etc/netplan/01-netcfg.yaml file.
Run the following command to open the network configuration 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:
Direct Connection Through a Network Cable
In this mode, the default IP address of the USB virtual NIC of the Atlas 200 DK is 192.168.0.2 with a 24-bit subnet mask. Therefore, the IP address of the USB virtual NIC on the Ubuntu server needs to be changed to 192.168.0.x (the value of x can be 0, 1, or 3–254) to enable the communication between the Atlas 200 DK and the Ubuntu server.
- If you have changed the IP address of the USB virtual NIC of the Atlas 200 DK to be on the same network segment as the IP address of the USB virtual NIC on the Ubuntu server during SD card creation, skip the following operations.
- After the network port on the Atlas 200 DK is connected to a network cable, if the yellow ACT indicator blinks, data is being transferred. 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 100 MB/10 MB 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
(Recommended) Connection Using a Router Through 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 on 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 Direct Connection 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. The IP address of the USB NIC of the Atlas 200 DK is the USB IP address set during card creation. For example, if the default IP address is 192.168.1.2, run the following command:
ssh HwHiAiUser@192.168.1.2
The default login password of the HwHiAiUser user is Mind@123.
- Change the login password. For the first login, a message indicating that the password has expired is displayed.
WARNING:Your password has expired.
In this case, change the password and log in again. Change the password by referring to Changing the Password for the HwHiAiUser User. After the password is changed, the system forcibly exits and the following information is displayed:
passwd: password updated successfully Connection to 192.168.1.2 closed.
Log in again with the new password.
ssh HwHiAiUser@192.168.1.2
- Switch to the root user.
su root
In this case, the system forces the user to change the password. Change the password by referring to Changing the Password for the root User.
- Run the following command to open the network configuration file:
- 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. The IP address of the USB NIC of the Atlas 200 DK is the USB IP address set during card creation. For example, if the default IP address is 192.168.1.2, run the following command:
- 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.
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.

