[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.