203
Figure 57 Network diagram
Configuration procedures
# Display BGP peer information for Device A.
<Sysname> display bgp peer ipv4
BGP local router ID: 1.1.1.1
Local AS number: 100
Total number of peers: 3 Peers in established state: 3
* - Dynamically created peer
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
10.2.1.2 200 13 16 0 0 00:16:12 Established
10.3.1.2 300 13 16 0 0 00:10:34 Established
10.3.2.2 300 13 16 0 0 00:10:38 Established
# Create track entry
1
and associate it with the link state of GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] track 1 interface gigabitethernet 1/0/1
# Configure a CLI-defined EAA monitor policy so that the system automatically disables session
establishment with Device D and Device E when GigabitEthernet 1/0/1 is down.
Sysname] rtm cli-policy test
[Sysname-rtm-test] event track 1 state negative
[Sysname-rtm-test] action 0 cli system-view
[Sysname-rtm-test] action 1 cli bgp 100
[Sysname-rtm-test] action 2 cli peer 10.3.1.2 ignore
[Sysname-rtm-test] action 3 cli peer 10.3.2.2 ignore
VM
VM
IP network
Device A
Device B
Device C
10.2.1.2
Device D
10.3.1.2
Device E
10.3.2.2
GE1/0/1
GE1/0/1