技术要点:H3CMSR双ADSL线路策略路由
需求:2根电信ADSL,实现内网奇数和偶数IP各走1根ADSL
设备:H3CMSRV5平台
命令脚本和重点注释:
#
aclnumber3000
rule1permitipsource192.168.1.00.0.0.255
#
interfaceDialer1
natoutbound3000
link-protocolppp
ppppaplocal-user123@163.gdpasswordsimple123456
ipaddressppp-negotiate
tcpmss1200
dialeruseradsl1
dialer-group1
dialerbundle1
#
interfaceDialer2
natoutbound3000
link-protocolppp
ppppaplocal-user456@163.gdpasswordsimple123456
ipaddressppp-negotiate
tcpmss1200
dialeruseradsl2
dialer-group2
dialerbundle2
#
interfaceEthernet0/0
portlink-moderoute
pppoe-clientdial-bundle-number1
#
interfaceEthernet0/1
portlink-moderoute
pppoe-clientdial-bundle-number2
#
aclnumber3001
rule0permitipsource192.168.1.00.0.0.254logging
rule10denyip
aclnumber3002
rule0permitipsource192.168.1.10.0.0.254logging
rule10denyip
interfaceVlan-interface1
ipaddress192.168.1.1255.255.255.0
ippolicy-based-routelb###应用策略路由
#
policy-based-routelbpermitnode2###定义偶数IP走2口出访外网Dialer2
if-matchacl3002
applyoutput-interfaceDialer2
policy-based-routelbpermitnode4###定义偶数IP走2口出访外网Dialer1
if-matchacl3001
applyoutput-interfaceDialer1
#
iproute-static0.0.0.00.0.0.0Dialer1
iproute-static0.0.0.00.0.0.0Dialer2preference80