HP 3600 v2 series Configuration Manual page 388

Hide thumbs Also See for 3600 v2 series:
Table of Contents

Advertisement

*>
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 Switch 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 Switch D to reject routes from AS 200.
3.
# Configure AS_PATH list 1.
[SwitchD] 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.
[SwitchD] route-policy rt1 deny node 1
[SwitchD-route-policy] if-match as-path 1
[SwitchD-route-policy] quit
# Create routing policy rt1 with node 10, and specify the match mode as permit to permit routes from
other ASs.
[SwitchD] route-policy rt1 permit node 10
[SwitchD-route-policy] quit
# On Switch D, specify routing policy rt1 to filter routes received from peer 1.1.3.1.
[SwitchD] bgp 400
[SwitchD-bgp] peer 1.1.3.1 route-policy rt1 import
# Display the BGP routing table information of Switch D.
[SwitchD-bgp] display bgp routing-table
Total Number of Routes: 3
BGP Local router ID is 4.4.4.4
Status codes: * - valid, > - best, d - damped,
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
*>
4.4.4.0/24
*>
5.5.5.0/24
*>
6.6.6.0/24
The output shows that Switch D has learned only routes 4.4.4.0/24, 5.5.5.0/24, and 6.6.6.0/24 from
AS 100.
1.1.3.1
1.1.3.1
1.1.3.1
1.1.3.1
1.1.3.1
1.1.3.1
i - internal, s - suppressed, S - Stale
NextHop
MED
1.1.3.1
1.1.3.1
1.1.3.1
376
0
0
0
0
0
0
LocPrf
PrefVal Path/Ogn
0
0
0
300 100i
300 100i
300 100i
300 200i
300 200i
300 200i
300 100i
300 100i
300 100i

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents