摘要:
1. 首先设置IPsudo gedit /etc/network/interface默认设置使用dhcp,如下所示:iface eth0 inet dhcp将其内容用#屏蔽掉加上以下内容:auto lo
# iface eth0 inet dhcp
iface lo inet loopback auto eth0
iface eth0 inet static
address 192.168.0.168
netmask 255.255.255.0
gateway 192.168.0.1
# network 192.168.0.0
# broadcast 192.168.0.255备注:int.. 阅读全文