Quidway AR系列路由器已经比较老了,还是有很多企业在使用,以下配置方式在Comware V5.0已经改了很多,所以配置方式只能用于AR系列路由器。
  需求:配置两个以太网口为WAN口,一个以太网口 E2/0用电信线路,一个以太网口 E3/0用铁通线路,访问铁通以外的地址,流量走E2/0,访问铁通的地址,流量走E3/0,同时有互相备份的作用。
  IP地址:ethernet 1/0: 192.168.1.1 255.255.255.0
          ethernet 2/0:10.10.10.55 255.255.255.0(假设的电信地址)
                       网关:10.10.10.1
         ethernet 3/0:20.20.20.66 255.255.255.0(假设的铁通地址)
                       网关:20.20.20.1

配置步骤:

system-view

acl number 3001 \\配置允许NAT转换的网段,这里允许所有
rule 0 permit ip
quit

detect-group 10 \\配置自动侦测组
detect-list 1 ip address 10.10.10.1 \\侦测以太网链路的对端公网地址是否可达
quit

detect-group 20
detect-list 1 ip address 20.20.20.1
quit

interface Ethernet1/0
ip address 192.168.1.1 255.255.255.0
quit

interface Ethernet2/0
ip address 10.10.10.55 255.255.255.0
nat outbound 3001 \\在出接口上进行地址转换
quit

interface Ethernet3/0
ip address 20.20.20.66 255.255.255.248
nat outbound 3001
quit

 ip route-static 0.0.0.0 0.0.0.0 10.10.10.1 preference 60 detect-group 10 \\配置默认路由,下一跳地址为运营商提供的公网网关,优先级为60,当侦测地址存活时,默认路由生效
 ip route-static 0.0.0.0 0.0.0.0 20.20.20.1 preference 80 detect-group 20 \\配置默认路由,下一跳地址为运营商提供的公网网关,优先级为80,当侦测地址存活时,默认路由生效
 ip route-static 61.232.0.0 255.252.0.0 20.20.20.1 preference 60 detect-group 20 \\增加所有目的地址为铁通网段的静态路由,下一跳指向E3/0对端的公网地址
 ip route-static 61.236.0.0 255.254.0.0 20.20.20.1 preference 60 detect-group 20
 ip route-static 122.64.0.0 255.224.0.0 20.20.20.1 preference 60 detect-group 20
 ip route-static 123.64.0.0 255.224.0.0 20.20.20.1 preference 60 detect-group 20
 ip route-static 211.98.0.0 255.254.0.0 20.20.20.1 preference 60 detect-group 20
 ip route-static 221.172.0.0 255.252.0.0 20.20.20.1 preference 60 detect-group 20
 ip route-static 222.32.0.0 255.224.0.0 20.20.20.1 preference 60 detect-group 20