当前位置: 首页 > news >正文

策略路由控制选路

 🐣个人主页 可惜已不在

🐤这篇在这个专栏 华为_可惜已不在的博客-CSDN博客

🐥有用的话就留下一个三连吧😼

目录

一、

实验拓扑

二、

实验简述

三、

实验配置

配置路由信息

配置控制选路

四、

实验验证


 

一、

实验拓扑

二、

实验简述

R1通过R2来主访问R4的10.0.1.0/32和10.0.3.0/32网段,而R1通过R3来主访问R4的10.0.2.0/32和10.0.4.0/32网段

简易图:

三、

实验配置

配置路由信息

R1:

un ter mo

sys

sys R1

int g0/0/0

ip add 192.168.12.1 24

int  g0/0/1

ip add  192.168.13.1 24

int g0/0/2

ip add 192.168.15.1 24

int loo0

ip add 1.1.1.1 32

q

ospf router-id 1.1.1.1

area 0

net 192.168.0.0 0.0.255.255

q

R2:

un ter mo

sys

sys R2

int g0/0/0

ip add 192.168.12.2 24

int g0/0/01

ip add 192.168.24.2 24

int loo0

ip add 2.2.2.2 32

q

ospf router-id 2.2.2.2

area 0

net 192.168.0.0 0.0.255.255

q

R3:

un ter mo

sys

sys R3

int g0/0/0

ip add 192.168.34.3 24

int g0/0/01

ip add 192.168.13.3 24

int loo0

ip add 3.3.3.3 32

q

ospf router-id 3.3.3.3

area 0

net 192.168.0.0 0.0.255.255

q

R4:

un ter mo

sys

sys R4

int g0/0/0

ip add 192.168.34.4 24

int g0/0/01

ip add 192.168.24.4 24

int loo0

ip add 4.4.4.4 32

int loo1

ip add 10.0.1.1 32

int loo2

ip add 10.0.2.1 32

int loo3

ip add 10.0.3.1 32

int loo4

ip add 10.0.4.1 32

q

ospf router-id 4.4.4.4

area 0

net 192.168.0.0 0.0.255.255

net 10.0.1.0 0.0.0.255

net 10.0.2.0 0.0.0.255

net 10.0.3.0 0.0.0.255

net 10.0.4.0 0.0.0.255

q

R5:

un ter mo

sys

sys R5 

int g0/0/2

ip add 192.168.15.5 24

int loo0

ip add 5.5.5.5 32

int loo1

ip add 10.0.11.1 32

q

ospf router-id 5.5.5.5

area 0

net 192.168.0.0 0.0.255.255

net 10.0.11.1 0.0.0.0

q

查看 R1、R4 路由是否已通

去往10.0.1-4.0/32的下一跳

配置控制选路

R1:

acl 3000

rule 5 permit ip source 10.0.11.1 0 destination 10.0.0.0 0.0.254.255

acl 3001

rule permit ip source 10.0.11.1 0 de 10.0.1.0 0.0.254.255

policy-based-route G permit  node 1

if-match acl 3000

apply ip-address next-hop 192.168.12.2 

policy-based-route G  permit node 2

if-match acl 3001

apply ip-address next-hop 192.168.13.3

int g0/0/02

ip policy-based-route G

四、

实验验证

 没改变之前的选路

改变后的选路

http://www.lryc.cn/news/448134.html

相关文章:

  • 【数据结构和算法实践-排序-快速排序】
  • 测试面试题:请你分别介绍一下单元测试、集成测试、系统测试、验收测试、回归测试
  • 回归预测合集|基于灰狼优化21个机器学习和深度学习的数据回归预测Matlab程序 多特征输入单输出
  • html/css怎么禁用浏览器自动填写
  • 信息安全工程师(22)密码学网络安全应用
  • 算法打卡:第十一章 图论part08
  • 2024年Gartner主存储平台魔力象限报告 | 华为从领导者象限滑落到挑战者象限
  • [Python学习日记-31] Python 中的函数(上)
  • 工作笔记【四】
  • ArcEngine C#二次开发图层处理:根据属性分割图层(Split)
  • 【二叉平衡搜索树】Treap
  • Spring Boot 应用Kafka讲解和案例示范
  • 以到手价为核心的品牌电商价格监测
  • Android中使用RecyclerView制作横向轮播列表及索引点
  • Llama 3.1 技术研究报告-2
  • 【深度学习】05-RNN循环神经网络-02- RNN循环神经网络的发展历史与演化趋势/LSTM/GRU/Transformer
  • C++学习9.27
  • 【STM32开发环境搭建】-1-Keil(MDK) 5.27软件安装和注册教程
  • 武汉正向科技格雷母线公司,无人天车系统,采用格雷母线定位技术
  • 【保姆级教程】批量下载Pexels视频Python脚本(以HumanVid数据集为例)
  • Python画笔案例-067 绘制配乐七角星
  • Spark Job 对象 详解
  • C#中NModbus4中常用的方法
  • 【Linux】线程同步与互斥
  • 003、网关路由问题
  • Eclipse 快捷键:提高开发效率的利器
  • Agent智能体
  • 用Promise实现前端并发请求
  • 通过队列实现栈
  • Mac下可以平替paste的软件pastemate,在windows上也能用,还可以实现数据多端同步