华为路由协议重定向配置

配置命令:

R1\]ospf 1 \[R1-ospf-1\]import-route rip 1 \[R1-ospf-1\]import-route direct \[R1-ospf-1\]import-route static \[R1-ospf-1\]default-route-advertise always \[R1-ospf-1\]qu \[R1\]rip 1 \[R1-rip-1\]import-route ospf 1 \[R1-rip-1\]import-route direct \[R1-rip-1\]import-route static \[R1-rip-1\]default-route originate \[R1-rip-1\]import-route ? bgp Border Gateway Protocol (BGP) routes direct Direct routes isis Intermediate System to Intermediate System (ISIS) routes ospf Open Shortest Path First (OSPF) routes rip Routing Information Protocol (RIP) routes static Static routes unr User Network Route **实验内容** ![](https://i-blog.csdnimg.cn/direct/8f876746232f4a2eb5ac092f081e083b.png) 一、基础配置 R1: \sys Enter system view, return user view with Ctrl+Z. \[Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn R1 \[R1\]int l0 \[R1-LoopBack0\]ip add 1.1.1.1 32 \[R1-LoopBack0\]int g0/0/0 \[R1-GigabitEthernet0/0/0\]ip add 10.1.1.1 24 \[R1-GigabitEthernet0/0/0\]qu \[R1

R2:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn R2 \[R2\]int l0 \[R2-LoopBack0\]ip add 2.2.2.2 32 \[R2-LoopBack0\]int g0/0/0 \[R2-GigabitEthernet0/0/0\]ip add 10.1.1.2 24 \[R2-GigabitEthernet0/0/0\]int g0/0/1 \[R2-GigabitEthernet0/0/1\]ip add 10.1.2.2 24 \[R2-GigabitEthernet0/0/1\]int g0/0/2 \[R2-GigabitEthernet0/0/2\]ip add 10.1.4.2 24 \[R2-GigabitEthernet0/0/2\]int s1/0/0 \[R2-Serial1/0/0\]ip add 10.1.3.2 24 \[R2-Serial1/0/0\]qu \[R2

R3:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn R3 \[R3\]int l0 \[R3-LoopBack0\]ip add 3.3.3.3 32 \[R3-LoopBack0\]int g0/0/0 \[R3-GigabitEthernet0/0/0\]ip add 10.1.2.1 24 \[R3-GigabitEthernet0/0/0\]qu \[R3

R4:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn R4 \[R4\]int l0 \[R4-LoopBack0\]ip add 4.4.4.4 32 \[R4-LoopBack0\]int g0/0/0 \[R4-GigabitEthernet0/0/0\]ip add 10.1.4.1 24 \[R4-GigabitEthernet0/0/0\]qu \[R4

R5:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn R5 \[R5\]int l0 \[R5-LoopBack0\]ip add 5.5.5.5 32 \[R5-LoopBack0\]int s1/0/0 \[R5-Serial1/0/0\]ip add 10.1.3.1 24 \[R5-Serial1/0/0\]qu \[R5

二、路由配置

R1:

R1\]ospf 1 \[R1-ospf-1\]ar 0 \[R1-ospf-1-area-0.0.0.0\]net \[R1-ospf-1-area-0.0.0.0\]network 1.1.1.1 0.0.0.0 \[R1-ospf-1-area-0.0.0.0\]net \[R1-ospf-1-area-0.0.0.0\]network 10.1.1.0 0.0.0.255 \[R1-ospf-1-area-0.0.0.0\]qu \[R1-ospf-1

R2:

R2\]ospf 1 \[R2-ospf-1\]ar 0 \[R2-ospf-1-area-0.0.0.0\]network 2.2.2.2 0.0.0.0 \[R2-ospf-1-area-0.0.0.0\]network 10.1.1.0 0.0.0.255 \[R2-ospf-1-area-0.0.0.0\]qu \[R2-ospf-1\]qu \[R2\]rip 1 \[R2-rip-1\]ver 2 \[R2-rip-1\]netw \[R2-rip-1\]network 10.0.0.0 \[R2-rip-1\]qu \[R2\]ip route-static 5.5.5.5 32 10.1.3.1 \[R2\]ip route-static 0.0.0.0 0 10.1.4.1 R3: \[R3\]rip 1 \[R3-rip-1\]ver 2 \[R3-rip-1\]network 3.0.0.0 \[R3-rip-1\]network 10.0.0.0 \[R3-rip-1\]qu \[R3

R4:

R4\]ip route-static 0.0.0.0 0 10.1.4.2 R5: \[R5\]ip route-s \[R5\]ip route-static 1.1.1.1 32 10.1.3.2 \[R5\]ip route-static 2.2.2.2 32 10.1.3.2 \[R5\]ip route-static 3.3.3.3 32 10.1.3.2 \[R5\]ip route-static 4.4.4.4 32 10.1.3.2 \[R5\]ip route-static 5.5.5.5 32 10.1.3.2 \[R5\]ip route-static 10.1.1.0 24 10.1.3.2 \[R5\]ip route-static 10.1.2.0 24 10.1.3.2 \[R5\]ip route-static 10.1.4.0 24 10.1.3.2 \[R5

三、路由重定向

R2\]ospf 1 \[R2-ospf-1\]import-route rip 1 \[R2-ospf-1\]import-route static \[R2-ospf-1\]default-route-advertise always \[R2\]rip 1 \[R2-rip-1\]import-route ospf 1 \[R2-rip-1\]import-route static \[R2-rip-1\]default-route originate \[R2-rip-1\]qu 四、验证 ![](https://i-blog.csdnimg.cn/direct/badc1257967742d68d3a3c39a80ee091.png) ![](https://i-blog.csdnimg.cn/direct/4e42120add314089a075478b42543be7.png) ![](https://i-blog.csdnimg.cn/direct/20d4d182031a483eb7d67076611e72f2.png) ![](https://i-blog.csdnimg.cn/direct/6e5f67db7d224c769db77f67c8959f86.png) ![](https://i-blog.csdnimg.cn/direct/c695018f0f214339bcd135f309057c02.png)

相关推荐
蝎子莱莱爱打怪1 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
DianSan_ERP2 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅2 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒2 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器
王码码20352 天前
Flutter for OpenHarmony:socket_io_client 实时通信的事实标准(Node.js 后端的最佳拍档) 深度解析与鸿蒙适配指南
android·flutter·ui·华为·node.js·harmonyos
zhangfeng11332 天前
趋动云 如何ssh登录 服务区 项目server
运维·人工智能·ssh
ZeroNews内网穿透2 天前
谷歌封杀OpenClaw背后:本地部署或是出路
运维·服务器·数据库·安全
失重外太空啦2 天前
nginx
运维·nginx
2501_946205522 天前
晶圆机器人双臂怎么选型?适配2-12寸晶圆的末端效应器有哪些?
服务器·网络·机器人
Gofarlic_oms12 天前
避免Kisssoft高级分析模块过度采购的科学评估方法
大数据·linux·运维·人工智能·matlab