H3C Technologies H3C S5560 Series Switches User Manual

Page 319

Advertising
background image

303

[SwitchD-bgp] address-family ipv4 unicast

[SwitchD-bgp-ipv4] peer 2.2.2.2 enable

[SwitchD-bgp-ipv4] peer 3.3.3.3 enable

[SwitchD-bgp-ipv4] network 4.4.4.4 32

4.

Configure preferred values so Link B is used to forward traffic between Switch A and Switch D:
# Configure Switch A to set the preferred value to 100 for routes received from Switch B.

[SwitchA-bgp-ipv4] peer 10.1.1.2 preferred-value 100

[SwitchA-bgp-ipv4] quit

[SwitchA-bgp] quit

# Configure Switch D to set the preferred value to 100 for routes received from Switch B.

[SwitchD-bgp-ipv4] peer 2.2.2.2 preferred-value 100

[SwitchD-bgp-ipv4] quit

[SwitchD-bgp] quit

5.

Configure BGP FRR:
# On Switch A, configure the source address of BFD echo packets as 11.1.1.1.

[SwitchA] bfd echo-source-ip 11.1.1.1

# Create routing policy frr to set a backup next hop 30.1.1.3 (Switch C) for the route destined for
4.4.4.4/32.

[SwitchA] ip prefix-list abc index 10 permit 4.4.4.4 32

[SwitchA] route-policy frr permit node 10

[SwitchA-route-policy] if-match ip address prefix-list abc

[SwitchA-route-policy] apply fast-reroute backup-nexthop 30.1.1.3

[SwitchA-route-policy] quit

# Apply the routing policy to BGP FRR for BGP IPv4 unicast address family.

[SwitchA] bgp 100

[SwitchA-bgp] address-family ipv4 unicast

[SwitchA-bgp-ipv4] fast-reroute route-policy frr

[SwitchA-bgp-ipv4] quit

[SwitchA-bgp] quit

# On Switch D, configure the source address of BFD echo packets as 44.1.1.1.

[SwitchD] bfd echo-source-ip 44.1.1.1

# Create routing policy frr to set a backup next hop 3.3.3.3 (Switch C) for the route destined for
1.1.1.1/32.

[SwitchD] ip prefix-list abc index 10 permit 1.1.1.1 32

[SwitchD] route-policy frr permit node 10

[SwitchD-route-policy] if-match ip address prefix-list abc

[SwitchD-route-policy] apply fast-reroute backup-nexthop 3.3.3.3

[SwitchD-route-policy] quit

# Apply the routing policy to BGP FRR for BGP IPv4 unicast address family.

[SwitchD] bgp 200

[SwitchD-bgp] address-family ipv4 unicast

[SwitchD-bgp-ipv4] fast-reroute route-policy frr

[SwitchD-bgp-ipv4] quit

[SwitchD-bgp] quit

Advertising
This manual is related to the following products: