<Huawei> sys
[Huawei] interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0] ip address 10.0.1.2 24
......
[Huawei] display ip interface brief
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 10.0.1.2/24 up up
GigabitEthernet0/0/1 10.0.4.1/24 up up
GigabitEthernet0/0/2 10.0.6.2/24 up up
路由规划
Router
目标网段
下一跳
R1
10.0.2.0/24
10.0.4.2
10.0.3.0/24
10.0.6.1
R2
10.0.1.0/24
10.0.4.1
10.0.3.0/24
10.0.5.2
R3
10.0.1.0/24
10.0.6.2
10.0.2.0/24
10.0.5.1
[Huawei]ip route-static 10.0.2.0 24 10.0.4.2
[Huawei]ip route-static 10.0.3.0 24 10.0.6.1
[Huawei]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.1.0/24 Direct 0 0 D 10.0.1.2 GigabitEthernet
0/0/0
10.0.2.0/24 Static 60 0 RD 10.0.4.2 GigabitEthernet
0/0/1
10.0.3.0/24 Static 60 0 RD 10.0.6.1 GigabitEthernet
0/0/2
[Huawei]