当前位置:网站首页>HCIP 双向重发布以及路由策略
HCIP 双向重发布以及路由策略
2022-07-26 22:50:00 【less than _ermi】
实验内容 :

R1除本身环回外,外加几条环回
172.16.1.0/24 deny172.16.2.0/24 type 1
172.16.3.0/24 cost 6
172.16.4.0/24 type 1 cost 9
更改如上参数
实验过程:
RIP及oSPF重发布技术及配置
[r2]rip
[r2-rip-1]import route ospf 1
[r2]ospf 1
[r2-ospf-1]import route rip 查询r3路由表
通过查看路由表可以看出
默认重发布导入路由为5类 LSA,类型2;默认种子度量为1;
类型仅显示种子度量,不显示内部的叠加度量;选路时,先比较类型,
类型1优于类型2;若均为类型2,先比较种子度量,小优;
若种子度量一样,比较总度量;
多点双向重发布产生的问题--路由回馈
默认 RIP 和 OSPF协议若进行多点双向重发布,由于两者的优先级不同;故第一台ASBR的重发布动作结束后,将影响到其他 ASBR设备的路由表;使用路由可能被回传到源协议;该行为称为
路由回馈--导致选路不加
解决方法:华为厂商将OSPF内部产生的路由优先级设计为10,外部重发布进入 5/7类路由设置为150
路由策略--在控制层面转发流量的过程中,截取流量,之后修改流量再转发,或不转发;最终影响到路由器路由表生成,干涉选路
前缀列表 --专用于抓取控制层面的网络号
[r1]ip ip-prefix hcip permit 3.3.3.0 25
[r1]ip ip-prefix hcip permit 4.4.4.0 23
默认序号的步调为10;方便插入
[r1]ip ip-prefix hcip index 15 deny 4.4.4.0 24
[r1]ip ip-prefix hcip permit 1.1.1.0 24 less-equal 32 掩码长度为24到32
[r1]ip ip-prefix hcip permit 5.5.5.0 24 greater-equal 30 掩码长度为30到32
[r1]ip ip-prefix hcip permit 6.6.6.0 24 greater-equal 29 le 31 掩码长度为29到31
匹配规则:至上而下逐一匹配,上条匹配按上条执行,不再查看下条;末尾隐含拒绝所有
[r1]ip ip-prefix hcip permit 0.0.0.0 0 le 32 允许所有
路由策略
[r2]route-policy huawei permit node 30
[r2-route-policy]if-match ip-prefix a //匹配前缀列表
[r2-route-policy]q
[r2]route-policy huawei permit node 40
[r2-route-policy]if-match ip-prefix b
[r2-route-policy]apply cost-type type-1
[r2-route-policy]q
[r2]route-policy huawei permit node 50
[r2-route-policy]if-match ip-prefix c
[r2-route-policy]apply cost 6
[r2-route-policy]q
[r2]route-policy huawei permit node 60
[r2-route-policy]if-match ip-prefix d
[r2-route-policy]apply cost-type type-1
[r2-route-policy]apply cost 9
[r2-route-policy]q
[r2]route-policy huawei permit node 50 //空表,允许所有;
[r2-route-policy]q重发布时调用
[r2]ospf 1
[r2-ospf-1]import-route rip 1 route-policy Huawei实验结束
边栏推荐
猜你喜欢

HCIA Basics (1)

勤写标兵——云小井

Esp8266wi fi access cloud platform

First knowledge of C language (2)

Explain exi interrupt through the counting experiment of infrared sensor

静态综合实验(静态路由、环回接口、缺省路由、空接口、浮动静态的综合练习)

Tcp的三次握手与四次挥手

First acquaintance with C language (1)

2022 latest live broadcast monitoring 24-hour monitoring (III) analysis of barrage in live broadcast room

(CF1691D) Max GEQ Sum
随机推荐
C语言实现小游戏【三子棋】注释详细 逻辑清晰 快来看看吧!!
TCP的三次握手与四次断开
NB-IOT接入云平台
Lecture 4 - explain GPIO_ Write function and related routines
RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
TCP的三次握手与四次挥手(简述)
Republishing and routing strategy of OSPF
Lora gateway node converges sensor data
6.30 written examination of MediaTek
Lvs+keepalived project practice
Golang - sync包的使用 (WaitGroup, Once, Mutex, RWMutex, Cond, Pool, Map)
静态路由基础配置(IP地址的规划、静态路由的配置),实现全网可达。
RS-485 bus communication application
C语言——关系运算符和逻辑运算符、if语句、switch语句、分支结构的嵌套
CAN总线通信应用
Golang中的错误处理
初识网页设计
MySQL course 2. Various queries of tables
First acquaintance with C language (1)
Self introduction and planning about programming