Got it

I can\\\\\\\\\\\\\\\'t connect to internet from Atlas and access via USB cable type C

Created: Apr 27, 2021 09:31:57Latest reply: Apr 30, 2021 06:26:31 588 17 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Dear all,


I need help connecting my Atlas 200DK to the internet. how to configure the right IP?

I connect my atlas via USB type C and Network RJ45. I can't connect via USB(192.168.1.2), the terminal said "connection refused" however, I can connect to atlas via 192.168.0.2 but can't ping to yahoo.com for example.


Thank you


netplan atlas

That's my netplan in Atlas, how to set it into the right connection?

aa

Try to ping and failed

ssh

ssh via USB type C (192.168.1.2) but the connection refused


netplan in ubuntu

My netplan setting in ubuntu


ifconfig

And my ifconfig in ubuntu


Featured Answers
user_4147187
MVE Created Apr 29, 2021 08:54:58

Hi

However, as can be seen from the figure, this IP has been conflicted, and replacing a network segment should be able to solve it.

1. I assume that you already have a router, your PC has access to the Internet through the router, and your router currently has a network port, so please connect the development board to this network port with a network cable.

2. Log in to the development board using USB mode, and switch to root:

 ssh HwHiAiUser@host_ip 

For the Atlas 200 DK, host_ip defaults to 192.168.1.2 (USB connection).

 su root

3. Edit the interfaces file to configure dynamic IP allocation (make sure your router has DHCP capability enabled) : 

vim /etc/network/interfaces

 In the interfaces file, change the configuration of eth0 to the following two lines: 

auto eth0 

iface eth0 inet dhcp 

3. Restart the development board 

reboot 

After rebooting, the development board can be connected to the Internet. At this time, you can try Ping Baidu: 

ping www.google.com

Note: If you do not want to restart the development board, you can also execute the following command: ifdown eth0 

ifup eth0 

service networking restart 


I hope I can help you.

:)

View more
  • x
  • convention:

All Answers
Hi,

Please wait for a minute.
View more
  • x
  • convention:

The picture is , Auditing。
Do you have router ? connect Atlas200DK ETH0 to router 。configure eth0 dhcp。

refer to this:

https://support.huaweicloud.com/intl/en-us/environment-deployment-Atlas200DK202/atlased_04_0014.html


eth0:
      dhcp4: true
      addresses: []
      optional: true

View more
  • x
  • convention:

Hello han77,

in order to connect to your Atlas 200 DK via USB C you need to configure the virtual network on your Ubuntu development environment (your PC).
I am asuimg that you use Ubuntu 18.04 for the development.

1. Switch to root user (=administrator on linux):

        su root
2. Enter the password for the root user.
3. Edit the netplan
        gedit /etc/netplan/01-network-manager-all.yaml
4. Make the netplan look as follows:        

netplan

    you need to watch out. netplan is indent sensitive just like python!
    And you have to replace enp0s12u2 with your USB connection. You can find it using:
        ifconfig -a

5. Apply the netplan

        netplan apply

6. Switch back to normal user

        exit

Here is the set up process in detail:
Connecting Atlas 200 DK to Ubuntu Server_Atlas 200 DK AI developer kit (1.0.8.alpha) _Environment Deployment_Setting Up the Hardware Environment_HUAWEI CLOUD

If you are using a virtuall machine for running Ubuntu than you have to pass trough the USB. This procedure depends on the VM software you are using.
I am using Oracle Virtual Box:

virtualbox setup usb


Internet / Ethernet:
My Huawei Atlas 200 DK connects automatically to the internet. I can use for example wget to download stuff.
But it depends on your network. My home network allows the atlas to use the internet. My companies network doesn't allow the Atlas 200 DK to enter the internet.

Best,
Daniel

View more
  • x
  • convention:

Posted by windyxyz at 2021-04-27 12:50 The picture is , Auditing。 Do you have router ? connect Atlas200DK ETH0 to router 。configure eth0 ...
Yes, I connect directly from the router to Atlas. oke I'll try to change eth0
View more
  • x
  • convention:

Posted by windyxyz at 2021-04-27 12:50The picture is , Auditing。 Do you have router ? connect Atlas200DK ETH0 to router 。configure eth0 ...

I try this but doesn't work for me, thank you anyway!

View more
  • x
  • convention:

Posted by Daniel_EdgeAI at 2021-04-27 12:56Hello han77,in order to connect to your Atlas 200 DK via USB C you need to configure the virtual net ...

Hi Daniel, thank you for your answer. I try your solution but doesn't work for me. By the way, I use native linux in external hdd

View more
  • x
  • convention:

Posted by han77 at 2021-04-27 14:10 Posted by Daniel_EdgeAI at 2021-04-27 14:10Hello han77,in order to connect to your Atlas 200 DK via U ...
Ok what a pity.

Did you use the name of your network adapter which you can find using ifconfig instead of enp0s12u2?
View more
  • x
  • convention:

Posted by Daniel_EdgeAI at 2021-04-27 14:59 Ok what a pity.Did you use the name of your network adapter which you can find using ifconfig inst ...

ifconfig

you mean this? enp3s0 is my external hdd but no IP address assigned for that and enp0s20fu2 is my Atlas connection through USB type C

View more
  • x
  • convention:

Posted by han77 at 2021-04-27 15:57 you mean this? enp3s0 is my external hdd but no IP address assigned for that and enp0s20fu2 is my ...

ifconfig

ohh my bad, enp3s0 is my ethernet card not external hdd. I connect my network cable to my laptop now but still I can't connect to network from atlas

View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.