实验二静态路由(顺时通信)
实验二静态路由拓展
实验环境
Ensp、win10
实验描述
R2和R3设置顺时同一个方向通信,R2和R3是回来通信
实验步骤
1.画网络拓扑图需求:R1和R2、R3顺时针通信。
R1静态路由配置
[Huawei]sysname R1
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 13.0.0.1 24
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[R1]ip route-static 3.3.3.0 255.255.255.0 13.0.0.3
R2静态路由配置
[R2]int l00
[R2-LoopBack0]ip add 2.2.2.2 24
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 23.0.0.2 24
[R2]ip route-static 3.3.3.0 255.255.255.0 12.0.0.1
R3静态路由配置
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 13.0.0.3 24
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 23.0.0.3 24
[R3]int l01
[R3-LoopBack1]ip add 4.4.4.4 24
[R3]int l00
[R3-LoopBack0]ip add 3.3.3.3 24
[R3]ip route-static 2.2.2.0 255.255.255.0 23.0.0.2
需求:R1和R2、R3顺时针通信。
R1静态路由配置
[Huawei]sysname R1
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 13.0.0.1 24
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[R1]ip route-static 3.3.3.0 255.255.255.0 13.0.0.3
R2静态路由配置
[R2]int l00
[R2-LoopBack0]ip add 2.2.2.2 24
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 23.0.0.2 24
[R2]ip route-static 3.3.3.0 255.255.255.0 12.0.0.1
R3静态路由配置
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 13.0.0.3 24
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 23.0.0.3 24
[R3]int l01
[R3-LoopBack1]ip add 4.4.4.4 24
[R3]int l00
[R3-LoopBack0]ip add 3.3.3.3 24
[R3]ip route-static 2.2.2.0 255.255.255.0 23.0.0.2
R1与R3相通抓包需求2:R3到R2相通
R2配置
ip route-static 4.4.4.4 255.255.255.0 23.0.0.3
R2和R3抓包