在UOS Server 20 下验证通过

root@nihaorz-PC:/etc/network# cat /etc/product-info
UnionTech OS Server 20 1040d 20210719 x86_64

 

编辑 /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 ens33
iface ens33 inet static
address 192.168.36.207/24
netmask 255.255.255.0
gateway 192.168.36.254

保存退出即可

相关文章:

  • 2022-01-15
  • 2021-05-24
  • 2021-09-24
  • 2022-01-20
  • 2021-05-03
  • 2021-10-09
猜你喜欢
  • 2022-01-22
  • 2021-12-04
  • 2021-04-07
  • 2021-04-22
  • 2021-06-06
  • 2021-05-19
相关资源
相似解决方案