HP 6125XLG Configuration Manual page 262

Blade switch layer 3 - ip routing
Table of Contents

Advertisement

BGP local router ID is 195.1.1.1
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network
>i 1.0.0.0
*
i
Route 1.0.0.0/8 is the optimal.
(Method 2.) Configure different local preferences on Switch B and C for route 1.0.0.0/8,
making Switch D give priority to the route from Switch C:
# Define an ACL numbered 2000 on Switch C, permitting route 1.0.0.0/8.
[SwitchC] acl number 2000
[SwitchC-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
[SwitchC-acl-basic-2000] quit
# Configure a routing policy named localpref on Switch C, setting the local preference of route
1.0.0.0/8 to 200 (the default is 100).
[SwitchC] route-policy localpref permit node 10
[SwitchC-route-policy-localpref-10] if-match ip address acl 2000
[SwitchC-route-policy-localpref-10] apply local-preference 200
[SwitchC-route-policy-localpref-10] quit
# Apply routing policy localpref to routes from peer 193.1.1.1.
[SwitchC] bgp 200
[SwitchC-bgp] ipv4-family unicast
[SwitchC-bgp-ipv4] peer 193.1.1.1 route-policy localpref import
[SwitchC-bgp-ipv4] quit
[SwitchC-bgp] quit
# Display the BGP routing table on Switch D.
[SwitchD] display bgp routing-table ipv4
Total number of routes: 2
BGP local router ID is 195.1.1.1
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network
>i 1.0.0.0
*
i
Route 1.0.0.0/8 learned from Switch C is the optimal.
NextHop
MED
193.1.1.1
50
192.1.1.1
100
NextHop
MED
193.1.1.1
192.1.1.1
251
LocPrf
PrefVal Path/Ogn
100
0
100
0
LocPrf
PrefVal Path/Ogn
200
0
100
0
100i
100i
100i
100i

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents