beautypg.com

Nqa collaboration configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S6300 Series Switches User Manual

Page 171

background image

158

NQA collaboration configuration example

Network requirements

As shown in

Figure 50

, configure a static route to Switch C with Switch B as the next hop on Switch A.

Associate the static route, a track entry, and an ICMP operation to monitor the state of the static route.

Figure 50 Network diagram

Configuration procedure

1.

Assign each interface an IP address. (Details not shown.)

2.

On Switch A, configure a unicast static route and associate the static route with a track entry:
# Configure a static route, and associate the static route with track entry 1.

system-view

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

3.

On Switch A, configure an NQA operation:
# Create an NQA operation with the administrator name being admin and operation tag being
test1.

[SwitchA] nqa entry admin test1

# Configure the NQA operation type as ICMP echo.

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

# Configure 10.2.1.1 as the destination IP address.

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

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

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

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

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

threshold-type consecutive 5 action-type trigger-only

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

# Start the ICMP operation.

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

4.

On Switch A, create the track entry:
# Create track entry 1, and associate it with reaction entry 1 of the NQA operation (admin-test1).

[SwitchA] track 1 nqa entry admin test1 reaction 1