ros 脚本详细解释

ros 脚本详细解释

ID:14412428

大小:41.00 KB

页数:15页

时间:2018-07-28

ros 脚本详细解释_第1页
ros 脚本详细解释_第2页
ros 脚本详细解释_第3页
ros 脚本详细解释_第4页
ros 脚本详细解释_第5页
资源描述:

《ros 脚本详细解释》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、ros脚本详细解释因为下面这个问题,我觉得脚本详细解释也许对大家有用处,决定把以前网络时候找的资料发上来,希望对大家有用处[apple@sgg-gatewy]>:put(([/ipfirewalladdress-listget0address]&255.255.255.0)./24)  202.103.24.0/24这样使用put可以实现把202.103.24.0和/24结合成一个整体但是怎么样把这个新的值202.103.24.0/24赋给一个变量呢,set不能完成,谁有好的建议或者意见我准备做的是通过vpn客户端的访问源

2、地址,自动添加/iprouterule里面的数据现在可以自动把202.103.24.68这样的具体ip自动添加,但是我想根据这个ip然后自动添加一个标准c段[apple@sgg-gatewy]>:environmentprintGlobalVariablesLocalVariables[apple@sgg-gatewy]>:put(([/ipfirewalladdress-listget0address]&255.255.255.0)./24)221.232.119.0/24[apple@sgg-gatewy]>:glob

3、altestip[apple@sgg-gatewy]>:put$testip  [apple@sgg-gatewy]>:settestip202.103.24.0/24  [apple@sgg-gatewy]>:put$testip          202.103.24.0/24[apple@sgg-gatewy]>:settestip[:put(([/ipfirewalladdress-listget0address]&255.255.255.0)./24)]        221.232.119.0/24[apple

4、@sgg-gatewy]>:put$testip                                                  [apple@sgg-gatewy]>:settestip{[:put(([/ipfirewalladdress-listget0address]&255.255.255.0)./24)]}[apple@sgg-gatewy]>:put$testip                                                    [:put(([/ipfi

5、rewalladdress-listget0address]&255.255.255.0)./24)][apple@sgg-gatewy]>:settestip([:put(([/ipfirewalladdress-listget0address]&255.255.255.0)./24)])221.232.119.0/24[apple@sgg-gatewy]>:put$testip                                                    [apple@sgg-gatewy]>

6、:environmentprint                                                GlobalVariablesLocalVariablestestip=现在的需要解决的是,使用什么方法,或者用别的命令来实现把连接好了的新数字赋给testip这个变量直接脚本里面写dst-address=[:put(([/ipfirewalladdress-listget0address]&255.255.255.0)./24)]也是无效的的,测试过了的用put,直接输出了,不能完成赋值不用p

7、ut,不能连接两个字段大家一起思考思考,先表示感谢:foreachiin=[/ipfirewalladdress-listfindlist=telvpn-stable]do=[/iprouteruleadddst-address=(([/ipfirewalladdress-listget$iaddress]&255.255.255.0)./24)table=telaction=lookupdisabled=nocomment="telvpnaddbylcnja`sautoscript"src-address=0.0.0.0

8、/0]呵呵,自己搞定了--------------------------------------------------------------------------------------------------------------------------------------

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。