Verifying the configuration – H3C Technologies H3C MSR 50 User Manual

Page 159

Advertising
background image

# Configure the NQA operation type as ICMP echo.

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

# Configure 10.2.2.1 as the destination IP address.

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

# Configure the operation to repeat at an interval of 100 milliseconds.

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

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

triggered.

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

threshold-type consecutive 5 action-type trigger-only

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

# Start the ICMP echo operation.

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

4.

On Router A, create track entry 1, and associate it with reaction entry 1 of the ICMP echo

operation.

[RouterA] track 1 nqa entry admin test1 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 test1

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 Eth1/1

10.2.1.0/24 Direct 0 0 10.2.1.2 Eth1/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

The output shows that the static route with the next hop 10.2.1.1 is active, and the status of the track entry
is positive.
# Remove the IP address of Ethernet 1/1 on Router B.

<RouterB> system-view

[RouterB] interface ethernet 1/1

[RouterB-Ethernet1/1] undo ip address

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

[RouterA] display track all

146

Advertising