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:

相关推荐
花生的酱几秒前
第二章 IP、子网划分、VRP
服务器·网络·tcp/ip
hgdlip2 分钟前
网络设置:静态IP与动态IP,何去何从?
网络·网络协议·tcp/ip
阑梦清川3 分钟前
JavaEE初阶---网络原理之TCP篇(二)
服务器·网络·tcp/ip
skywind34 分钟前
为什么 C 语言数组是从 0 开始计数的?
c语言·开发语言·网络·c++
千汇数据的老司机1 小时前
网络安全、数据监测、数据预警的可视化大屏
网络·安全·web安全
稳重的大王2 小时前
为什么QNAP威联通NAS的APP center无法安装APP?
网络
我只会Traceroute2 小时前
【渗透测试】01-信息收集-名词概念
网络·web安全·网络安全·渗透测试
爱就是恒久忍耐2 小时前
CANopen中错误帧的制造和观测
网络·python·制造
姓刘的哦3 小时前
Boost网络库API学习笔记
网络