eNSP 华为浮动路由

R1:

<Huawei>system-view

Huawei\]sysname R1 \[R1\]int g0/0/0 \[R1-GigabitEthernet0/0/0\]ip add 172.16.1.1 24 \[R1-GigabitEthernet0/0/0\]int g0/0/1 \[R1-GigabitEthernet0/0/1\]ip add 10.10.1.1 24 \[R1-GigabitEthernet0/0/1\]quit \[R1\]vlan 10 //e口是二层口,无法配置IP,需要用VLAN来配置IP \[R1-vlan10\]int vlanif 10 \[R1-Vlanif10\]ip add 192.168.1.1 24 \[R1-Vlanif10\]quit \[R1\]int e0/0/0 \[R1-Ethernet0/0/0\]port link-type access \[R1-Ethernet0/0/0\]port default vlan 10 \[R1-Ethernet0/0/0\]quit \[R1\]ip route-static 192.168.3.0 24 172.16.1.2 preference 60 //静态路由默认60优先级,数字越大,优先级越小 \[R1\]ip route-static 192.168.3.0 24 10.10.1.2 preference 70 \[R1\]ip route-static 192.168.2.0 24 10.10.1.2 preference 60 \[R1\]ip route-static 192.168.2.0 24 172.16.1.2 preference 70

R2:

<Huawei>sys

Huawei\]sys R2 \[R2\]int g0/0/0 \[R2-GigabitEthernet0/0/0\]ip add 172.16.1.2 24 \[R2-GigabitEthernet0/0/0\]int g0/0/1 \[R2-GigabitEthernet0/0/1\]ip add 1.1.1.1 24 \[R2-GigabitEthernet0/0/1\]vlan 10 \[R2-vlan10\]int vlan 10 \[R2-Vlanif10\]ip add 192.168.3.1 24 \[R2-Vlanif10\]int e0/0/0 \[R2-Ethernet0/0/0\]port link-t acc \[R2-Ethernet0/0/0\]port def vlan 10 \[R2-Ethernet0/0/0\]quit \[R2\]ip route-static 192.168.1.0 24 172.16.1.1 preference 60 \[R2\]ip route-static 192.168.1.0 24 1.1.1.2 preference 70 \[R2\]ip route-static 192.168.2.0 24 1.1.1.2 preference 60 \[R2\]ip route-static 192.168.2.0 24 172.16.1.1 preference 70

R3:

<Huawei>sys

Huawei\]sys R3 \[R3\]int g0/0/0 \[R3-GigabitEthernet0/0/0\]ip add 10.10.1.2 24 \[R3-GigabitEthernet0/0/0\]int g0/0/1 \[R3-GigabitEthernet0/0/1\]ip add 1.1.1.2 24 \[R3-GigabitEthernet0/0/1\]vlan 10 \[R3-vlan10\]int vlan 10 \[R3-Vlanif10\]ip add 192.168.2.1 24 \[R3-Vlanif10\]int e0/0/0 \[R3-Ethernet0/0/0\]port link-t acc \[R3-Ethernet0/0/0\]port def vlan 10 \[R3-Ethernet0/0/0\]quit \[R3\]ip route-static 192.168.1.0 24 10.10.1.1 preference 60 \[R3\]ip route-static 192.168.1.0 24 1.1.1.1 preference 70 \[R3\]ip route-static 192.168.3.0 24 1.1.1.1 preference 60 \[R3\]ip route-static 192.168.3.0 24 10.10.1.1 preference 70

修改R1路径优先级

R1\]ip route-static 192.168.2.0 24 10.10.1.2 preference 80

相关推荐
2301_7737303133 分钟前
系统编程—IPC进程间通信
网络·网络协议
代码游侠1 小时前
学习笔记——IPC(进程间通信)
linux·运维·网络·笔记·学习·算法
Henry Zhu1231 小时前
VPP中ACL源码详解第二篇:ACL数据平面处理
运维·服务器·网络·计算机网络
上河雨滴2 小时前
win11 环境下,有线网络识别问题bug
网络
老蒋新思维2 小时前
创客匠人推演:当知识IP成为“数字心智”的架构师——论下一代认知服务的形态
网络·人工智能·网络协议·tcp/ip·机器学习·创始人ip·创客匠人
逆流°只是风景-bjhxcc2 小时前
【网络】ipv4和ipv6的区别
网络
别动哪条鱼3 小时前
SDL 函数对各对象缓冲区的影响
网络·数据结构·ffmpeg
云计算练习生3 小时前
渗透测试行业术语扫盲(第十六篇)—— 红蓝对抗与演练类
网络·安全·网络安全·信息安全·渗透测试术语
快解析3 小时前
内网穿透快解析注册后添加配置端口教程
linux·服务器·网络
VekiSon3 小时前
Linux系统编程——IPC进程间通信
linux·运维·网络