马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
如何实现“访问网通站点走网通线路,访问电信站点走电信线路”呢?现在,我们以华为AR系列路由器为例,说明如何通过配置策略路由的方式满足以上需要。
一:配置访问控制列表,定义访问目的地址为网通的地址段
进入系统视图,创建ACL 3100:
<Quidway>system
System View: return to User View with Ctrl+Z.
[Quidway]acl num 3100
[Quidway-acl-adv-3100]
可以直接复制粘贴如下规则:
rule 0 permit ip destination 60.0.0.0 0.7.255.255
rule 1 permit ip destination 60.0.0.0 0.8.255.255
rule 2 permit ip destination 60.0.0.0 0.9.255.255
rule 3 permit ip destination 60.0.0.0 0.10.255.255
rule 4 permit ip destination 60.0.0.0 0.11.255.255
rule 5 permit ip destination 60.8.0.0 0.3.255.255
rule 6 permit ip destination 60.12.0.0 0.0.255.255
rule 7 permit ip destination 60.13.0.0 0.0.63.255
rule 8 permit ip destination 60.13.128.0 0.0.127.255
rule 9 permit ip destination 60.16.0.0 0.15.255.255
rule 10 permit ip destination 60.208.0.0 0.7.255.255
rule 11 permit ip destination 60.216.0.0 0.1.255.255
rule 12 permit ip destination 60.220.0.0 0.3.255.255
rule 13 permit ip destination 61.48.0.0 0.3.255.255
rule 14 permit ip destination 61.52.0.0 0.1.255.255
rule 15 permit ip destination 61.54.0.0 0.0.255.255
rule 16 permit ip destination 61.55.0.0 0.0.255.255
rule 17 permit ip destination 61.133.0.0 0.0.127.255
rule 18 permit ip destination 61.134.64.0 0.0.63.255
rule 19 permit ip destination 61.134.128.0 0.0.127.255
rule 20 permit ip destination 61.135.0.0 0.0.255.255
rule 21 permit ip destination 61.136.0.0 0.0.255.255
rule 22 permit ip destination 61.138.0.0 0.0.127.255
rule 23 permit ip destination 61.139.128.0 0.0.63.255
rule 24 permit ip destination 61.148.0.0 0.0.255.255
rule 25 permit ip destination 61.149.0.0 0.0.255.255
rule 26 permit ip destination 61.156.0.0 0.0.255.255
rule 27 permit ip destination 61.158.0.0 0.0.255.255
rule 28 permit ip destination 61.159.0.0 0.0.63.255
rule 29 permit ip destination 61.161.0.0 0.0.63.255
rule 30 permit ip destination 61.161.128.0 0.0.127.255
rule 31 permit ip destination 61.162.0.0 0.0.255.255
rule 32 permit ip destination 61.163.0.0 0.0.255.255
rule 33 permit ip destination 61.167.0.0 0.0.255.255
rule 34 permit ip destination 61.168.0.0 0.0.255.255
rule 35 permit ip destination 61.176.0.0 0.0.255.255
rule 36 permit ip destination 61.179.0.0 0.0.255.255
rule 37 permit ip destination 61.180.128.0 0.0.127.255
rule 38 permit ip destination 61.181.0.0 0.0.255.255
rule 39 permit ip destination 61.182.0.0 0.0.255.255
rule 40 permit ip destination 61.189.0.0 0.0.127.255
rule 41 permit ip destination 202.32.0.0 0.31.255.255
rule 42 permit ip destination 202.96.64.0 0.0.31.255
rule 43 permit ip destination 202.97.128.0 0.0.127.255
rule 44 permit ip destination 202.98.0.0 0.0.31.255
rule 45 permit ip destination 202.99.0.0 0.0.255.255
rule 46 permit ip destination 202.102.128.0 0.0.63.255
rule 47 permit ip destination 202.102.224.0 0.0.1.255
rule 48 permit ip destination 202.106.0.0 0.0.255.255
rule 49 permit ip destination 202.107.0.0 0.0.127.255
rule 50 permit ip destination 202.108.0.0 0.0.255.255
rule 51 permit ip destination 202.110.0.0 0.0.127.255
rule 52 permit ip destination 202.110.192.0 0.0.63.255
rule 53 permit ip destination 202.111.128.0 0.0.63.255
rule 54 permit ip destination 210.51.0.0 0.0.255.255
rule 55 permit ip destination 210.52.0.0 0.1.255.255
rule 56 permit ip destination 218.4.0.0 0.3.255.255
rule 57 permit ip destination 218.10.0.0 0.1.255.255
rule 58 permit ip destination 218.21.128.0 0.0.127.255
rule 59 permit ip destination 218.24.0.0 0.1.255.255
rule 60 permit ip destination 218.26.0.0 0.0.255.255
rule 61 permit ip destination 218.27.0.0 0.0.255.255
rule 62 permit ip destination 218.28.0.0 0.1.255.255
rule 63 permit ip destination 218.56.0.0 0.3.255.255
rule 64 permit ip destination 218.60.0.0 0.1.255.255
rule 65 permit ip destination 218.62.0.0 0.0.127.255
rule 66 permit ip destination 218.67.128.0 0.0.127.255
rule 67 permit ip destination 218.68.0.0 0.1.255.255
rule 68 permit ip destination 219.141.128.0 0.0.127.255
rule 69 permit ip destination 219.142.0.0 0.1.255.255
rule 70 permit ip destination 219.154.0.0 0.1.255.255
rule 71 permit ip destination 219.156.0.0 0.1.255.255
rule 72 permit ip destination 219.158.0.0 0.0.255.255
rule 73 permit ip destination 219.159.0.0 0.0.63.255
rule 74 permit ip destination 221.0.0.0 0.3.255.255
rule 75 permit ip destination 221.4.0.0 0.1.255.255
rule 76 permit ip destination 221.6.0.0 0.0.255.255
rule 77 permit ip destination 221.7.128.0 0.0.127.255
rule 78 permit ip destination 221.8.0.0 0.1.255.255
rule 79 permit ip destination 221.10.0.0 0.0.255.255
rule 80 permit ip destination 221.11.0.0 0.0.127.255
rule 81 permit ip destination 221.12.0.0 0.3.255.255
rule 82 permit ip destination 221.12.0.0 0.0.127.255
rule 83 permit ip destination 221.12.128.0 0.0.63.255
rule 84 permit ip destination 221.192.0.0 0.3.255.255
rule 85 permit ip destination 221.196.0.0 0.1.255.255
rule 86 permit ip destination 221.199.0.0 0.0.31.255
rule 87 permit ip destination 221.199.32.0 0.0.15.255
rule 88 permit ip destination 221.199.128.0 0.0.63.255
rule 89 permit ip destination 221.199.192.0 0.0.15.255
rule 90 permit ip destination 221.200.0.0 0.3.255.255
rule 91 permit ip destination 221.204.0.0 0.1.255.255
rule 92 permit ip destination 221.207.0.0 0.0.63.255
rule 93 permit ip destination 221.208.0.0 0.15.255.255
rule 94 permit ip destination 222.128.0.0 0.3.255.255
rule 95 permit ip destination 222.132.0.0 0.3.255.255
rule 96 permit ip destination 222.136.0.0 0.7.255.255
rule 97 permit ip destination 222.160.0.0 0.3.255.255
注:以上规则已经包含大部分网通地址段,如有更新可以动态添加。 |