ip配置:
vim /etc/network/interfaces
auto eth0
iface eth0 inet static ===>静态
iface eth0 inet dhcp ===>动态
address 192.168.0.133
netmask 255.255.255.0
gateway 192.168.0.1
dns配置:
vim /etc/resolv.conf
nameserver dns地址
service networking restrat
如对本文有疑问,
点击进行留言回复!!
网友评论