【说明】
凝思 Linx系统需要获取激活码才能配置网络(没有激活码情况下,连接网线的网口通过ethtool查看一直是“Link detected:no”,iBMC可以查看到物理网口处于“连接”状态),激活码为16位数字和大写字母混合的字符串。如下以凝思 Linx 6.0.90为例(在/etc/network/interfaces中配置网络),说明凝思Linx ARM系统配置静态IP和动态IP方法。
1、获取激活码,16位数字和大写字母混合的字符串,假如为XXXXXXXXXXXXXXXX,将激活码配置在/etc/default/grub文件中:
GRUB_CMDLINE_LIUNX="linx_serial=XXXXXXXXXXXXXXXX security=linx"
【注】上面命令中的linx不要写成linux;
2、执行update-grub使配置生效:

【注】如果有报错,说明激活码不正确;
3、执行reboot重启凝思系统(必须);
4、【动态IP】修改/etc/network/interfaces文件(默认配置为dhcp),添加“auto enp125s0f0”开机自启网口(此处网口名为enp125s0f0,以实际网口名为准,通过ifconfig -a查看):
allow-hotplug enp125s0f0
auto enp125s0f0
iface enp125s0f0 inet dhcp

5、【动态IP】执行ifup enp125s0f0启动网口,然后执行ip a或ifconfig可以查看到获取的动态IP;
6、【静态IP】修改/etc/network/interfaces文件,添加“auto enp125s0f0”开机自启网口(此处网口名为enp125s0f0,以实际网口名为准,通过ifconfig -a查看):
allow-hotplug enp125s0f0
auto enp125s0f0
iface enp125s0f0 inet static
address 192.168.101.70 #设置静态IP
netmak 255.255.255.0 #设置掩码
network 192.168.101.1 #设置网络
gateway 192.168.101.1 #设置网关

7、【静态IP】执行ifup enp125s0f0启动网口,然后执行ip a或ifconfig可以查看到配置的静态IP:

【说明】
凝思 Linx系统需要获取激活码才能配置网络(没有激活码情况下,连接网线的网口通过ethtool查看一直是“Link detected:no”,iBMC可以查看到物理网口处于“连接”状态),激活码为16位数字和大写字母混合的字符串。如下以凝思 Linx 6.0.90为例(在/etc/network/interfaces中配置网络),说明凝思Linx ARM系统配置静态IP和动态IP方法。
1、获取激活码,16位数字和大写字母混合的字符串,假如为XXXXXXXXXXXXXXXX,将激活码配置在/etc/default/grub文件中:
GRUB_CMDLINE_LIUNX="linx_serial=XXXXXXXXXXXXXXXX security=linx"
【注】上面命令中的linx不要写成linux;
2、执行update-grub使配置生效:
【注】如果有报错,说明激活码不正确;
3、执行reboot重启凝思系统(必须);
4、【动态IP】修改/etc/network/interfaces文件(默认配置为dhcp),添加“auto enp125s0f0”开机自启网口(此处网口名为enp125s0f0,以实际网口名为准,通过ifconfig -a查看):
allow-hotplug enp125s0f0
auto enp125s0f0
iface enp125s0f0 inet dhcp
5、【动态IP】执行ifup enp125s0f0启动网口,然后执行ip a或ifconfig可以查看到获取的动态IP;
6、【静态IP】修改/etc/network/interfaces文件,添加“auto enp125s0f0”开机自启网口(此处网口名为enp125s0f0,以实际网口名为准,通过ifconfig -a查看):
allow-hotplug enp125s0f0
auto enp125s0f0
iface enp125s0f0 inet static
address 192.168.101.70 #设置静态IP
netmak 255.255.255.0 #设置掩码
network 192.168.101.1 #设置网络
gateway 192.168.101.1 #设置网关
7、【静态IP】执行ifup enp125s0f0启动网口,然后执行ip a或ifconfig可以查看到配置的静态IP: