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

相关推荐
xiaoye-duck1 天前
《C++ 项目:手写大模型接入 SDK》Ollama接口设计(上):初始化、全量响应实现和测试
开发语言·网络·c++·语言模型
无足鸟ICT1 天前
【RHCA+】iptraf-ng(网络监控分析)
linux·网络
坤坤子吖1 天前
Linux网络编程:TCP服务器的多进程与多线程实现
linux·服务器·开发语言·网络·c++·笔记·学习
xiaoye-duck1 天前
《C++ 项目:手写大模型接入 SDK》LLMManager架构设计与实现
开发语言·网络·c++·语言模型
KevinChaos1 天前
阳台小花园开发手记 01|HarmonyOS 7.0 互动卡片:小花园为何要两套界面
华为·harmonyos
andxe1 天前
工业级 PoE 交换机选型指南:破解边缘部署四大核心难题
运维·网络·安全·光通信·交换机
say_fall1 天前
【Linux网络编程】计算机网络基础:局域网与广域网、OSI七层模型与TCP/IP五层模型、封装解包与MAC/IP地址、端口号与socket编程接口
linux·网络·tcp/ip·计算机网络·信息与通信
程序猿追1 天前
一个工程面向手机与二合一:HarmonyOS 6 部署配置和本地手记
华为·智能手机·harmonyos
Joy T1 天前
Gzip 压缩原理与实践:HTTP 响应压缩、性能收益与工程配置
网络·网络协议·http
叼烟扛炮1 天前
Linux 学习笔记(五十四):内网穿透实战——用 frp 让外网访问你的私人电脑
linux·服务器·网络·笔记·学习