1. NTP server test
In my work recently, I encountered the need to use the function of ntp time calibration, because before the test, I need to know whether the specified ntp server can be used, search for information on the Internet, and use the command to test under the window. The test command is as follows:
w32tm /stripchart /computer:ntp server
Open the cmd window, enter commands in the window, and test. The ntp server of the first command cannot get the time normally, but the second command can get the server time normally. The test results are as follows:
2. How to connect the device to the network through the computer
Sometimes there is no available network interface around the device, and we only need to perform some simple networking operations, what should we do at this time?
Get a laptop with internet access.
Steps:
1. Connect the device and the laptop through a network cable;
2. Set the network of the notebook, open the control panel, and select the network connection;
3. Set the wlan wireless connection configuration, just confirm it directly, the settings are as follows:
4. To view the local ip, enter ipconfig
5. Set the ip and other parameters of the device, and check;
ifconfig e0 192.168.137.40 192.168.137.1 255.255.255.0 //设置ip等参数
6. Device Internet communication test, directly test the ntp server, the test results are as follows:
You can see that the device can access the Internet normally at this time.