H3C Technologies H3C SecPath F1000-E User Manual
Page 511
486
AS-path : 10
Origin : igp
Attribute value : MED 0, pref-val 0, pre 255
State : valid, external, best,
Advertised to such 1 peers:
200.1.3.2
SecPath B has advertised the route to SecPath C in AS 30.
# Display BGP routing table information on SecPath C.
[SecPathC] display bgp routing-table
Total Number of Routes: 1
BGP Local router ID is 3.3.3.3
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 9.1.1.0/24 200.1.3.1 0 0 20 10i
SecPath C has learned the route to the destination 9.1.1.0/24 from SecPath B.
3.
Configure BGP community attribute:
# Configure a routing policy.
[SecPathA] route-policy comm_policy permit node 0
[SecPathA-route-policy] apply community no-export
[SecPathA-route-policy] quit
# Apply the routing policy.
[SecPathA] bgp 10
[SecPathA-bgp] peer 200.1.2.2 route-policy comm_policy export
[SecPathA-bgp] peer 200.1.2.2 advertise-community
# Display BGP routing table information on SecPath B.
[SecPathB] display bgp routing-table 9.1.1.0
BGP local router ID : 2.2.2.2
Local AS number : 20
Paths: 1 available, 1 best
BGP routing table entry information of 9.1.1.0/24:
From : 200.1.2.1 (1.1.1.1)
Original nexthop: 200.1.2.1
Community : No-Export
AS-path : 10
Origin : igp
Attribute value : MED 0, pref-val 0, pre 255
State : valid, external, best,
Not advertised to any peers yet
You can find the No-export community attribute in the output information. In this case, the route of
9.1.1.0/24 is not available in the routing table of SecPath C.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer