原帖由 scpe 于 2007-4-2 20:11 发表于 1楼
我用linux做路由器,装两块网卡,eth1地址为192.168.1.120,网段为192.168.50.0 另一个eth1地址为192.168.50.100 网段为192.168.1.0。缺省网关设置为192.168.1.1,开启了IP转发功能,即:
echo 1 > /proc/sy ...
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.50.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
SNAT双向互通.jpg (62.71 KB, 下载次数: 30)
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |