news 2026/5/17 8:39:16

华三网络设备的路由重定向配置

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
华三网络设备的路由重定向配置

知识点:

[SWA]rip 1
[SWA-rip-1]default-route originate ?
cost Metric of the default route
route-policy Specify the routing policy
<cr>

[SWA-rip-1]import-route ?
bgp BGP routes
direct Direct routes
isis IS-IS routes
ospf OSPF routes
rip RIP routes
static Static routes

[SWA]ospf 1
[SWA-ospf-1]default-route-advertise ?
always Always advertise default route
cost Cost of default route
permit-calculate-other Calculate default route advertised by other
route-policy Specify the routing policy
summary Advertise a default route in a Type-3 LSA (only
available in VPN)
type Type of Type-5 LSA
<cr>

[SWA-ospf-1]default-route-advertise always
[SWA-ospf-1]im
[SWA-ospf-1]import-route ?
bgp BGP routes
direct Direct routes
isis IS-IS routes
ospf OSPF routes
rip RIP routes
static Static routes

[R1]rip 1
[R1-rip-1]default-route originate ?
cost Metric of the default route
route-policy Specify the routing policy
<cr>

[R1-rip-1]default-route originate
[R1-rip-1]import-route ?
bgp BGP routes
direct Direct routes
eigrp EIGRP routes
isis IS-IS routes
ospf OSPF routes
rip RIP routes
static Static routes

[R1]ospf 1
[R1-ospf-1]default-route-advertise ?
always Always advertise default route
cost Cost of default route
permit-calculate-other Calculate default route advertised by other
route-policy Specify the routing policy
summary Advertise a default route in a Type-3 LSA (only
available in VPN)
type Type of Type-5 LSA
<cr>

[R1-ospf-1]default-route-advertise always
[R1-ospf-1]im
[R1-ospf-1]import-route ?
bgp BGP routes
direct Direct routes
eigrp EIGRP routes
guard Guard routes
isis IS-IS routes
ospf OSPF routes
rip RIP routes
static Static routes
SWA:

[SWA]ospf 1
[SWA-ospf-1]area 0
[SWA-ospf-1-area-0.0.0.0]net
[SWA-ospf-1-area-0.0.0.0]network 192.168.10.254 0.0.0.255
[SWA-ospf-1-area-0.0.0.0]network 192.168.20.254 0.0.0.255
[SWA-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.255

R1:

[R1]ospf 1
[R1-ospf-1]ar 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.2 0.0.0.255
[R1-ospf-1-area-0.0.0.0]exit
[R1-ospf-1]import-route rip 1

[R1-ospf-1]import-route direct

[R1-ospf-1]exit
[R1]rip 1
[R1-rip-1]ver 2
[R1-rip-1]undo summary
[R1-rip-1]network 192.168.2.1
[R1-rip-1]import-route ospf 1

[R1-rip-1]import-route direct

[R1-rip-1]

R2:
[R2]rip 1
[R2-rip-1]ver 2
[R2-rip-1]undo summary
[R2-rip-1]network 192.168.2.2
[R2-rip-1]network 192.168.30.254
[R2-rip-1]
验证:

SWA:配置同上。

R1:

[R1]ip route-static 192.168.30.254 24 192.168.2.2
[R1]ospf 1
[R1-ospf-1]ar 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.2 0.0.0.255
[R1-ospf-1-area-0.0.0.0]exit

[R1-ospf-1]import-route static
[R1-ospf-1]import-route direct
R2:

[R2]ip route 192.168.1.0 24 192.168.2.1
[R2]ip route 192.168.10.0 24 192.168.2.1
[R2]ip route 192.168.20.0 24 192.168.2.1

上面三条命令也可以用一条命令替换:

[R2]ip route 0.0.0.0 0 192.168.2.1
验证:

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

OpenClaw学术助手搭建:Qwen3-14b_int4_awq自动整理文献与生成综述

OpenClaw学术助手搭建&#xff1a;Qwen3-14b_int4_awq自动整理文献与生成综述 1. 为什么需要学术助手 作为一名研究生&#xff0c;我每天要阅读大量文献。最让我头疼的不是阅读本身&#xff0c;而是如何高效整理这些文献的核心观点&#xff0c;并形成系统化的综述。传统方法需…

作者头像 李华
网站建设 2026/4/28 17:15:05

OpenClaw学习助手:Phi-3-mini-128k-instruct自动生成技术问答集

OpenClaw学习助手&#xff1a;Phi-3-mini-128k-instruct自动生成技术问答集 1. 为什么需要自动化学习助手 作为一名技术文档的深度用户&#xff0c;我经常面临一个困境&#xff1a;阅读大量文档后&#xff0c;如何快速检验自己的理解是否正确&#xff1f;传统做法是手动整理问…

作者头像 李华
网站建设 2026/4/29 0:53:36

BarTender标签打印进阶:C#调用API实现动态数据填充(源码分享)

BarTender标签打印进阶&#xff1a;C#调用API实现动态数据填充&#xff08;源码分享&#xff09; 在工业自动化和企业信息化进程中&#xff0c;标签打印系统扮演着至关重要的角色。BarTender作为全球领先的标签设计与打印软件&#xff0c;其强大的API接口为开发者提供了无限可能…

作者头像 李华
网站建设 2026/4/28 14:47:41

用 Microsoft Agent Framework 构建 SubAgent(Multi-Agent)疵

本文能帮你解决什么&#xff1f; 1. 搞懂FastAPI异步&#xff08;async/await&#xff09;到底在什么场景下能真正提升性能。 2. 掌握在FastAPI中正确使用多线程处理CPU密集型任务的方法。 3. 避开常见的坑&#xff08;比如阻塞操作、数据库连接池耗尽、GIL限制&#xff09;。 …

作者头像 李华
网站建设 2026/4/9 3:13:29

电容的分类和应用

一、电容分类常见的电容一共分为三大类陶瓷电容薄膜电容电解电容1、陶瓷电容1)最早的陶瓷电容就是下面这种&#xff0c;瓷片电容两个陶瓷板夹着陶瓷电介质2)现在的多层陶瓷电容&#xff0c;多层陶瓷电容&#xff08;MLCC&#xff09;内部有多层陶瓷电介质多层陶瓷电容有了更大的…

作者头像 李华
网站建设 2026/5/9 12:28:11

OpenClaw+千问3.5-35B-A3B-FP8:自媒体图文内容自动化生产

OpenClaw千问3.5-35B-A3B-FP8&#xff1a;自媒体图文内容自动化生产 1. 为什么选择自动化内容生产 作为一个长期运营技术自媒体的创作者&#xff0c;我每天需要花费大量时间在内容生产上&#xff1a;从选题策划、素材收集、文案撰写到排版发布&#xff0c;整个过程往往需要4-…

作者头像 李华