news 2026/5/26 20:23:47

策略路由实验配置

作者头像

张小明

前端开发工程师

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/5/25 14:07:58

STL deque 的详细特征

STL deque 的详细特征 基本特性 #include <deque> using namespace std;deque<int> dq; // 声明一个int类型的双端队列 双端队列&#xff1a;允许在两端进行高效插入和删除动态数组&#xff1a;支持随机访问&#xff0c;可以像数组一样通过下标访问内存结构&a…

作者头像 李华
网站建设 2026/5/26 16:07:43

9.快速修改铜皮

铺铜后&#xff0c;需要进行细微调整。常规的方法使用鼠标拉扯铜皮边缘修改&#xff0c;很痛苦&#xff01;&#xff01;&#xff01;且效率非常低。技巧&#xff1a;1.选中要修改的铜皮2.如图所示&#xff1a;先选中modify&#xff0c;然后修改&#xff0c;然后重新铺铜。注意…

作者头像 李华
网站建设 2026/5/26 7:18:07

10.是否要成为全栈工程师?

1、软件工程师 嵌入式软件工程师 硬件工程师的关系一、各自的核心工作1. 软件工程师&#xff08;通常指“纯软件/应用层工程师”&#xff09;工作内容&#xff1a;负责非硬件相关的软件逻辑&#xff0c;比如&#xff1a;业务功能开发&#xff08;如APP界面、数据处理算法、网络…

作者头像 李华
网站建设 2026/5/26 7:33:35

兰顿蚂蚁——CAD二次开发

效果如下:private static void OnTick(object sender, EventArgs e){if (_currentStep > _maxSteps){Stop();return;}// 检查是否暂停if (_isPaused)return;Document doc Application.DocumentManager.MdiActiveDocument;Database db doc.Database;var ed doc.Editor;usi…

作者头像 李华
网站建设 2026/5/26 5:52:51

进程优先级和切换

第一部分&#xff1a;进程优先级 (Process Priority&#xff09;系统中的进程成百上千&#xff0c;但 CPU&#xff08;核&#xff09;可能只有几个。谁先用 CPU&#xff1f;这就涉及到竞争性。为了合理分配资源&#xff0c;必须要有优先级 。1. PRI 与 NI&#xff1a;一对“相爱…

作者头像 李华