预览加载中,请您耐心等待几秒...
1/5
2/5
3/5
4/5
5/5

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

基于Linux策略路由的实现 作者:HYPERLINK"http://www.yuanma.org/member.php?action=show&username=webmaster"\t"_blank"来源:HYPERLINK"http://www.yuanma.org/data/2006/1212/cqs1015.cublog.cn"\t"_blank"cqs1015.cublog.cn发表时间:2006-12-12浏览次数:107字号:HYPERLINK"javascript:fontZoom(16)"大HYPERLINK"javascript:fontZoom(14)"中HYPERLINK"javascript:fontZoom(12)"小 基于LINUX策略路由的实现一、网络结构eth010.43.128.10gw10.43.0.254-->interneleth161.144.64.106gw61.144.64.1-->interneleth2192.168.0.2gw192.168.0.1-->internel二、实现目的:1.不改变现有网络拓扑结构。2.根据目的地址确定数据走向,所有到10.45.0.0/16、10.10.0.0/16的走10.43.0.254。3.根据源地址确定数据走向,10.43.128.63走adsl路由,其它走默认main路由。三、软件要求:IPROUTE[root@ADSLroot]#rpm-qa|grepiproute(查看是否有iproute软件包)iproute-2.4.7-7.AS21.1四、实现步骤:[root@ADSLroot]#iplink(查看本地链路)1:lo:<LOOPBACK,UP>mtu16436qdiscnoqueuelink/loopback00:00:00:00:00:00brd00:00:00:00:00:002:eth0:<BROADCAST,MULTICAST,PROMISC,UP>mtu1500qdiscpfifo_fastqlen100link/ether00:90:27:99:1d:fabrdff:ff:ff:ff:ff:ff3:eth1:<BROADCAST,MULTICAST,UP>mtu1500qdiscpfifo_fastqlen100link/ether00:40:05:11:fe:78brdff:ff:ff:ff:ff:ff4:eth2:<BROADCAST,MULTICAST,UP>mtu1500qdiscpfifo_fastqlen100link/ether00:40:05:42:65:88brdff:ff:ff:ff:ff:ff[root@ADSLroot]#ipadd(查看本地地址)1:lo:<LOOPBACK,UP>mtu16436qdiscnoqueuelink/loopback00:00:00:00:00:00brd00:00:00:00:00:00inet127.0.0.1/8brd127.255.255.255scopehostlo2:eth0:<BROADCAST,MULTICAST,PROMISC,UP>mtu1500qdiscpfifo_fastqlen100link/ether00:90:27:99:1d:fabrdff:ff:ff:ff:ff:ffinet10.43.128.10/16brd10.43.255.255scopeglobaleth03:eth1:<BROADCAST,MULTICAST,UP>mtu1500qdiscpfifo_fastqlen100link/ether00:40:05:11:fe:78brdff:ff:ff:ff:ff:ffinet61.144.64.106/24brd61.144.64.255scopeglobaleth14:eth2:<BROADCAST,MULTICAST,UP>mtu1500qdiscpfifo_fastqlen100link/ether00:40:05:42:65:88brdff:ff:ff:ff:ff:ffinet192.168.0.2/24brd192.168.0.255scopeglobaleth2[root@ADSLroot]#iproute(查看本地路由和iproutelstablemain或route命令相等)192.168.0.0/24deveth2scopelink61.144.64.0/24deveth1scopelink10.10.0.0/16via10.43.0.254deveth010.43.0.0/16deveth0scopelink10.45.0.0/16via10.43.0.254deve