linux网关设置实验
时间:2009-03-23 来源:sjhf
linux台linux:redhat 9
1台linux连接modem 其route一块网卡
eth0 192.168.0.111 信息
[root@server1 /]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
在这台机上启动转发
[root@server1 /]# echo 1 > /proc/sys/net/ipv4/ip_forward
上网,可以把XP上追踪,原来指向0.1这一跳.
此时111的网关设为0.111, 的.
将网关设为0.111也可以访问另一个子网了.
|
相关阅读 更多 +
排行榜 更多 +