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

相关推荐
花先锋队长12 小时前
突破物理极限,华为Pura X Max重新定义折叠机音质天花板
华为·harmonyos
ElevenS_it18812 小时前
连锁门店IT运维监控实战:200+门店网络设备+POS统一纳管+按区域分组告警路由完整配置(Zabbix Proxy架构)
运维·网络·架构·zabbix
白狐_79812 小时前
【踩坑实录】VMware中OpenKylin虚拟机网络失联的深度分析与排查全过程
网络·麒麟
FrameNotWork13 小时前
HarmonyOS 智感握姿开发指南:让 UI 跟着握姿自动换边
ui·华为·harmonyos
24白菜头13 小时前
鸿蒙Native C++入门
华为·harmonyos
Yupureki13 小时前
《MySQL数据库基础》9.索引原理
linux·运维·服务器·网络·数据库·mysql
treesforest13 小时前
机房IP是什么?有什么危害?如何识别?
网络·数据库·python·网络协议·tcp/ip·网络安全
Yupureki14 小时前
《MySQL数据库基础》8.复合查询
linux·运维·服务器·网络·数据库·mysql
方芯半导体14 小时前
ST系列MCU EtherCAT协议栈框架结构详解
服务器·网络·数据库·网络协议·机器人·自动化·工业以太网