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

Table Of Contents
476
Method I: Specify a higher MED value for the route 1.0.0.0/8 advertised to 192.1.1.2 to make
Firewall D give priority to the route learned from Firewall C.
# Define ACL 2000 to permit the route 1.0.0.0/8
[FirewallA] acl number 2000
[FirewallA-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
[FirewallA-acl-basic-2000] quit
# Define routing policy apply_med_50 that sets the MED value of route 1.0.0.0/8 to 50, and
routing policy apply_med_100 that sets the MED value of route 1.0.0.0/8 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 the route advertised to 193.1.1.2 (Firewall C), and
apply routing policy apply_med_100 to the route advertised to 192.1.1.2 (Firewall B).
[FirewallA] bgp 100
[FirewallA-bgp] peer 193.1.1.2 route-policy apply_med_50 export
[FirewallA-bgp] peer 192.1.1.2 route-policy apply_med_100 export
[FirewallA-bgp] quit
# Display the BGP routing table on Firewall D.
[FirewallD] display bgp routing-table
Total Number of Routes: 2
BGP Local router ID is 194.1.1.1
Status codes: * - valid, ^ - VPNv4 best, > - best, d – damped,
h – history, i – internal, s – suppressed, S – Stale
Origin : i – IGP, e – EGP, ? – incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 1.0.0.0 193.1.1.1 50 100 0 100i
* i 192.1.1.1 100 100 0 100i
The route 1.0.0.0/8 learned from Firewall C is the optimal.
Method II: Specify different local preferences for route 1.0.0.0/8 on Firewall B and C to make
Firewall D give priority to the route learned from Firewall C.
# Define ACL 2000 to permit the route 1.0.0.0/8 on Firewall C.
[FirewallC] acl number 2000
[FirewallC-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
[FirewallC-acl-basic-2000] quit
# Define routing policy localpref on Firewall C to set the local preference of route 1.0.0.0/8 to
200 (the default is 100).
[FirewallC] route-policy localpref permit node 10
[FirewallC-route-policy] if-match acl 2000
[FirewallC-route-policy] apply local-preference 200