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

知识点:

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

验证:

相关推荐
2401_8685347811 分钟前
NFV:将安全设备部署到虚拟机上
网络
zhengfei61128 分钟前
【渗透工具】Payloader — 渗透测试辅助平台(payload一键所有)
网络·安全·web安全
鼎讯信通1 小时前
风电光缆运维提质增效:G-4000A 光缆故障追踪仪破解风场巡检难题
运维·网络·数据库
三十..1 小时前
MySQL 从入门到高可用架构实战精要
运维·数据库·mysql
跨境数据猎手2 小时前
大数据在电商行业的应用
大数据·运维·爬虫
Multipath7122 小时前
无人区不掉线:多链路聚合路由,为环塔拉力赛筑起“空中通讯走廊”
网络·5g·安全·无人机·实时音视频
linyanRPA3 小时前
影刀RPA店群自动化实战:多店铺活动自动报名与促销管理架构设计
运维·自动化·办公自动化·rpa·python脚本·爬虫自动化·店群自动化
会Tk矩阵群控的小木3 小时前
安卓群控系统对于游戏工作室实战教程
android·运维·游戏·adb·开源软件·个人开发
佛山个人技术开发4 小时前
GitCode SSH连接配置教程
运维·ssh·gitcode
上海云盾-小余4 小时前
接口高频恶意刷取怎么防?网关限流搭配 WAF 联合防护方案
网络·安全