Automatic IP case acquisition by edge computing

我们的盒子是安装在边缘,有网线连接局域网,我们有云端控制程序控制这些盒子,但刚刚发货到现场的时候,盒子是没有配置IP的,云端就不知道盒子的IP,这时候如果支持自动IP,那么局域网内是可以通过盒子上写一个局域网广播程序来实现。如果局域网属于比较安全网络,不支持自动IP,那么就得一个个盒子连接上显示器键盘鼠标去配置IP吗?
边缘计算自动获取ip案例
我们的盒子是安装在边缘,有网线连接局域网,我们有云端控制程序控制这些盒子,但刚刚发货到现场的时候,盒子是没有配置IP的,云端就不知道盒子的IP,这时候如果支持自动IP,那么局域网内是可以通过盒子上写一个局域网广播程序来实现。如果局域网属于比较安全网络,不支持自动IP,那么就得一个个盒子连接上显示器键盘鼠标去配置IP吗?
边缘计算自动获取ip案例
Our boxes are installed on the edge, and there are network cables to connect to the local area network. We have cloud control program to control these boxes. However, when the box is delivered to the site, it is not configured with IP, and the cloud does not know the IP of the box. At this time, if automatic IP is supported, a LAN broadcast program can be written on the box. If the LAN is a relatively secure network and does not support automatic IP, do you have to connect the display keyboard and mouse one by one to configure IP?

Hi,

If your cloud control program is outside your local network, I think your device need to ping to the cloud server first to register the connection. In such case, your edge box need an IP fisrt to access the internet network.

For static ip address on jetson:
Pls add the followed config to your /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.7.188
netmask 255.255.255.0
gateway 192.168.7.1
dns-nameservers 8.8.8.8

then, sudo reboot to take effect.

How to configure the IP of our box after it leaves the factory? We will have a cloud. How is the cloud connected with the box for the first time? How is the previous case usually done? Do you have any other cases to provide, that is, a little automation

报错 笔记