eNSP 华为浮动路由

R1:

<Huawei>system-view

Huaweisysname R1

R1int g0/0/0

R1-GigabitEthernet0/0/0ip add 172.16.1.1 24

R1-GigabitEthernet0/0/0int g0/0/1

R1-GigabitEthernet0/0/1ip add 10.10.1.1 24

R1-GigabitEthernet0/0/1quit

R1vlan 10 //e口是二层口,无法配置IP,需要用VLAN来配置IP

R1-vlan10int vlanif 10

R1-Vlanif10ip add 192.168.1.1 24

R1-Vlanif10quit

R1int e0/0/0

R1-Ethernet0/0/0port link-type access

R1-Ethernet0/0/0port default vlan 10

R1-Ethernet0/0/0quit

R1ip route-static 192.168.3.0 24 172.16.1.2 preference 60 //静态路由默认60优先级,数字越大,优先级越小

R1ip route-static 192.168.3.0 24 10.10.1.2 preference 70

R1ip route-static 192.168.2.0 24 10.10.1.2 preference 60

R1ip route-static 192.168.2.0 24 172.16.1.2 preference 70

R2:

<Huawei>sys

Huaweisys R2

R2int g0/0/0

R2-GigabitEthernet0/0/0ip add 172.16.1.2 24

R2-GigabitEthernet0/0/0int g0/0/1

R2-GigabitEthernet0/0/1ip add 1.1.1.1 24

R2-GigabitEthernet0/0/1vlan 10

R2-vlan10int vlan 10

R2-Vlanif10ip add 192.168.3.1 24

R2-Vlanif10int e0/0/0

R2-Ethernet0/0/0port link-t acc

R2-Ethernet0/0/0port def vlan 10

R2-Ethernet0/0/0quit

R2ip route-static 192.168.1.0 24 172.16.1.1 preference 60

R2ip route-static 192.168.1.0 24 1.1.1.2 preference 70

R2ip route-static 192.168.2.0 24 1.1.1.2 preference 60

R2ip route-static 192.168.2.0 24 172.16.1.1 preference 70

R3:

<Huawei>sys

Huaweisys R3

R3int g0/0/0

R3-GigabitEthernet0/0/0ip add 10.10.1.2 24

R3-GigabitEthernet0/0/0int g0/0/1

R3-GigabitEthernet0/0/1ip add 1.1.1.2 24

R3-GigabitEthernet0/0/1vlan 10

R3-vlan10int vlan 10

R3-Vlanif10ip add 192.168.2.1 24

R3-Vlanif10int e0/0/0

R3-Ethernet0/0/0port link-t acc

R3-Ethernet0/0/0port def vlan 10

R3-Ethernet0/0/0quit

R3ip route-static 192.168.1.0 24 10.10.1.1 preference 60

R3ip route-static 192.168.1.0 24 1.1.1.1 preference 70

R3ip route-static 192.168.3.0 24 1.1.1.1 preference 60

R3ip route-static 192.168.3.0 24 10.10.1.1 preference 70

修改R1路径优先级

R1ip route-static 192.168.2.0 24 10.10.1.2 preference 80

相关推荐
ylscode2 小时前
OpenSSH 10.4 正式发布:后量子加密落地,多项高危漏洞得到修复
网络·安全·网络安全
DianSan_ERP3 小时前
电商架构演进:如何在高并发场景下实现多平台API的标准化履约?
运维·前端·网络·安全·架构·自动化
阿成学长_Cain3 小时前
Linux ipcs 命令超全详解:查看共享内存 / 消息队列 / 信号量,IPC 运维必备
linux·运维·服务器·网络·数据库
星释4 小时前
鸿蒙智能体开发实战:6.A2A 模式开发接口
华为·harmonyos·鸿蒙·智能体
青瓦梦滋4 小时前
协议定制/序列化-反序列化(Linux视角)
linux·服务器·网络·c++
澹然疏离4 小时前
HarmonyOS应用《民族图鉴》开发第34篇:TTSEngineService——语音引擎封装与降级策略
华为·harmonyos
花开彼岸天~5 小时前
03 module.json5 配置文件全解:能力声明、权限申请与设备支持
华为·harmonyos·鸿蒙系统
ZZZMMM.zip6 小时前
基于鸿蒙HarmonyOS NEXT开发AI股票分析应用:智能投资新体验与鸿蒙Flutter框架跨端实践
人工智能·flutter·华为·harmonyos·鸿蒙
花开彼岸天~7 小时前
04 oh-package.json5 与依赖管理:ohpm 包管理器全解析
华为·harmonyos·鸿蒙系统
驭渊的小故事8 小时前
网络原理01(两千字解析)
网络