操作系统版本:Linux uos 4.19.0-6-server-amd64 #1 SMP Uos 4.19.67-16fou(2020-09-07) x86_64 GNU/linux
查看网卡名称
编辑网卡配置文件
配置文件路径为:/etc/network/interfaces
添加配置内容
auto ens33 #网卡名称iface ens33 inet static #address 192.168.168.22 #实际IP地址netmask 255.255.255.0 #子网掩码gateway 192.168.168.1 #网关地址
重启网卡
systemctl restart networking
