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

知识点:

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

验证:

相关推荐
·薯条大王5 小时前
经济实惠玩云服务器|一台云服务器多人共用,子账号配置教程
java·linux·运维·服务器·汇编·c++·python
weixin_446260857 小时前
从被动镜像到主动智能体:面向网络物理人工智能的整体论数字孪生(HDT-Net)
网络·人工智能
ZJH__GO8 小时前
网络编程v4pro--实现聊天室文件传输功能
java·服务器·网络·计算机网络
小小、码农8 小时前
Linux进程控制:从fork到exec,手写一个简易Shell
linux·运维·服务器
不会就选b8 小时前
Linux之进程间通信(二)---模拟进程池
linux·运维·服务器
shengnan_wsn10 小时前
【协议】【TCP】
网络·网络协议·tcp/ip
烟雨江南78510 小时前
2026汽车制造与新能源整车柔性产线Agentic-Workflow白皮书:跨APS_MES_ERP多智能体动态排产与装配容错实战
大数据·网络·人工智能·自动化·ai客服·企业agent
沫璃染墨10 小时前
《从零入门Linux系统篇(十五):系统工具篇·六——GDB调试器详解:从程序执行控制到高级调试技巧》
linux·运维·服务器·c语言·c++
小僧景贤11 小时前
CAN调试全套配件+详细实操使用方法(从零排查、步骤落地、现场通用)
网络·can通信·嵌入式通信
AIgorithmGEEK11 小时前
Linux 环境变量完全指南:从入门到理解底层原理
linux·运维·服务器