HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Routing Confi - Page 193
Establish two IBGP connections between Switch A and Switch C.
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 193 highlights
{ Create two route policies, apply_med_50 and apply_med_100. Policy apply_med_50 sets the MED for route 1.1.1.0/24 to 50. Policy apply_med_100 sets that to 100. [SwitchA] route-policy apply_med_50 permit node 10 [SwitchA-route-policy] if-match acl 2000 [SwitchA-route-policy] apply cost 50 [SwitchA-route-policy] quit [SwitchA] route-policy apply_med_100 permit node 10 [SwitchA-route-policy] if-match acl 2000 [SwitchA-route-policy] apply cost 100 [SwitchA-route-policy] quit { Apply routing policy apply_med_50 to routes outgoing to peer 3.0.2.2, and apply routing policy apply_med_100 to routes outgoing to peer 2.0.2.2. [SwitchA] bgp 100 [SwitchA-bgp] peer 3.0.2.2 route-policy apply_med_50 export [SwitchA-bgp] peer 2.0.2.2 route-policy apply_med_100 export # Configure BFD over the link to peer 3.0.2.2 so that when the link Switch ASwitch BSwitch C fails, BFD can quickly detect the failure and notify it to BGP, and then the link Switch ASwitch DSwitch C takes effect immediately. [SwitchA-bgp] peer 3.0.2.2 bfd # Establish two EBGP connections between Switch A and Switch E. [SwitchA-bgp] peer 30.1.1.2 as-number 100 [SwitchA-bgp] quit 4. Configure BGP on Switch C: # Establish two IBGP connections between Switch A and Switch C. system-view [SwitchC] bgp 100 [SwitchC-bgp] peer 3.0.1.1 as-number 200 [SwitchC-bgp] peer 2.0.1.1 as-number 200 # Configure BFD over the link to peer 3.0.1.1 so that when the link Switch ASwitch BSwitch C fails, BFD can quickly detect the failure and notify it to BGP, and then the link Switch ASwitch DSwitch C takes effect immediately. [SwitchC-bgp] peer 3.0.1.1 bfd # Configure a preference of 140 for the IBGP routes on Switch C. [SwitchC-bgp] preference 255 140 130 [SwitchC-bgp] quit 5. Configure BGP on Switch E: # Establish an EBGP connection between Switch A and Switch E. system-view [SwitchE] bgp 100 [SwitchE-bgp] peer 30.1.1.1 as-number 200 # Configure Switch E to advertise route 1.1.1.0/24 through BGP. [SwitchE-bgp] network 1.1.1.0 24 [SwitchE-bgp] quit 6. Configure BFD parameters (you can use default BFD parameters instead): # Configure Switch A. [SwitchA] bfd session init-mode active 183