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

知识点:

SWArip 1

SWA-rip-1default-route originate ?

cost Metric of the default route

route-policy Specify the routing policy

<cr>

SWA-rip-1import-route ?

bgp BGP routes

direct Direct routes

isis IS-IS routes

ospf OSPF routes

rip RIP routes

static Static routes

SWAospf 1

SWA-ospf-1default-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-1default-route-advertise always

SWA-ospf-1im

SWA-ospf-1import-route ?

bgp BGP routes

direct Direct routes

isis IS-IS routes

ospf OSPF routes

rip RIP routes

static Static routes

R1rip 1

R1-rip-1default-route originate ?

cost Metric of the default route

route-policy Specify the routing policy

<cr>

R1-rip-1default-route originate

R1-rip-1import-route ?

bgp BGP routes

direct Direct routes

eigrp EIGRP routes

isis IS-IS routes

ospf OSPF routes

rip RIP routes

static Static routes

R1ospf 1

R1-ospf-1default-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-1default-route-advertise always

R1-ospf-1im

R1-ospf-1import-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:

SWAospf 1

SWA-ospf-1area 0

SWA-ospf-1-area-0.0.0.0net

SWA-ospf-1-area-0.0.0.0network 192.168.10.254 0.0.0.255

SWA-ospf-1-area-0.0.0.0network 192.168.20.254 0.0.0.255

SWA-ospf-1-area-0.0.0.0network 192.168.1.1 0.0.0.255

R1:

R1ospf 1

R1-ospf-1ar 0

R1-ospf-1-area-0.0.0.0network 192.168.1.2 0.0.0.255

R1-ospf-1-area-0.0.0.0exit
R1-ospf-1import-route rip 1

R1-ospf-1import-route direct

R1-ospf-1exit

R1rip 1

R1-rip-1ver 2

R1-rip-1undo summary

R1-rip-1network 192.168.2.1
R1-rip-1import-route ospf 1

R1-rip-1import-route direct

R1-rip-1

R2:

R2rip 1

R2-rip-1ver 2

R2-rip-1undo summary

R2-rip-1network 192.168.2.2

R2-rip-1network 192.168.30.254

R2-rip-1

验证:

SWA:配置同上。

R1:

R1ip route-static 192.168.30.254 24 192.168.2.2

R1ospf 1

R1-ospf-1ar 0

R1-ospf-1-area-0.0.0.0network 192.168.1.2 0.0.0.255

R1-ospf-1-area-0.0.0.0exit

R1-ospf-1import-route static
R1-ospf-1import-route direct

R2:

R2ip route 192.168.1.0 24 192.168.2.1

R2ip route 192.168.10.0 24 192.168.2.1

R2ip route 192.168.20.0 24 192.168.2.1

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

R2ip route 0.0.0.0 0 192.168.2.1

验证:

相关推荐
2601_962218475 小时前
万象生鲜系统区块链溯源技术帮助生鲜企业搭建食品安全数字化体系
大数据·运维·微服务·云原生·架构
智塑未来5 小时前
中小公司在线文档选型:从协作入口到安全边界
运维·安全
新时代牛马5 小时前
Linux 内核入门地图:架构、源码目录与五大子系统
linux·运维·架构
智购科技无人售货机厂家5 小时前
2026自动售货机制冷系统维护指南:从散热器清洁到压缩机换油的工程实践~YH
运维·redis·物联网·缓存·架构
剑客的茶馆5 小时前
开发者,运维怎样转行FDE?
运维·ai·开发·fde
Julien20045 小时前
控制 SELinux 文件上下文
linux·运维·服务器
众壹新能源科技6 小时前
功率预测误差考核怎么降?从气象源到上报口径的排查清单
运维·人工智能·自动化
DevLoom_7 小时前
SD卡插电脑提示:驱动器中的磁盘未被格式化?恢复数据正确处理步骤
运维·服务器·电脑
STQY燊桐启元(深圳)电子科技7 小时前
医疗精密电源散热方案:相变陶瓷片保障医疗设备长效稳定低干扰
大数据·网络·人工智能
Orange_sparkle7 小时前
从 Docker 到 Doris:建立后端基础设施全景图
运维·docker·ai·容器·claude code