beautypg.com

Verifying the configuration – H3C Technologies H3C SR8800 User Manual

Page 62

background image

50

# Configure a static route, whose destination address is 10.2.1.1, and associate the static route

with track entry 1.

system-view

[RouterA] ip route-static 10.1.1.2 24 10.2.1.1 track 1

3.

On Router A, create an NQA test group:
# Create an NQA test group with the administrator name being admin and operation tag being
test.

[RouterA] nqa entry admin test

# Configure the test type of the NQA test group as ICMP echo.

[RouterA-nqa-admin-test] type icmp-echo

# Configure ICMP echo requests to use 10.2.2.1 as the destination IP address.

[RouterA-nqa-admin-test-icmp-echo] destination ip 10.2.1.1

# Configure the device to perform tests at an interval of 100 milliseconds.

[RouterA-nqa-admin-test-icmp-echo] frequency 100

# Create reaction entry 1. If the number of consecutive probe failures reaches 5, collaboration

with other modules is triggered.

[RouterA-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail

threshold-type consecutive 5 action-type trigger-only

[RouterA-nqa-admin-test-icmp-echo] quit

# Configure the test start time and test duration for the test group.

[RouterA] nqa schedule admin test start-time now lifetime forever

4.

On Router A, create the track entry:
# Create track entry 1 to associate it with Reaction entry 1 of the NQA test group (admin-test).

[RouterA] track 1 nqa entry admin test reaction 1

Verifying the configuration

# On Router A, display information about all the track entries.

[RouterA] display track all

Track ID: 1

Status: Positive

Notification delay: Positive 0, Negative 0 (in seconds)

Reference object:

NQA entry: admin test

Reaction: 1

# Display brief information about active routes in the routing table on Router A.

[RouterA] display ip routing-table

Routing Tables: Public

Destinations : 5 Routes : 5

Destination/Mask Proto Pre Cost NextHop Interface

10.1.1.0/24 Static 60 0 10.2.1.1 GE3/1/1

10.2.1.0/24 Direct 0 0 10.2.1.2 GE3/1/1

10.2.1.2/32 Direct 0 0 127.0.0.1 InLoop0

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0