华为路由器配置静态路由配置

in 网络工程 with 0 comment

123
实验环境:AR1、AR2、AR3三台AR2220系列路由器
实验要求:AR1与AR3两个非同网段互通
Annotation
AR1配置
<huawei>sys
[huawei]ip int g 0/0/0
[huawei-G0/0/0]ip add 192.168.1.1 24
[huawei-G0/0/0]quit
[huawei]ip route-static 192.168.2.0 0.0.0.255 192.168.1.2 //配置“下一跳”
AR2配置
<huawei>sys
[huawei]ip int g 0/0/0
[huawei-G0/0/0]ip add 192.168.1.2 24
[huawei]quit
[huawei]ip int g 0/0/1
[huawei-G0/0/1]ip add 192.168.2.1 24
[huawei-G0/0/1]quit
AR3配置
[huawei]int g 0/0/0
[huawei-G0/0/0]ip add 192.168.2.2 24
[huawei-G0/0/0]quit
[huawei]ip route-static 192.168.1.0 0.0.0.255 192.168.2.1 //配置“下一跳”

Responses