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:

相关推荐
qdprobot15 分钟前
ESP32桌面天气摆件加文心一言AI大模型对话Mixly图形化编程STEAM创客教育
网络·人工智能·百度·文心一言·arduino
hakesashou2 小时前
Python中常用的函数介绍
java·网络·python
C++忠实粉丝2 小时前
计算机网络socket编程(4)_TCP socket API 详解
网络·数据结构·c++·网络协议·tcp/ip·计算机网络·算法
九州ip动态2 小时前
做网络推广及游戏注册为什么要换IP
网络·tcp/ip·游戏
Estar.Lee2 小时前
时间操作[取当前北京时间]免费API接口教程
android·网络·后端·网络协议·tcp/ip
蝶开三月2 小时前
php:使用socket函数创建WebSocket服务
网络·websocket·网络协议·php·socket
G丶AEOM2 小时前
SSL/TLS,SSL,TLS分别是什么
网络·网络协议·网络安全
儒道易行2 小时前
【DVWA】RCE远程命令执行实战
网络·安全·网络安全
Koi慢热3 小时前
路由基础(全)
linux·网络·网络协议·安全
hzyyyyyyyu5 小时前
内网安全隧道搭建-ngrok-frp-nps-sapp
服务器·网络·安全