In ARMlinux development, we often set the host Ubuntu to a static IP address. This has some advantages. For example, serverip in your uboot environment variable does not need to be changed each time. I have been doing this all the time, but today I suddenly found that this will bring a lot of problems. Let me first talk about the situation I encountered: Do a Good Job of ubuntu and the development board, everything is OK. The following symptoms are suddenly detected when you open the server today: 1. SecureCRT suddenly prompts a remote host to reject the connection. This problem is caused by the host's ssh server.
During ARM linux development, we often set the host Ubuntu to a static IP address. This has some advantages. For example, serverip in your uboot environment variable does not need to be changed each time.
I have been doing this all the time, but today I suddenly found that this will bring a lot of problems. First, let me talk about the situation:
For ubuntu and the development board, everything is OK. The following symptoms are suddenly detected when you open it today:
1. SecureCRT suddenly prompts the remote host to reject the connection. Baidu searches for this problem because the host's ssh service is not enabled, but I have enabled it and verified it with netstat.
2. In uboot, tftp is always unsuccessful in downloading files, and it won't work if you try again multiple times. I have encountered a similar situation before. I just need to re-install uboot. This time I re-installed uboot, but it still won't work.
3. Try again in linux and use tftp to download files. The error message "time out" fails. ·····
Open another virtual machine and try to download tftp from the Development Board linux. So I suspected that I had broken the ubuntu Virtual Machine. Fortunately, this ubuntu was saved once before, and it was still unsuccessful to restore to that version ·····
Suddenly, the difference between ubuntu and ubuntu is that the ip address is different. The successful ubuntu is the IP address automatically allocated by dhcp, and the failed one is the IP address specified by static. Therefore, record the IP address allocated by dhcp, disable Ubuntu, and change the failed ubuntu IP address to this IP address. Try again. Both SecureCRT and tftp are back to normal.
So far, things have been very clear. The automatically assigned IP address will certainly not conflict with the IP address, but the static IP address will be used when DHCP automatically allocates the IP address because someone else in the LAN opens the machine first than you, then you will suffer.