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

知识点:

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

验证:

相关推荐
乘云数字DATABUFF4 天前
5分钟部署开源APM Databuff:OpenTelemetry全链路追踪入门实战
运维·后端
荣--6 天前
一键部署不是为了省时间 —— 它是把"买来的 PaaS"变成"自己的平台"的拐点
运维·zabbix·工程化·一键部署·平台化·边界设计
江华森6 天前
动手实战学 Docker — 从零到集群编排完全指南
运维
Avan_菜菜6 天前
FRP 内网穿透完整实战:从 HTTP 映射到 HTTPS 自签代理
运维·nginx·https
SelectDB7 天前
Litefuse 开源并推出单进程轻量模式,25 秒就能跑起来的 Agent 可观测与评估平台
运维·后端·自动化运维
XIAOHEZIcode9 天前
Linux系统鼠标偏移常见原因以及修复方案
linux·运维·游戏
用户03284722207010 天前
如何搭建本地yum源(上)
运维
大树8812 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai
摇滚侠12 天前
Linux CentOS7 rpm 安装 MySQL 5.7
linux·运维·mysql
霸道流氓气质13 天前
领域驱动设计(DDD)在 Spring Boot 微服务中的实践指南
运维·spring boot·微服务