beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 289

background image

273

[RouterA-Serial2/1/9/1:0] ip address 1.1.3.1 255.255.255.0

2.

Configure Router B:
# Configure a static route to subnet 10.110.0.0/24.

system-view

[RouterB] ip route-static 10.110.0.0 24 1.1.2.1

# Configure the IP address of the serial port.

[RouterB] interface Serial 3/1/9/2:0

[RouterB-Serial3/1/9/2:0] ip address 1.1.2.2 255.255.255.0

[RouterB-Serial3/1/9/2:0] quit

3.

Configure Router C:
# Configure a static route to subnet 10.110.0.0/24.

system-view

[RouterC] ip route-static 10.110.0.0 24 1.1.3.1

# Configure the IP address of the serial port.

[RouterC] interface Serial 3/1/9/1:0

[RouterC-Serial3/1/9/1:0] ip address 1.1.3.2 255.255.255.0

[RouterC-Serial3/1/9/1:0] quit

4.

Verify the configuration:
Configure the IP address of Host A as 10.110.0.20/24, and the gateway as 10.110.0.10.
On Host A, telnet to Router B (1.1.2.2) that is directly connected to Router A. The operation
succeeds.
On Host A, telnet to Router C (1.1.3.2) that is directly connected to Router A. The operation fails.
Ping Router C from Host A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets arriving on
GigabitEthernet 3/1/1 of Router A are forwarded via next hop 1.1.2.2, and other packets are

forwarded via next hop 1.1.3.2 on Router C. The PBR configuration is effective.