基础配置
R1:
<Huawei>sys-view #进入系统配置模式
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1 #修改计算机名称为R1
[R1]int GigabitEthernet 0/0/0 #进入接口g0/0/0中
[R1-GigabitEthernet0/0/0]ip address 192.168.10.1 24 #配置IP地址和子网掩码
Feb 24 2022 14:53:37-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R1-GigabitEthernet0/0/0]quit #退出接口配置模式
R2:
<Huawei>sys-view #进入系统配置模式
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2 #修改计算机名称为R2
[R2]int GigabitEthernet 0/0/0 #进入接口g0/0/0中
[R2-GigabitEthernet0/0/0]ip address 192.168.10.2 24 #配置IP地址和子网掩码
Feb 24 2022 14:53:37-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R2-GigabitEthernet0/0/0]quit #退出接口配置模式