R3721-F3210-F3171-HP High-End Firewalls Network Management Configuration Guide-6PW101

Table Of Contents
478
2. Configure OSPF so that Firewall A and Router C are reachable to each other.
3. Configure BGP on Firewall A:
# Establish two IBGP connections between Firewall A and Router C.
<FirewallA> system-view
[FirewallA] bgp 100
[FirewallA-bgp] peer 3.0.2.2 as-number 200
[FirewallA-bgp] peer 2.0.2.2 as-number 200
[FirewallA-bgp] quit
# When the two links between Firewall A and Router C are both up, Router C adopts the link
Firewall A<—>Router B<—>Router C to exchange packets with network 1.1.1.0/24. (Set a
higher MED value for route 1.1.1.0/24 sent to peer 2.0.2.2 on Firewall A.)
{ Create ACL 2000 to permit 1.1.1.0/24 to pass.
[FirewallA] acl number 2000
[FirewallA-acl-basic-2000] rule permit source 1.1.1.0 24
[FirewallA-acl-basic-2000] quit
{ Create two route policies, apply_med_50 and apply_med_100. Policy apply_med_50 sets the
M E D f o r r o u t e 1.1.1. 0 / 24 t o 50 . Po l i c y apply_med_100 sets that to 100.
[FirewallA] route-policy apply_med_50 permit node 10
[FirewallA-route-policy] if-match acl 2000
[FirewallA-route-policy] apply cost 50
[FirewallA-route-policy] quit
[FirewallA] route-policy apply_med_100 permit node 10
[FirewallA-route-policy] if-match acl 2000
[FirewallA-route-policy] apply cost 100
[FirewallA-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.
[FirewallA] bgp 100
[FirewallA-bgp] peer 3.0.2.2 route-policy apply_med_50 export
[FirewallA-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 Firewall A<—>Router
B<—>Router C fails, BFD can quickly detect the failure and notify it to BGP, and then the link
Firewall A<—>Router D<—>Router C takes effect immediately.
[FirewallA-bgp] peer 3.0.2.2 bfd
[FirewallA-bgp] quit
4. Configure BGP on Router C:
<RouterC> system-view
[RouterC] bgp 200
[RouterC-bgp] peer 3.0.1.1 as-number 200
[RouterC-bgp] peer 3.0.1.1 bfd
[RouterC-bgp] peer 2.0.1.1 as-number 200
[RouterC-bgp] quit
5. Configure BFD parameters (you can use default BFD parameters instead):
# Configure Firewall A.
[FirewallA] bfd session init-mode active
[FirewallA] interface GigabitEthernet0/2