发布网友 发布时间:2022-05-01 19:40
共1个回答
热心网友 时间:2022-06-22 02:24
首先设置IPsudo gedit /etc/network/interface将其内容删除加上一下内容auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.1.47netmask 255.255.255.0network 192.168.1.0broadcast 192.168.1.255gateway 192.168.1.1保存然后修改DNSsudo gedit /etc/resolv.conf将内容修改为nameserver 202.112.14.151nameserver 218.6.200.139nameserver 61.139.2.69查看dnsless /etc/resolv.conf保存重启网络连接sudo /etc/init.d/networking stopsudo /etc/init.d/networking startsudo /etc/init.d/networking restart查看路由相关信息:route -n