一、实验环境
系统版本 | Windows 10 专业工作站版 (版本号22H2) |
ENSP版本 | 1.3.00.100 |
路由器版本 | AR2220 |
二、实验拓扑
三、实验要求
通过配置静态路由实现PC1到PC2的互联互通;
IP地址分配情况:
PC1 | 192.168.1.1/24(本机) | 192.168.1.254/24(网关) |
PC2 | 192.168.2.1/24(本机) | 192.168.2.254/24(网关) |
AR1 | GE0/0/0:192.168.1.254/24 | GE0/0/2:10.0.0.1/24 |
AR2 | GE0/0/2:10.0.0.2/24 | GE0/0/1:20.0.0.2/24 |
AR3 | GE0/0/1:20.0.0.1/24 | GE0/0/0:192.168.2.254/24 |
四、实验设备基础配置
PC1:
PC2:
AR1:
<R1>system-view
[R1]interface GigabitEthernet 0/0/0 //进入端口
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 255.255.255.0 //配置IP地址
[R1]interface GigabitEthernet 0/0/2
[R1-GigabitEthernet0/0/2]ip address 10.0.0.1 255.255.255.0
[R1]ip route-static 192.168.2.0 255.255.255.0 10.0.0.2 //配置静态路由
[R1]ip route-static 20.0.0.0 255.255.255.0 10.0.0.2
AR2:
<R2>system-view
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/0]ip address 10.0.0.2 255.255.255.0
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/2]ip address 20.0.0.2 255.255.255.0
[R2]ip route-static 192.168.1.0 255.255.255.0 10.0.0.1
[R2]ip route-static 192.168.2.0 255.255.255.0 20.0.0.1
AR3:
<R3>system-view
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/0]ip address 20.0.0.1 255.255.255.0
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/2]ip address 192.168.2.254 255.255.255.0
[R3]ip route-static 192.168.1.0 255.255.255.0 20.0.0.2
[R3]ip route-static 10.0.0.0 255.255.255.0 20.0.0.2
五、检测设备连通性
总结
这虽然是个相对来讲比较简单的实验,但是希望能够通过实验,使得对静态路由有一定的了解。