这个是路由器的信息,请教下能实现标题中的功能么?
[H3C]display version
H3C Comware Platform Software
Comware Software, Version 5.20, Release 2516P15
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd. All rights reserved.
H3C MSR26-00 uptime is 0 week, 0 day, 23 hours, 44 minutes
Last reboot 2023/08/02 10:14:19
System returned to ROM By Command.
CPU ID: 0x8
512M bytes DDR3 SDRAM Memory
2M bytes Flash Memory
PCB Version: 2.0
Logic Version: 1.0
Basic BootROM Version: 5.40
Extended BootROM Version: 5.40
[SLOT 0]AUX (Hardware)2.0, (Driver)1.0, (CPLD)1.0
[SLOT 0]GE0/0 (Hardware)2.0, (Driver)1.0, (CPLD)1.0
[SLOT 0]GE0/1 (Hardware)2.0, (Driver)1.0, (CPLD)1.0
[SLOT 0]8GSW (Hardware)2.0, (Driver)1.0, (CPLD)1.0
[SLOT 0]CELLULAR0/0 (Hardware)2.0, (Driver)1.0, (CPLD)1.0
[H3C]
(0)
可以的
直接使用pbr绑定acl,丢给指定出接口的下一跳即可
配置参考
https://www.h3c.com/cn/d_201401/812766_30005_0.htm
(0)
如果指定VLAN走指定的wan口,是不是路由设置就能搞定呢?有没有相关说明或者例子啊大佬
如果指定VLAN走指定的wan口,是不是路由设置就能搞定呢?有没有相关说明或者例子啊大佬
做策略路由就可以实现,具体参照1.3
(0)
我的版本貌似没找到策略组路由啊
https://www.h3c.com/cn/d_202312/1988687_30005_0.htm
我的版本貌似没找到策略组路由啊
您好,请知:
可以配置策略路由实现特定网段走特定出口。
以下是策略路由的配置案例,请参考:
如图1所示,RouterA到达RouterC的路由下一跳为RouterB,在RouterB上通过策略路由、Track与NQA联动,对到达Router C的链路有效性进行实时判断。
图1 策略路由与NQA联动配置组网图
· 为实现全网互通,配置路由协议;
· 为监控策略路由,建立NQA测试组;
· 为使能NQA,Track与NQA测试组关联。
本举例是在Release 2317版本上进行配置和验证的。
策略路由可以在配置报文的发送接口、缺省发送接口、下一跳、缺省下一跳时与Track项关联,通过Track项的状态来动态地决定策略的可用性。当应用动作增加Track关联后,如果事件发生时Track项状态为positive,则该配置项有效,可以指导转发;事件发生时,Track项状态为negative,则该配置项无效,转发时忽略该配置项。
# 配置以太网口的IP地址
<RouterA>system-view
[RouterA]interface GigabitEthernet 0/1
[RouterA-GigabitEthernet0/1]ip address 200.1.1.1 255.255.255.0
[RouterA-GigabitEthernet0/1]quit
# 创建RIP动态路由
[RouterA]rip 1
[RouterA-rip-1]version 2
[RouterA-rip-1]network 200.1.1.0
# 定义访问控制列表
<RouterB>system-view
[RouterB]acl number 3009
[RouterB-acl-adv-3009]rule 0 permit ip source 200.1.1.0 0.0.0.255
[RouterB-acl-adv-3009]quit
# 创建虚接口VT87,并配置其IP地址
[RouterB]interface Virtual-Template 87
[RouterB-Virtual-Template87]ip address 1.1.1.1 255.255.255.0
[RouterB-Virtual-Template87]quit
# 配置串口S8/7,使其MP捆绑到虚接口VT87上
[RouterB]interface Serial 8/7
[RouterB-Serial8/7]ppp mp Virtual-Template 87
[RouterB-Serial8/7]quit
# 定义1号节点,使匹配ACL 3009的任何IP报文被发往接口VT87,并配置与track1的联动配置
[RouterB]policy-based-route test permit node 1
[RouterB-pbr-test-1]if-match acl 3009
[RouterB-pbr-test-1]apply output-interface Virtual-Template87 track 1
[RouterB-pbr-test-1]quit
# 创建ICMP类型的NQA测试组(管理员为admin,操作标签为 1)并配置相关可选测试参数
[RouterB]nqa entry admin 1
[RouterB-nqa-admin-1]type icmp-echo
[RouterB-nqa-admin-1-icmp-echo]destination ip 1.1.1.2
[RouterB-nqa-admin-1-icmp-echo]frequency 5000
[RouterB-nqa-admin-1-icmp-echo]source ip 1.1.1.1
# 配置Reaction监测项1(失败1次触发联动)
[RouterB-nqa-admin-1-icmp-echo]reaction 1 checked-element probe-fail threshold-type consecutive 1 action-type trigger-only
[RouterB-nqa-admin-1-icmp-echo]quit
# 配置以太口GigabitEthernet0/1的IP地址,在GigabitEthernet0/1接口上应用策略路由test
[RouterB]interface GigabitEthernet 0/1
[RouterB-GigabitEthernet0/1]ip address 200.1.1.2 255.255.255.0
[RouterB-GigabitEthernet0/1]ip policy-based-route test
[RouterB-GigabitEthernet0/1]quit
# 配置Track项1,关联NQA测试组(管理员为admin,操作标签为 1)的Reaction监测项1
[RouterB]track 1 nqa entry admin 1 reaction 1
# 创建RIP动态路由
[RouterB]rip 1
[RouterB-rip-1]version 2
[RouterB-rip-1]network 200.1.1.0
[RouterB-rip-1]network 1.1.1.0
# 创建虚接口VT87,并配置其IP地址
<RouterC>system-view
[RouterC]interface Virtual-Template 87
[RouterC-Virtual-Template87]ip address 1.1.1.2 255.255.255.0
[RouterC-Virtual-Template87]quit
# 配置串口S8/7,使其MP捆绑到虚接口VT87上
[RouterC]interface Serial 8/7
[RouterC-Serial8/7]ppp mp Virtual-Template 87
[RouterC-Serial8/7]quit
# 创建RIP动态路由
[RouterC]rip 1
[RouterC-rip-1]version 2
[RouterC-rip-1]network 1.1.1.0
(1) 启动ICMP测试操作
[RouterB]nqa schedule admin 1 start-time now lifetime forever
(2) 在RouterB显示ICMP NQA测试成功的结果,NQA将探测结果通知给TRACK模块,则对应Track项的状态为positive,就表示策略路由指定的出接口有效,可以指导转发
[RouterB]display nqa result admin 1
NQA entry(admin admin, tag 1) test results:
Destination IP address: 1.1.1.2
Send operation times: 1 Receive response times: 1
Min/Max/Average round trip time: 38/38/38
Square-Sum of round trip time: 1444
Last succeeded probe time: 2011-09-28 15:11:57.1
Extend results:
Packet lost in test: 0%
Failures due to timeout: 0
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
[RouterB]display track 1
Track ID: 1
Status: Positive
Duration: 0 days 0 hours 4 minutes 50 seconds
Notification delay: Positive 0, Negative 0 (in seconds)
Reference object:
NQA entry: admin 1
Reaction: 1
(3) 在RouterA发5个ping包到1.1.1.2,查看RouterB的策略路由的统计信息,统计成功转发了5个数据包
<RouterB>dispaly ip policy-based-route statistics interface GigabitEthernet 0/1
Interface GigabitEthernet0/1 policy based routing statistics information:
policy-based-route: test
permit node 1
apply output-interface Virtual-Template87 track 1
Denied: 0,
Forwarded: 5
Total denied: 0, forwarded: 5
(4) 断开RouterB与RouterC之间的连接线缆,在RouterB显示ICMP NQA测试不成功的结果,NQA将探测结果通知给TRACK模块,则对应Track项的状态为Negative,就表示策略路由指定的出接口无效,转发时忽略该配置项
<RouterB>display nqa result admin 1
NQA entry(admin admin, tag 1) test results:
Destination IP address: 1.1.1.2
Send operation times: 1 Receive response times: 0
Min/Max/Average round trip time: 0/0/0
Square-Sum of round trip time: 0
Last succeeded probe time: 0-00-00 00:00:00.0
Extend results:
Packet lost in test: 100%
Failures due to timeout: 1
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
<RouterB>dis track 1
Track ID: 1
Status: Negative
Duration: 0 days 0 hours 4 minutes 50 seconds
Notification delay: Positive 0, Negative 0 (in seconds)
Reference object:
NQA entry: admin 1
Reaction: 1
(5) 在RouterA发5个ping包到1.1.1.2,查看RouterB的策略路由的统计信息,统计显示忽略了这5个数据包,这些数据包无法通过此策略路由进行转发,需按正常转发流程处理。
<RouterB>dispaly ip policy-based-route statistics interface GigabitEthernet 0/1
Interface GigabitEthernet0/1 policy based routing statistics information:
policy-based-route: test
permit node 1
apply output-interface Virtual-Template87 track 1
Denied: 5,
Forwarded: 0
Total denied: 5, forwarded: 0
(0)
大佬我还是适应界面版本,我这个型号是什么型号啊,就写的2600,是-10还是啥啊,我想更个版本,应该下哪个啊?
大佬我还是适应界面版本,我这个型号是什么型号啊,就写的2600,是-10还是啥啊,我想更个版本,应该下哪个啊?
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明