news 2026/9/2 16:03:42

策略路由实验配置

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
策略路由实验配置

策略路由实验配置

实验要求

要求PC1走AR1-AR2-AR4到达PC3
要求PC2走AR1-AR3-AR4到达PC3

策略路由的配置思路:
1、匹配业务流量ACL 3000
2.业务流量进行分类classifier—if-match
3.业务流量流行为behavior—redirect
4.业务流量策略 traffic policy----关联流分类和流行为
5.将策略应用到接口的入方向

实验配置

配置IP地址

AR1配置

interface GigabitEthernet0/0/0ipaddress10.1.1.2255.255.255.0 traffic-policy PBR inbound#interface GigabitEthernet0/0/1ipaddress12.1.1.1255.255.255.0#interface GigabitEthernet0/0/2ipaddress13.1.1.1255.255.255.0#interface GigabitEthernet1/0/0ipaddress10.1.2.2255.255.255.0

AR2配置

interface GigabitEthernet0/0/1ipaddress12.1.1.2255.255.255.0#interface GigabitEthernet0/0/2ipaddress24.1.1.2255.255.255.0

AR3配置

interface GigabitEthernet0/0/1ipaddress34.1.1.3255.255.255.0#interface GigabitEthernet0/0/2ipaddress13.1.1.3255.255.255.0

AR4配置

interface GigabitEthernet0/0/0ipaddress10.1.3.4255.255.255.0#interface GigabitEthernet0/0/1ipaddress34.1.1.4255.255.255.0#interface GigabitEthernet0/0/2ipaddress24.1.1.4255.255.255.0

建立BGP邻居

AR1配置

bgp100peer12.1.1.2 as-number200peer13.1.1.3 as-number200

AR2配置

bgp200peer12.1.1.1 as-number100peer24.1.1.4 as-number200

AR3配置

bgp200peer13.1.1.1 as-number100peer34.1.1.4 as-number200

AR4配置

bgp200peer24.1.1.2 as-number200peer34.1.1.3 as-number200

配置BGP路由

AR1配置

bgp100network10.1.1.0255.255.255.0 network10.1.1.0255.255.255.255 network10.1.2.0255.255.255.0 network12.1.1.0255.255.255.0 network13.1.1.0255.255.255.0

AR2配置

bgp200network12.1.1.0255.255.255.0 network24.1.1.0255.255.255.0

AR3配置

bgp200network13.1.1.0255.255.255.0 network34.1.1.0255.255.255.0

AR4配置

bgp200network10.1.3.0255.255.255.0 network24.1.1.0255.255.255.0 network34.1.1.0255.255.255.0

配置策略路由

策略路由的配置思路:
1、匹配业务流量ACL 3000
2.业务流量进行分类classifier—if-match
3.业务流量流行为behavior—redirect
4.业务流量策略 traffic policy----关联流分类和流行为
5.将策略应用到接口的入方向

AR1配置

acl number3000rule5permitipsource10.1.1.00.0.0.255 destination10.1.3.00.0.0.255 acl number3001rule5permitipsource10.1.2.00.0.0.255 destination10.1.3.00.0.0.255#traffic classifier PBR1 operator or if-match acl3001traffic classifier PBR operator or if-match acl3000#traffic behavior PBR1 redirect ip-nexthop13.1.1.3 traffic behavior PBR redirect ip-nexthop12.1.1.2#traffic policy PBR1 classifier PBR1 behavior PBR1 traffic policy PBR classifier PBR behavior PBR#interface GigabitEthernet0/0/0 traffic-policy PBR inbound

实验验证

PC1走AR1-AR2-AR4到达PC3
PC2走AR1-AR3-AR4到达PC3

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/9/2 7:09:44

飞控开发——熟悉uORB

基础讲解 基础术语 消息:数据格式模板(类似 “语言语法”),定义数据字段(如时间戳、具体参数),所有消息必须包含timestamp(时间戳)字段主题:消息的 “通信通…

作者头像 李华
网站建设 2026/9/2 6:31:37

煤层卸压开采瓦斯越流以及塑性变形 煤层工作开挖过程,会引起邻近煤岩层应力、变形场发生变化,以及...

煤层卸压开采瓦斯越流以及塑性变形 煤层工作开挖过程,会引起邻近煤岩层应力、变形场发生变化,以及引起临近煤层卸压,从而达到保护层开挖目的。 本模型根据煤岩层之间的位置关系,建立瓦斯流动场、煤岩弹塑性变形场,供大…

作者头像 李华
网站建设 2026/9/2 23:02:54

sxstrace.exe

sxstrace.exe找了个老版本的,嘿嘿

作者头像 李华
网站建设 2026/9/3 2:20:02

通信系统仿真:数字调制与解调技术_(29).通信系统性能评估

通信系统性能评估 在通信系统的设计和优化过程中,性能评估是一个至关重要的环节。通过性能评估,我们可以验证系统的设计是否满足预定的性能指标,发现系统中的潜在问题,并进行相应的优化。本节将详细介绍通信系统性能评估的基本原理…

作者头像 李华