R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

317
[FirewallA-ospf-1-area-0.0.0.0] quit
[FirewallA-ospf-1] area 1
[FirewallA–ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[FirewallA–ospf-1-area-0.0.0.1] quit
# Configure Firewall B.
<FirewallB> system-view
[FirewallB] ospf 1 router-id 3.3.3.3
[FirewallB-ospf-1] area 1
[FirewallB-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[FirewallB-ospf-1-area-0.0.0.1] quit
[FirewallB-ospf-1] area 2
[FirewallB–ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255
[FirewallB–ospf-1-area-0.0.0.2] quit
# Configure Router B.
<RouterB> system-view
[RouterB] ospf 1 router-id 4.4.4.4
[RouterB-ospf-1] area 2
[RouterB-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.2] quit
# Display OSPF routing information on Firewall A.
[FirewallA] display ospf routing
OSPF Process 1 with Router ID 2.2.2.2
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
10.2.1.0/24 2 Transit 10.2.1.1 3.3.3.3 0.0.0.1
10.1.1.0/24 2 Transit 10.1.1.2 2.2.2.2 0.0.0.0
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
NOTE:
Since Area 0 has no direct connection to Area 2, the routing table of Firewall A has no route to Area2.
3. Configure a virtual link.
# Configure Firewall A.
[FirewallA] ospf
[FirewallA-ospf-1] area 1
[FirewallA-ospf-1-area-0.0.0.1] vlink-peer 3.3.3.3
[FirewallA-ospf-1-area-0.0.0.1] quit
[FirewallA-ospf-1] quit
# Configure Firewall B.
[FirewallB] ospf 1
[FirewallB-ospf-1] area 1
[FirewallB-ospf-1-area-0.0.0.1] vlink-peer 2.2.2.2
[FirewallB-ospf-1-area-0.0.0.1] quit