执行ip addr
,我这是enp3s0
sudo ip link set enp3s0 up
sudo ip addr add 192.168.1.13/24 dev enp3s0
sudo ip route add default via 192.168.1.1
sudo echo "nameserver 119.29.29.29" >> /etc/etc/resolv.conf
IP地址需要根据实际情况修改
路由与交换系列之IPv6与IPv6默认路由与静态路由的配置实验分享