1、静态路由的配置拓扑
2、配置设备
- 配置设备
(1)进入系统视图:system-view
(2)配置设备名称:sysname 名称
(3)进入接口视图:interface 接口类型 接口编号
(4)配置IP地址:ip address ip地址 子网掩码
以AR4为例进行说明(其余路由器自行配置):
AR4配置:
The device is running!
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR4
[AR4]interface
Apr 8 2020 19:49:55-08:00 AR4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 1, the c
hange loop count is 0, and the maximum number of records is 4095.
^
Error:Incomplete command found at '^' position.
[AR4]interface s0/0/0
[AR4-Serial0/0/0]ip address 10.0.14.4 255.255.255.248
[AR4-Serial0/0/0]
Apr 8 2020 19:51:15-08:00 AR4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 2, the c
hange loop count is 0, and the maximum number of records is 4095.
[AR4-Serial0/0/0]
<AR4>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Apr 8 2020 19:51:26-08:00 AR4 %%01CFM/4/SAVE(l)[0]:The user chose Y when decidi
ng whether to save the configuration to the device.
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<AR4>
3、检验连通性
AR1与AR4(成功)
AR1与AR2、AR3(成功)
AR4与AR2、AR3(失败)
4、解决方法
通过配置AR4与AR2、AR3静态路由的方法来建立联系(必须相互配置)。
配置静态路由
ip route-static IP地址 {子网掩码|掩码长度} {下一跳地址|接口类型 接口编号 [下一跳地址]}
配置AR4与AR2静态路由:
检验连通(成功):
配置AR4与AR3静态路由(省略),并且检验连通性(成功):
查看AR1中路由条目:display ip routing-table