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

相关推荐
LabVIEW开发6 小时前
ALMEMO 采集器 + LabVIEW 多路温度怎么采?
网络·labview
郝学胜-神的一滴12 小时前
Effective STL 条款 14:用扩容函数避免重新分配
linux·开发语言·网络·数据结构·c++·单片机
王亚博_Abel13 小时前
域名是怎么变成 IP 的?手拆 DNS 解析四个实验实测
网络·网络协议·tcp/ip
always202219 小时前
AI运行时 · 11 - Serverless API 网关:冷启动、流量路由、Autoscaler、函数生命周期
网络·人工智能·serverless
神一样的老师20 小时前
用 FCU1501 双网口打通两个不同网段:IP 转发 + NAT 实战
网络·网络协议·tcp/ip
jipinxiaofeihua20 小时前
(文章6) 03章-C++文件操作(下)
linux·运维·网络
钱栈up1 天前
华为把 WATCH 5 的鸿蒙 7 卡在'充分测试'这道闸门口,到底在等什么?
华为·harmonyos
keepquietl1 天前
UDS on CAN 入门(6):诊断响应要等多久?读懂 P2、P2* 和 S3
网络·网络协议
XW9632581 天前
除湿机行业组织能力与人才地图报告
大数据·服务器·网络·数据结构·数据库·人工智能
ManThink Technology1 天前
ThinkLink 告警如何落地:从触发条件到恢复通知的完整检查
网络·物联网