找到网路配置修改的yaml:

cd /etc/netplan
boonya@boonya-VirtualBox:/etc/netplan$ ls
01-network-manager-all.yaml
boonya@boonya-VirtualBox:/etc/netplan$ sudo vi 01-network-manager-all.yaml
添加静态IP:

network:
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.0.10/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1,61.139.2.69]
version: 2
———————————————

sudo netplan apply

然后发现其他机器无法访问服务器的所有网络服务

后改V2RAY里的iptable

重启成功。

By bamboo

Leave a Reply

Your email address will not be published. Required fields are marked *

备案号:粤ICP备15019658号-1