当前位置:网站首页 > 技术经理的晋升之路 > 正文

华为模拟器怎么配ip(华为模拟器怎么配置静态路由)



1、划分IP,并给相应设备配置IP地址。观整个网络拓扑(包括环回网段,考虑汇总),可划分为5个大的网段。

[Huawei]sysname R1 [R1]int g0/0/0配置地址 [R1-GigabitEthernet0/0/0]ip add [R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30 [R1-GigabitEthernet0/0/0]qu [R1]int g0/0/1 [R1-GigabitEthernet0/0/1]ip add [R1-GigabitEthernet0/0/1]ip address 192.168.1.5 30
[Huawei]sys [Huawei]sysname R3 [R3]int g0/0/0 [R3-GigabitEthernet0/0/0]ip add [R3-GigabitEthernet0/0/0]ip address 192.168.1.6 30 [R3-GigabitEthernet0/0/0]q [R3]int g0/0/1 [R3-GigabitEthernet0/0/1]ip ad [R3-GigabitEthernet0/0/1]ip address 192.168.1.13 30 [R3-GigabitEthernet0/0/1]q [R3]int l0 [R3-LoopBack0]ip ad [R3-LoopBack0]ip address 192.168.1.97 28 [R3-LoopBack0]q [R3]int l1 [R3-LoopBack1]ip add [R3-LoopBack1]ip address 192.168.1.113 28
Huawei]sys [Huawei]sysname R2 [R2]int g0/0/0 [R2-GigabitEthernet0/0/0]ip add [R2-GigabitEthernet0/0/0]ip address 192.168.1.2 30 [R2-GigabitEthernet0/0/0]q [R2]int g0/0/1 [R2-GigabitEthernet0/0/1]ip add [R2-GigabitEthernet0/0/1]ip address 192.168.1.9 30 [R2-GigabitEthernet0/0/1]q [R2]int l0 [R2-LoopBack0]ip ad [R2-LoopBack0]ip address 192.168.1.65 28 [R2-LoopBack0]q [R2]int l1 [R2-LoopBack1]ip add [R2-LoopBack1]ip address 192.168.1.81 
R4]int g0/0/0 [R4-GigabitEthernet0/0/0]ip add [R4-GigabitEthernet0/0/0]ip address 192.168.1.14 30 [R4-GigabitEthernet0/0/0]q [R4]int g0/0/1 [R4-GigabitEthernet0/0/1]ip add [R4-GigabitEthernet0/0/1]ip address 192.168.1.10 30 [R4-GigabitEthernet0/0/1]q [R4]int g0/0/2 [R4-GigabitEthernet0/0/2]ip add [R4-GigabitEthernet0/0/2]ip address 192.168.1.17 30 [R4-GigabitEthernet0/0/2]q [R4]int g4/0/0 [R4-GigabitEthernet4/0/0]ip add [R4-GigabitEthernet4/0/0]ip address 192.168.1.21 30 [R4-GigabitEthernet4/0/0]q [R4]int l0 [R4-LoopBack0]ip add [R4-LoopBack0]ip address 192.168.1.129 28 [R4-LoopBack0]q [R4]int l1 [R4-LoopBack1]ip add [R4-LoopBack1]ip address 192.168.1.145 28
[R5]int g0/0/0 [R5-GigabitEthernet0/0/0]ip add [R5-GigabitEthernet0/0/0]ip address 192.168.1.18 30 [R5-GigabitEthernet0/0/0]q [R5]int g0/0/1 [R5-GigabitEthernet0/0/1]ip add [R5-GigabitEthernet0/0/1]ip address 192.168.1.22 30 [R5-GigabitEthernet0/0/1]q [R5]int l0 [R5-LoopBack0]ip add [R5-LoopBack0]ip add [R5-LoopBack0]ip address 5.5.5.5 24
[R1]ip route-static 0.0.0.0 0 192.168.1.6 [R1]ping 5.5.5.5 [R1]ip route-static 192.168.1.32 27 null 0

4、防环,做黑洞路由配置
5、通过改变路由条目优先级实现,并观察静态路由表变化
6、测试,观察1000Mb/s链路故障时,数据能否走100Mb/s链路。

配置路由条目

[R1]ip route-static 192.168.1.80 30 192.168.1.2 [R1]ip route-static 192.168.1.128 27 192.168.1.2 [R1]ip route-static 192.168.1.128 27 192.168.1.6 [R1]ip route-static 192.168.1.16 30 192.168.1.2 [R1]ip route-static 192.168.1.16 30 192.168.1.6 [R1]ip route-static 192.168.1.12 30 192.168.1.6 [R1]ip route-static 192.168.1.96 27 192.168.1.6 [R1]ip route-static 192.168.1.64 27 192.168.1.2 [R1]ip route-static 0.0.0.0 0 192.168.1.2

R2]ip route-static 192.168.1.16 30 192.168.1.10 [R2]ip route-static 192.168.1.12 30 192.168.1.10 [R2]ip route-static 192.168.1.96 27 192.168.1.10 [R2]ip route-static 192.168.1.96 27 192.168.1.1 [R2]ip route-static 192.168.1.4 30 192.168.1.1 [R2]ip route-static 192.168.1.32 27 192.168.1.1 [R2]ip route-static 0.0.0.0 0 192.168.1.10 [R2]ip route-static 192.168.1.64 27 null 0 [R3]ip route-static 192.168.1.32 27 192.168.1.5 [R3]ip route-static 192.168.1.0 30 192.168.1.5 [R3]ip route-static 192.168.1.64 27 192.168.1.5 [R3]ip route-static 192.168.1.64 27 192.168.1.14 [R3]ip route-static 192.168.1.8 30 192.168.1.14 [R3]ip route-static 192.168.1.128 27 192.168.1.14 [R3]ip route-static 192.168.1.16 30 192.168.1.14 [R3]ip route-static 0.0.0.0 0 192.168.1.14 [R3]ip route-static 192.168.1.96 27 null 0 
R4]ip route-static 192.168.1.96 27 192.168.1.13 [R4]ip route-static 192.168.1.4 30 192.168.1.13 [R4]ip route-static 192.168.1.32 27 192.168.1.13 [R4]ip route-static 192.168.1.32 27 192.168.1.9 [R4]ip route-static 192.168.1.0 30 192.168.1.9 [R4]ip route-static 192.168.1.64 27 192.168.1.9 [R4]ip route-static 0.0.0.0 0 192.168.1.18 [R4]ip route-static 192.168.1.128 27 null 0 [R4]ip route-static 0.0.0.0 0 192.168.1.22 pre 

[R5]ip route-static 192.168.1.32 27 192.168.1.17 [R5]ip route-static 192.168.1.64 27 192.168.1.17 [R5]ip route-static 192.168.1.96 27 192.168.1.17 [R5]ip route-static 192.168.1.128 27 192.168.1.17 [R5]ip route-static 192.168.1.0 30 192.168.1.17 [R5]ip route-static 192.168.1.4 30 192.168.1.17 [R5]ip route-static 192.168.1.8 30 192.168.1.17 [R5]ip route-static 192.168.1.12 30 192.168.1.17 [R5]ip route-static 192.168.1.32 27 192.168.1.21

 
浮动静态 [R5]ip route-static 192.168.1.32 27 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.64 27 192.168.1.21 pre [R5]ip route-static 192.168.1.64 27 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.96 27 192.168.1.21 pre [R5]ip route-static 192.168.1.96 27 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.128 27 192.168.1.21 pre [R5]ip route-static 192.168.1.128 27 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.0 30 192.168.1.21 pre [R5]ip route-static 192.168.1.0 30 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.4 30 192.168.1.21 pre [R5]ip route-static 192.168.1.4 30 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.8 30 192.168.1.21 pre [R5]ip route-static 192.168.1.8 30 192.168.1.21 preference 61 [R5]ip route-static 192.168.1.12 30 192.168.1.21 pre [R5]ip route-static 192.168.1.12 30 192.168.1.21 preference 61 [R5]

04502696d48b4a5b9ce0ba82d998082e.png

 266069ac934d4ba0bf4ab0374fc1e5ab.png

82d75f7a58d546a4851cf03224254ee4.png

52e5b2cd990445009303cdcea36c5c82.png

f5ff2ea3bf064e4089517df70b8f9911.png

到此这篇华为模拟器怎么配ip(华为模拟器怎么配置静态路由)的文章就 介绍到这了,更多相关内容请继续浏览下面的相关 推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • 电路原理详解(电路原理详解视频)2025-11-25 20:09:06
  • 双管反激电路最简单三个步骤(双管反激电路最简单三个步骤)2025-11-25 20:09:06
  • 路由守卫写在哪(路由守卫写在哪个位置)2025-11-25 20:09:06
  • 产品经理必备技术基础知识(产品经理必备技术基础知识总结)2025-11-25 20:09:06
  • 卸载双系统中的linux(双系统直接删除linux开不了机)2025-11-25 20:09:06
  • 回环地址怎么配置路由器(回环地址怎么配置路由器)2025-11-25 20:09:06
  • max31865模块原理图(max31865电路图)2025-11-25 20:09:06
  • 反激电路的原理(反激电路工作原理)2025-11-25 20:09:06
  • 删除虚拟环境中的包怎么删(删除虚拟环境的命令)2025-11-25 20:09:06
  • 路由守卫有哪三种类型的(路由守卫的三个参数)2025-11-25 20:09:06
  • 全屏图片