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

知识点:

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

验证:

相关推荐
元Y亨H35 分钟前
生产环境监控与故障应急处理(5-5-5 标准)指南
运维
观山岳五楼2 小时前
Ubuntu 24 怎么使用Ubuntu 20 的镜像源
linux·运维·ubuntu
星夜夏空992 小时前
网络编程(1)
服务器·网络
上海云盾-小余2 小时前
中小站点防护避坑:低价高防服务存在的各类安全短板剖析
网络·爬虫·安全·ddos
寒晓星2 小时前
[linux]线程及多线程
linux·运维
慧一居士3 小时前
Linux如何设置固定的静态ip
运维
国服第二切图仔4 小时前
13其他工具 - Skill/LSP/Sleep等
linux·运维·里氏替换原则
数据知道5 小时前
邮件安全实战:SPF/DKIM/DMARC 配置与钓鱼绕过
网络·安全·web安全·网络安全·邮件安全
王莎莎-MinerU5 小时前
MCP 解决的是工具接入,科研 Agent 还缺的是科学证据接口标准化
开发语言·网络·人工智能·深度学习·pdf·c#·php
暴力求解5 小时前
Linux ---线程控制(二)
linux·运维·服务器·操作系统