步骤1:路由ip配置
路由r1配置
<H3C>sys
[H3C]sysname r1
[r1]int GigabitEthernet 0/0
[r1-GigabitEthernet0/0]ip add 192.168.0.252 255.255.255.0
[r1-GigabitEthernet0/0]undo shutdown
[r1-GigabitEthernet0/0]exit
[r1]int GigabitEthernet 0/1
[r1-GigabitEthernet0/1]ip add 10.1.1.1 255.255.255.0
[r1-GigabitEthernet0/1]undo shutdown
[r1-GigabitEthernet0/1]exit
路由r2配置
<H3C>sys
[H3C]sysname r2
[r2]int GigabitEthernet 0/0
[r2-GigabitEthernet0/0]ip add 192.168.0.253 255.255.255.0
[r2-GigabitEthernet0/0]undo shutdown
[r2-GigabitEthernet0/0]exit
[r2]int GigabitEthernet 0/1
[r2-GigabitEthernet0/1]ip add 20.1.1.1 255.255.255.0
[r2-GigabitEthernet0/1]undo shutdown
[r2-GigabitEthernet0/1