beyonddai 发表于 2008-5-16 15:34:45

ADSL动态双网关问题

各位:我想设多网关,想如下设置:
/ip route add dst-address=0.0.0.0/0 gateway=3.3.3.3 comment="test" disabled=no
我想改成双网关下面的语句可以
/ip route set gateway=1.1.1.1,2.2.2.2
可是用参数就不行,如下
:local new-addressa
:local new-addressb
:set new-addressa=1.1.1.1
:set new-addressb=2.2.2.2
/ip route set gateway=$new-addressa,$new-addressb
上面的语句就无法运行,我试过gateway=$new-addressa是可以的,加逗号和第二个变量就不行了,请高手赐教

lhn1324 发表于 2008-5-17 20:34:23

/ip route set gateway=($new-addressa . "," . $new-addressb)
页: [1]
查看完整版本: ADSL动态双网关问题