摘要:
环境:Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic i686)网络配置#临时改变#修改IP和子网掩码sudo ifconfig eth0 192.168.0.100 netmask 255.255.255.0#修改网关sudo route add default gw 192.168.0.2 eth0#永远改变vi /etc/network/interfaces#添加如下内容auto eth0iface eth0 inet staticaddress 192.168.0.100netmask 255.255.255.0gateway 192.16 阅读全文