H3C-static
R1 G0/0 12.0.0.1 Lo1 1.1.1.1
R2 G0/0 12.0.0.2
G0/1 23.0.0.2
Lo1 2.2.2.2
R3 G0/0 23.0.0.3
Lo1 3.3.3.3
配置文件导出
R1
interface LoopBack1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 12.0.0.1 255.255.255.0
#
ip route-static 3.3.3.0 24 12.0.0.2
ip route-static 23.0.0.0 24 12.0.0.2
R2
interface LoopBack1
ip address 2.2.2.2 255.255.255.0
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 12.0.0.2 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 23.0.0.2 255.255.255.0
#
ip route-static 1.1.1.1 32 12.0.0.1
ip route-static 3.3.3.3 32 23.0.0.3
R3
interface LoopBack1
ip address 3.3.3.3 255.255.255.0
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 23.0.0.3 255.255.255.0
#
ip route-static 1.1.1.0 24 23.0.0.2
ip route-static 12.0.0.0 24 23.0.0.2