H3C S3610-28P Operation Manual page 532

S3610 & s5510 series
Table of Contents

Advertisement

Operation Manual – IPv4 Routing
H3C S3610&S5510 Series Ethernet Switches
# Display the routing table on Switch C.
[SwitchC] display bgp routing-table
Total Number of Routes: 1
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
Network
*>
9.1.1.0/24
Switch C learned route 9.1.1.0/24 from Switch B.
3)
Configure BGP community
# Configure a routing policy.
[SwitchA] route-policy comm_policy permit node 0
[SwitchA-route-policy] apply community no-export
[SwitchA-route-policy] quit
# Apply the routing policy.
[SwitchA] bgp 10
[SwitchA-bgp] peer 200.1.2.2 route-policy comm_policy export
[SwitchA-bgp] peer 200.1.2.2 advertise-community
# Display the routing table on Switch B.
[SwitchB] display bgp routing-table 9.1.1.0
BGP local router ID : 2.2.2.2
Local AS number : 20
Paths:
BGP routing table entry information of 9.1.1.0/24:
From
Original nexthop: 200.1.2.1
Community
AS-path
Origin
Attribute value : MED 0, pref-val 0, pre 255
State
Not advertised to any peers yet
The route 9.1.1.0/24 is not available in the routing table of Switch C.
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
NextHop
200.1.3.1
1 available, 1 best
: 200.1.2.1 (1.1.1.1)
: No-Export
: 10
: igp
: valid, external, best,
i - internal, s - suppressed, S - Stale
MED
5-51
Chapter 5 BGP Configuration
LocPrf
PrefVal Path/Ogn
0
20 10i

Advertisement

Table of Contents
loading

Table of Contents