|
|
发表于 2005-1-15 18:35:07
|
显示全部楼层
假设你的网卡ip设为192.168.0.25,网关ip为192.168.0.10
* "ifconfig eth0 192.168.0.25 netmask 255.255.255.0 up"
* "route" to check the routing table
* "route add 192.168.0.25 eth0"
* "route add -net 192.168.0.0 netmask 255.255.255.0 eth0"
* "route add default gw 192.168.0.10 eth0"
* "route add -host 127.0.0.1 lo" |
|