H3C Technologies H3C SecPath F1000-E User Manual

Page 583

Advertising
background image

558

[SecPath-GigabitEthernet0/1] quit

# Configure the IP addresses of GigabitEthernet 0/2 and GigabitEthernet 0/3.

[SecPath] interface GigabitEthernet 0/2

[SecPath-GigabitEthernet0/2] ip address 150.1.1.1 255.255.255.0

[SecPath-GigabitEthernet0/2] quit

[SecPath] interface GigabitEthernet 0/3

[SecPath-GigabitEthernet0/3] ip address 151.1.1.1 255.255.255.0

[SecPath-GigabitEthernet0/3] quit

2.

Configure Router:
# Configure RIP.

<Router> system-view

[Router] rip

[Router-rip-1] network 10.0.0.0

[Router-rip-1] network 150.1.0.0

[Router-rip-1] network 151.1.0.0

# Configure the IP addresses of GigabitEthernet 0/1 and GigabitEthernet 0/2.

[Router] interface GigabitEthernet 0/1

[Router-GigabitEthernet0/1] ip address 150.1.1.2 255.255.255.0

[Router-GigabitEthernet0/1] quit

[Router] interface GigabitEthernet 0/2

[Router-GigabitEthernet0/2] ip address 151.1.1.2 255.255.255.0

[Router-GigabitEthernet0/2] quit

# Configure the loopback interface address.

[Router] interface loopback 0

[Router-LoopBack0] ip address 10.1.1.1 32

3.

Verify the configuration:
# Run the debugging ip policy-based-route command on SecPath.

<SecPath> debugging ip policy-based-route

<SecPath> terminal debugging

<SecPath> terminal monitor

Configure the IP address of Host A as 192.1.1.3/24 and the gateway as 192.1.1.1.
# Ping Loopback 0 of Router from Host A, and set the data section length to 50 bytes.

C:\>ping -l 50 10.1.1.1

Pinging 10.1.1.1 with 50 bytes of data:

Reply from 10.1.1.1: bytes=50 time<1ms TTL=255

Reply from 10.1.1.1: bytes=50 time<1ms TTL=255

Reply from 10.1.1.1: bytes=50 time<1ms TTL=255

Reply from 10.1.1.1: bytes=50 time<1ms TTL=255

Ping statistics for 10.1.1.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

Advertising