ubuntu系统修改网卡ip 发表于 2019-04-22 | | 阅读次数: | 需求:将ubuntu系统ens33网卡ip修改为192.168.244.140 1.编辑/etc/network/interfaces文件 1234567891011meichaofan@ubuntu:~$ cat /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopback# 新增内容auto ens33iface ens33 inet staticaddress 192.168.244.140netmask 255.255.255.0gateway 192.168.244.2 2.重启网卡 1sudo /etc/init.d/networking restart