华为路由器学习指南-本地策略路由配置示例

更新时间:2023-05-28 08:32:11 阅读: 评论:0

华为路由器学习指南-本地策略路由配置⽰例
拓扑图如下,RouterA与RouterB间有两条链路相连。⽤户希望RouterA在发送不同长度的报⽂时,通过不同的下⼀跳地址进⾏转发。
长度为64~1400字节的报⽂设置150.1.1.2作为下⼀跳地址。
长度为1401~1500字节的报⽂设置1151.1.1.2作为下⼀跳地址。
在RouterA上创建名为lab1的本地策略路由,⽤策略点10和策略点20分别配置两种报⽂长度匹配规则,并分别指定对就策略点的协作,即指定对就的下⼀跳地址。
[RouterA]display policy-bad-route lab1
policy-bad-route : lab1
Node  10  permit :
if-match packet-length  64
1400
apply ip-address next-hop 150.1.1.2
Node  20  permit :turn over
if
-match packet-length  1401  1500
apply ip-address next-hop 151.1.1.2
验证配置结果
在使能本地策略路由lab1之前
grd什么意思重置RuterB接⼝统计信息
ret counters interface g0/0/1
ret counters interface g0/0/0
查看RouterB接⼝统计信息
display int g0/0/1
GigabitEthernet0/0/1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2017-06-26 15:20:50 UTC-08:00
Description:HUAWEI, AR Series, GigabitEthernet0/0/1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 150.1.1.2/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc59-06a6
Last physical up time  : 2017-06-26 15:17:23 UTC-08:00
Last physical down time : 2017-06-26 15:17:06 UTC-08:00
Current system time: 2017-06-26 15:31:31-08:00
Port Mode: FORCE COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi  : AUTO
Last 300 conds input rate 0 bits/c, 0 packets/c
Last 300 conds output rate 0 bits/c, 0 packets/c
Input peak rate 592 bits/c,Record time: 2017-06-26 15:21:38
Output peak rate 560 bits/c,Record time: 2017-06-26 15:21:38
Input:  0 packets, 0 bytes
Unicast:                  0,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
CRC:                      0,  Giants:                      0
Jabbers:                  0,  Throttles:                  0
Runts:                    0,  Symbols:                    0
Ignoreds:                0,  Frames:                      0
Output:  0 packets, 0 bytes
Unicast:                  0,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
Collisions:              0,  ExcessiveCollisions:        0
Late Collisions:          0,  Deferreds:                  0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
nullif
Input bandwidth utilization  :    0%
Output bandwidth utilization :    0%
display int g0/0/0
GigabitEthernet0/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2017-06-26 15:20:59 UTC-08:00
Description:HUAWEI, AR Series, GigabitEthernet0/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 151.1.1.2/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc59-06a5 Last physical up time  : 2017-06-26 15:17:23 UTC-08:00
Last physical down time : 2017-06-26 15:17:06 UTC-08:00
Current system time: 2017-06-26 15:31:40-08:00
Port Mode: COMMON COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi  : AUTO
Last 300 conds input rate 0 bits/c, 0 packets/c
Last 300 conds output rate 0 bits/c, 0 packets/c
Input peak rate 720 bits/c,Record time: 2017-06-26 15:21:53
Output peak rate 720 bits/c,Record time: 2017-06-26 15:21:53
Input:  0 packets, 0 bytes
Unicast:                  0,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
CRC:                      0,  Giants:                      0
Jabbers:                  0,  Throttles:                  0
Runts:                    0,  Symbols:                    0
Ignoreds:                0,  Frames:                      0
Output:  0 packets, 0 bytes
Unicast:                  0,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
Collisions:              0,  ExcessiveCollisions:        0
Late Collisions:          0,  Deferreds:                  0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
Input bandwidth utilization  :    0%
Output bandwidth utilization :    0%
input为0 packet
在RouterA ping -s 80 10.1.2.1
display int g0/0/0
GigabitEthernet0/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2017-06-26 15:20:59 UTC-08:00
dns是什么意思
Description:HUAWEI, AR Series, GigabitEthernet0/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 151.1.1.2/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc59-06a5 Last physical up time  : 2017-06-26 15:17:23 UTC-08:00
Last physical down time : 2017-06-26 15:17:06 UTC-08:00
Current system time: 2017-06-26 15:34:40-08:00
Port Mode: COMMON COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi  : AUTO
Last 300 conds input rate 16 bits/c, 0 packets/c
Last 300 conds output rate 16 bits/c, 0 packets/c
Input peak rate 976 bits/c,Record time: 2017-06-26 15:34:38
Output peak rate 976 bits/c,Record time: 2017-06-26 15:34:38
Input:  5 packets, 610 bytes
Unicast:                  5,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
攘夷Discard:                  0,  Total Error:                0
CRC:                      0,  Giants:                      0
Jabbers:                  0,  Throttles:                  0
Runts:                    0,  Symbols:                    0
Ignoreds:                0,  Frames:                      0
Output:  5 packets, 610 bytes
Unicast:                  5,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
Collisions:              0,  ExcessiveCollisions:        0
Late Collisions:          0,  Deferreds:                  0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
Input bandwidth utilization  :    0%
文胸的英文
Output bandwidth utilization :    0%
RoutrB g0/0/0增加了5个packet ——————————————————————————————————————————在使能本地策略路由lab1之后
[RouterA]ip local policy-bad-route lab1
display int g0/0/1
GigabitEthernet0/0/1 current state : UP
vidalia
Line protocol current state : UP
Last line protocol up time : 2017-06-26 15:20:50 UTC-08:00
Description:HUAWEI, AR Series, GigabitEthernet0/0/1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 150.1.1.2/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc59-06a6
Last physical up time  : 2017-06-26 15:17:23 UTC-08:00
Last physical down time : 2017-06-26 15:17:06 UTC-08:00
Current system time: 2017-06-26 15:37:26-08:00
Port Mode: FORCE COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi  : AUTO
Last 300 conds input rate 16 bits/c, 0 packets/c
Last 300 conds output rate 16 bits/c, 0 packets/c
Input peak rate 600 bits/c,Record time: 2017-06-26 15:37:23
Output peak rate 584 bits/c,Record time: 2017-06-26 15:37:23
Input:  5 packets, 630 bytes
Unicast:                  5,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
CRC:                      0,  Giants:                      0
Jabbers:                  0,  Throttles:                  0
Runts:                    0,  Symbols:                    0
Ignoreds:                0,  Frames:                      0
Output:  5 packets, 610 bytes
Unicast:                  5,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
Collisions:              0,  ExcessiveCollisions:        0
refereeLate Collisions:          0,  Deferreds:                  0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
Input bandwidth utilization  :    0%
Output bandwidth utilization :    0%
[RouterA]ping -s 1401 10.1.2.1
display int g0/0/0
GigabitEthernet0/0/0 current state : UP
bitty
Line protocol current state : UP
Last line protocol up time : 2017-06-26 15:20:59 UTC-08:00
Description:HUAWEI, AR Series, GigabitEthernet0/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 151.1.1.2/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc59-06a5
Last physical up time  : 2017-06-26 15:17:23 UTC-08:00
Last physical down time : 2017-06-26 15:17:06 UTC-08:00
Current system time: 2017-06-26 15:38:11-08:00
Port Mode: COMMON COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi  : AUTO
Last 300 conds input rate 208 bits/c, 0 packets/c
Last 300 conds output rate 208 bits/c, 0 packets/c
Input peak rate 11544 bits/c,Record time: 2017-06-26 15:38:11 Output peak rate 11544 bits/c,Record time: 2017-06-26 15:38:11 Input:  10 packets, 7825 bytes
Unicast:                10,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
CRC:                      0,  Giants:                      0
Jabbers:                  0,  Throttles:                  0lion
Runts:                    0,  Symbols:                    0
Ignoreds:                0,  Frames:                      0
Output:  10 packets, 7825 bytes
Unicast:                10,  Multicast:                  0
Broadcast:                0,  Jumbo:                      0
Discard:                  0,  Total Error:                0
Collisions:              0,  ExcessiveCollisions:        0
Late Collisions:          0,  Deferreds:                  0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
Input bandwidth utilization  :    0%
Output bandwidth utilization :    0%
证明本地策略路由配置成功。

本文发布于:2023-05-28 08:32:11,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/798342.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:策略   路由   统计   配置   作为   设置
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图