一、HCIA实验01 直连通讯
配置需求:
1.按照图中的设备名称,配置各设备名称;
2.按照图中的IP地址规划,配置IP地址;
3.测试R1与R2是否ping通;
4.测试R2与R3是否ping通;
5.测试R1与R3是否ping通;
---------------------------------------------------------------
<huawei>system-view
[Huawei]sysname R1
[R1]int gi0/0/0
[R1-GigabitEthernet0/0/0]ip addr 12.1.1.1 24
[R1-GigabitEthernet0/0/0]int l0 /* 进入环回口配置 L0 */
[R1-LoopBack0]ip addr 1.1.1.1 32 /* 配置环回口 IP */
[R1-LoopBack0]ping 12.1.1.2
[R1-LoopBack0]ping 23.1.1.3
[R1-LoopBack0]q
[R1]q
<R1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<huawei>system-view
[Huawei]sysname R2
[R2]int gi0/0/0
[R2-GigabitEthernet0/0/0]ip addr 12.1.1.2 24
[R2-GigabitEthernet0/0/0]int gi0/0/1
[R2-GigabitEthernet0/0/1]ip addr 23.1.1.2 24
[R2-GigabitEthernet0/0/1]int l0
[R2-LoopBack0]ip addr 2.2.2.2 32
[R2-LoopBack0]ping 23.1.1.3
[R2-LoopBack0]q
[R2]q
<R2>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<huawei>system-view
[Huawei]sysname R3
[R3]int gi0/0/0
[R3-GigabitEthernet0/0/0]ip addr 23.1.1.3 24
[R3-GigabitEthernet0/0/0]int l0
[R3-LoopBack0]ip addr 3.3.3.3 32
[R3]q
<R3>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated