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:

相关推荐
小冷爱学习!2 小时前
华为动态路由-OSPF-完全末梢区域
服务器·网络·华为
技术小齐3 小时前
网络运维学习笔记 016网工初级(HCIA-Datacom与CCNA-EI)PPP点对点协议和PPPoE以太网上的点对点协议(此处只讲华为)
运维·网络·学习
shimly1234565 小时前
tcpdump 用法示例
网络·测试工具·tcpdump
xmweisi7 小时前
【华为】报文统计的技术NetStream
运维·服务器·网络·华为认证
VVVVWeiYee7 小时前
BGP配置华为——路径优选验证
运维·网络·华为·信息与通信
yourkin6667 小时前
TCP...
服务器·网络·tcp/ip
ktkiko1110 小时前
Websocket——心跳检测
网络·websocket·网络协议
GGGGGGGGGGGGGG.11 小时前
hapxory-ACL基础介绍及案例
运维·服务器·网络
小梁不秃捏12 小时前
HTTP 常见状态码技术解析(应用层)
网络·网络协议·计算机网络·http
网安加云课堂12 小时前
课程分享 | 安全系统建设的挑战与解决方案
网络·安全·web安全