峯言凬语 My life is brilliant~
本无意与众不同,怎奈何口味太重。
文章分类
常用标签
February 2, 2019

查看network:
ifconfig

修改IP:
vi /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.88
netmask 255.255.255.0
gateway 192.168.0.1

修改DNS:
vi /etc/resolve.conf

nameserver 127.0.0.1
nameserver 8.8.8.8

重启网络:
/etc/init.d/networking restart

暂无评论

添加新评论