2012年4月9日
摘要: 静态方法注意:所有操作均使用root用户#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up 说明: eth0是第一个网卡,其他依次为eth1,eth* 192.168.0.1是给网卡配置的第一个网卡配置的ip地址 netmask 255.255.255.0 配置的是子网掩码 up是表示立即激活 ifconfig的更多参数说明查看相关帮助 gateway: # route add default gw 192.168.30.1 eth0 dns: # vi etc/resolv.conf nameserver 202.131.80.1 ... 阅读全文
posted @ 2012-04-09 09:20 NationWoo 阅读(841) 评论(0) 推荐(0) 编辑
摘要: IP: ifconfiggateway:[root@localhost ~]# netstat -rnKernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface172.16.44.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8172.16.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1172.16.0.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0169.254.0.0 0.0.0.0 255.255... 阅读全文
posted @ 2012-04-09 09:18 NationWoo 阅读(7872) 评论(0) 推荐(0) 编辑