[Reprinted] The 4412 Development Board, PC, and ubuntu are connected through a network cable, and the 4412 ubuntu

Source: Internet
Author: User

[Reprinted] The 4412 Development Board, PC, and ubuntu are connected through a network cable, and the 4412 ubuntu

Today, we can see that the Development Board uses TFTP to download programs directly from ubuntu without having to download them through the burning file system all the time. I tried it and the virtual machines, development boards, and PCs won't be able to ping each other. After a long struggle, I finally solved the problem.

Write down this note for your reference.

 

I only have one Development Board, pc, and network cable.

My reference: http://jingyan.baidu.com/article/f25ef25414e8ea482d1b8265.html

Http://www.cnblogs.com/gylei/archive/2011/12/10/2283484.html

 

 

1. Let's take a look at the three ip settings to ensure that all ip addresses are in the same CIDR block. Skip these settings.

In my notebook, the local connection settings are as follows:

 

 

The Development Board IP address, which is set when the file system is created:

 

For the Ubuntu IP address, you must set a static IP address as follows:

 

 

If you want to configure a static IP address, you need to edit/etc/network/interfaces and enter the following lines (assume that your Nic is eth0)

 

The content written by sudo vi/etc/network/interfaces is as follows. Set the number as needed:

 

Auto eth0

Iface eth0 inet static

Address 192.168.114.128 // your ubuntu IP address

Gateway 192.168.114.11 // gateway setting key: IP address of your PC

Netmask 255.255.255.0 // Subnet Mask

 

Sudo/etc/init. d/networking restart

 

After these settings are complete, the Development Board can ping the notebook, but the ping to the virtual machine should not work.

 

Set virtual machines:

 

Set it to the bridge mode.

 

Now the three should ping each other and mount nfs and tftp.

 

The answer to my question is: the ubuntu gateway needs to be set to the IP address of the pc.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.