Advantages and disadvantages of setting Ubuntu to a static IP address in ARM development

Source: Internet
Author: User
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.

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.