HPE FlexNetwork HSR6800 Configuration Manual page 430

Layer 3-ip routing configuration guide
Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

[RouterD-bgp] peer 1.1.3.1 as-number 300
[RouterD-bgp] quit
# Inject routes 4.4.4.4/24, 5.5.5.5/24, and 6.6.6.6/24 on Router A.
[RouterA-bgp] network 4.4.4.4 24
[RouterA-bgp] network 5.5.5.5 24
[RouterA-bgp] network 6.6.6.6 24
# Inject routes 7.7.7.7/24, 8.8.8.8/24, and 9.9.9.9/24 on Router B.
[RouterB-bgp] network 7.7.7.7 24
[RouterB-bgp] network 8.8.8.8 24
[RouterB-bgp] network 9.9.9.9 24
# Display the BGP routing table information of Router D.
[RouterD-bgp] display bgp routing-table
Total Number of Routes: 6
BGP Local router ID is 4.4.4.4
Status codes: * - valid, > - best, d - damped,
Network
*>
4.4.4.0/24
*>
5.5.5.0/24
*>
6.6.6.0/24
*>
7.7.7.0/24
*>
8.8.8.0/24
*>
9.9.9.0/24
The output shows that Router D has learned routes 4.4.4.0/24, 5.5.5.0/24, and 6.6.6.0/24 from
AS 100 and 7.7.7.0/24, 8.8.8.0/24, and 9.9.9.0/24 from AS 200.
Configure Router D to reject the routes from AS 200:
3.
# Configure AS path list 1.
[RouterD] ip as-path 1 permit .*200.*
# Create routing policy rt1 with node 1, and specify the match mode as deny to deny routes
from AS 200.
[RouterD] route-policy rt1 deny node 1
[RouterD-route-policy] if-match as-path 1
[RouterD-route-policy] quit
# Create routing policy rt1 with node 10, and specify the match mode as permit to permit routes
from other ASs.
[RouterD] route-policy rt1 permit node 10
[RouterD-route-policy] quit
# On Router D, specify routing policy rt1 to filter routes received from peer 1.1.3.1.
[RouterD] bgp 400
[RouterD-bgp] peer 1.1.3.1 route-policy rt1 import
# Display the BGP routing table information of Router D.
[RouterD-bgp] display bgp routing-table
Total Number of Routes: 3
h - history,
i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
NextHop
1.1.3.1
1.1.3.1
1.1.3.1
1.1.3.1
1.1.3.1
1.1.3.1
418
MED
LocPrf
PrefVal Path/Ogn
0
300 100i
0
300 100i
0
300 100i
0
300 200i
0
300 200i
0
300 200i

Advertisement

Table of Contents
loading

Table of Contents