eNSP静态路由

1、实现全网通,考虑环形拓扑的优势。

R12:

复制代码
[Huawei]interface GigabitEthernet 0/0/0	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24

[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24

[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 192.168.3.1 24
[R12]ip route-static 192.168.4.0 24 192.168.2.2 
[R12]ip route-static 192.168.4.0 24 192.168.3.2 Pre 61
[R12]ip route-static 192.168.5.0 24 192.168.2.2 Pre 61
[R12]ip route-static 192.168.5.0 24 192.168.3.2
[R12]ip route-static 192.168.6.0 24 192.168.3.2
[R12]ip route-static 192.168.6.0 24 192.168.2.2
[R12]display ip routing-table protocol static 

R11:

复制代码
[R11]interface GigabitEthernet 0/0/0
[R11-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[R11]interface GigabitEthernet 0/0/1
[R11-GigabitEthernet0/0/1]ip address 192.168.4.1 24

[R11]ip route-static 192.168.1.0 24 192.168.2.1
[R11]ip route-static 192.168.1.0 24 192.168.4.2 Pre 61
[R11]ip route-static 192.168.3.0 24 192.168.2.1
[R11]ip route-static 192.168.3.0 24 192.168.4.2 Pre 61
[R11]ip route-static 192.168.5.0 24 192.168.4.2
[R11]ip route-static 192.168.5.0 24 192.168.2.1 Pre 61
[R11]ip route-static 192.168.6.0 24 192.168.4.2
[R11]ip route-static 192.168.6.0 24 192.168.2.1 Pre 61

R13:

复制代码
[R13]interface GigabitEthernet 0/0/0
[R13-GigabitEthernet0/0/0]ip address 192.168.4.2 24
[R13]interface GigabitEthernet 0/0/1
[R13-GigabitEthernet0/0/1]ip address 192.168.5.2 24
[R13]interface GigabitEthernet 0/0/2
[R13-GigabitEthernet0/0/2]ip address 192.168.6.1 24

[R13]ip route-static 192.168.1.0 24 192.168.4.1
[R13]ip route-static 192.168.1.0 24 192.168.5.1
[R13]ip route-static 192.168.2.0 24 192.168.4.1
[R13]ip route-static 192.168.2.0 24 192.168.5.1 Pre 61
[R13]ip route-static 192.168.3.0 24 192.168.5.1
[R13]ip route-static 192.168.3.0 24 192.168.4.1 Pre 61
[R13]display ip routing-table protocol static 

R14:

复制代码
[R14]interface GigabitEthernet 0/0/0	
[R14-GigabitEthernet0/0/0]ip address 192.168.5.1 24 
[R14]interface GigabitEthernet 0/0/1
[R14-GigabitEthernet0/0/1]ip address 192.168.3.2 24

[R14]ip route-static 192.168.1.0 24 192.168.3.1
[R14]ip route-static 192.168.1.0 24 192.168.5.2 Pre 61
[R14]ip route-static 192.168.2.0 24 192.168.3.1	
[R14]ip route-static 192.168.2.0 24 192.168.5.2 Pre 61
[R14]ip route-static 192.168.4.0 24 192.168.5.2
[R14]ip route-static 192.168.4.0 24 192.168.3.1 Pre 61
[R14]ip route-static 192.168.6.0 24 192.168.5.2
[R14]ip route-static 192.168.6.0 24 192.168.3.1 Pre 61
[R14]display ip routing-table protocol static

PC6:

PC7:

2、测试

ping192.168.6.3:

ping192.168.4.1:

R12和R13断开时,ping192.168.4.1:

相关推荐
沧浪之水!17 分钟前
【Linux网络】:套接字之UDP
linux·网络·udp
上海云盾-高防顾问22 分钟前
高防IP+CDN组合:电商大促的“双保险”防护方案
网络·网络协议·tcp/ip
迷路的小绅士27 分钟前
常见网络安全攻击类型深度剖析(三):DDoS攻击——分类、攻击机制及企业级防御策略
网络·web安全·ddos
诡异森林。1 小时前
Docker--Docker网络原理
网络·docker·容器
ALex_zry1 小时前
Docker Macvlan网络配置实战:解决“network already exists“错误
网络·docker·php
半路_出家ren1 小时前
流量抓取工具(wireshark)
网络·网络协议·测试工具·网络安全·wireshark·流量抓取工具
Gazer_S3 小时前
【HTTP/2:信息高速公路的革命】
网络·网络协议·http
李匠20243 小时前
C++ RPC以及cmake
网络·c++·网络协议·rpc
科技小E3 小时前
EasyRTC音视频实时通话嵌入式SDK,打造社交娱乐低延迟实时互动的新体验
大数据·网络
静听夜半雨5 小时前
CANoe入门——3、新建LIN工程及LIN DataBase(LDF文件)的创建
网络·数据库·c++·编辑器