/etc/network/interfaces NAT ip修改

auto ens33
iface ens33 inet static
address 192.168.232.200
netmask 255.255.255.0
gateway 192.168.232.2
dns-nameservers 192.168.232.2

 

$ sudo ifconfig ens33 down
$ sudo ifconfig ens33 up

$ sudo /etc/init.d/networking restart

 

不起作用

posted on 2023-08-07 04:59  lydstory  阅读(22)  评论(0编辑  收藏  举报

导航