#路由器 AR1 ip地址配置<Huawei>system-view #进入特权模式
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable#关闭信息提示
Info: Information center is disabled.
[Huawei]sysname R2 #命名R2[R4]interface GigabitEthernet 0/0/0 #进入接口0/0/0[R4-GigabitEthernet0/0/0]ip address 12.1.1.1 24#ip address ip地址 子网掩码
#路由器 AR2 ip地址配置<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname R2
[R5]interface GigabitEthernet 0/0/0
[R5-GigabitEthernet0/0/0]ip address 12.1.1.2 24
步骤三:配置SSH远程登陆
#配置R2作为远程被登陆设备进行配置
<R2>system-view
Info: Succeeded in starting the STELNET server.[R2]stelnet server enable #开启SSH服务器端的stelnet服务
[R2]rsa local-key-pair create #创建加密报文的密钥对
% RSA keys defined for Host already exist.
Confirm to replace them?