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

Table Of Contents
458
[FirewallB-bgp] peer 3.3.3.3 as-number 65009
[FirewallB-bgp] peer 3.3.3.3 connect-interface loopback 0
[FirewallB-bgp] quit
[FirewallB] ospf 1
[FirewallB-ospf-1] area 0
[FirewallB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[FirewallB-ospf-1-area-0.0.0.0] network 9.1.1.1 0.0.0.255
[FirewallB-ospf-1-area-0.0.0.0] quit
[FirewallB-ospf-1] quit
# Configure Firewall C.
<FirewallC> system-view
[FirewallC] bgp 65009
[FirewallC-bgp] router-id 3.3.3.3
[FirewallC-bgp] peer 2.2.2.2 as-number 65009
[FirewallC-bgp] peer 2.2.2.2 connect-interface loopback 0
[FirewallC-bgp] quit
[FirewallC] ospf 1
[FirewallC-ospf-1] area 0
[FirewallC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[FirewallC-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255
[FirewallC-ospf-1-area-0.0.0.0] quit
[FirewallC-ospf-1] quit
[FirewallC] display bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 65009
Total number of peers : 1 Peers in established state : 1
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
2.2.2.2 65009 7 10 0 0 00:06:09 Established
The output information shows that Firewall C has established an IBGP peer relationship with
Firewall B.
3. Configure EBGP:
{ The EBGPpeers, Firewall A and Firewall B (usually belong to different ISPs), are located in
different ASs. Typically, their loopback interfaces are not reachable to each other, so directly
connected interfaces are used for establishing BGP sessions.
{ To enable Firewall C to access the network 8.1.1.0/24 connected directly to Firewall A, inject
n e t w o r k 8 .1.1. 0 / 24 t o t h e B G P r o u t i n g t a b l e o f Fi r e wa l l A .
# Configure Firewall A.
<FirewallA> system-view
[FirewallA] bgp 65008
[FirewallA-bgp] router-id 1.1.1.1
[FirewallA-bgp] peer 3.1.1.1 as-number 65009
[FirewallA-bgp] network 8.1.1.1 24
[FirewallA-bgp] quit
# Configure Firewall B.