This section provides an example for configuring OSPFv3 to implement connectivity between IPv6 devices across departments.
As shown in Figure 1, an enterprise deploys FWs to connect to the research and development, marketing, and financial departments respectively. The enterprise also deploys a FW on the network border as a security gateway to connect the intranet to the IPv6 network through an ISP network.
The networking requirements are as follows:
The configuration roadmap is as follows:
View the OSPFv3 neighbor status on the FW. The following command output shows the OSPFv3 neighbor status on FW_A.
[FW_A] display ospfv3 peer OSPFv3 Process (1) OSPFv3 Area (0.0.0.1) Neighbor ID Pri State Dead Time Interface Instance ID 2.2.2.2 1 2-Way/DROther 00:00:34 GE0/0/3 0 3.3.3.3 1 Full/Backup 00:00:32 GE0/0/3 0 4.4.4.4 1 Full/DR 00:00:32 GE0/0/3 0 OSPFv3 Area (0.0.0.4) Neighbor ID Pri State Dead Time Interface Instance ID 5.5.5.5 1 Full/- 00:00:34 GE0/0/1 0
View the OSPFv3 routing table on the FW. The following command output shows the OSPFv3 routing table on FW_A.
[FW_A] display ospfv3 routing Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area, N - NSSA, U - Uninstalled, D - Denied by Import Policy OSPFv3 Process (1) Destination Metric Next-hop IA 2000::/64 1 directly-connected, GE0/0/3 IA 2001::/64 2 via 2000::2, GE0/0/3 IA 2002::/64 2 via 2000::3, GE0/0/3 2003::/64 2 via 2000::4, GE0/0/3 IA 3000::/64 1 directly-connected, GE0/0/1
The preceding command output shows that FW_A learns the network segment routes of the R&D, marketing, and finance departments and the IPv6 routes to the Internet.
Configuration script for FW_A:
# ipv6 # sysname FW_A # ospfv3 1 router-id 1.1.1.1 # interface GigabitEthernet0/0/1 ipv6 enable ipv6 address 3000::1 64 ospfv3 1 area 0.0.0.4 # interface GigabitEthernet0/0/3 ipv6 enable ipv6 address 2000::1 64 ospfv3 1 area 0.0.0.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # security-policy rule name policy_sec_1 source-zone local source-zone trust destination-zone local destination-zone trust action permit rule name policy_sec_2 source-zone local source-zone untrust destination-zone local destination-zone untrust action permit rule name policy_sec_3 source-zone trust destination-zone untrust source-address 2001:: 64 source-address 2002:: 64 source-address 2003:: 64 action permit # return
Configuration script for FW_B:
# ipv6 # sysname FW_B # ospfv3 1 router-id 2.2.2.2 # interface GigabitEthernet0/0/1 ipv6 enable ipv6 address 2000::2 64 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/0/3 ipv6 enable ipv6 address 2001::1 64 ospfv3 1 area 0.0.0.1 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # security-policy rule name policy_sec_1 source-zone local source-zone trust destination-zone local destination-zone trust action permit rule name policy_sec_2 source-zone local source-zone untrust destination-zone local destination-zone untrust action permit rule name policy_sec_3 source-zone trust destination-zone untrust source-address 2001:: 64 action permit # return
Configuration script for FW_C:
# ipv6 # sysname FW_C # ospfv3 1 router-id 3.3.3.3 area 0.0.0.2 stub no-summary # interface GigabitEthernet0/0/1 ipv6 enable ipv6 address 2000::3 64 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/0/3 ipv6 enable ipv6 address 2002::1 64 ospfv3 1 area 0.0.0.2 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # security-policy rule name policy_sec_1 source-zone local source-zone trust destination-zone local destination-zone trust action permit rule name policy_sec_2 source-zone local source-zone untrust destination-zone local destination-zone untrust action permit rule name policy_sec_3 source-zone trust destination-zone untrust source-address 2002:: 64 action permit # return
Configuration script for FW_D:
# ipv6 # sysname FW_D # ospfv3 1 router-id 4.4.4.4 # interface GigabitEthernet0/0/1 ipv6 enable ipv6 address 2000::4 64 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/0/3 ipv6 enable ipv6 address 2003::1 64 ospfv3 1 area 0.0.0.3 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # security-policy rule name policy_sec_1 source-zone local source-zone trust destination-zone local destination-zone trust action permit rule name policy_sec_2 source-zone local source-zone untrust destination-zone local destination-zone untrust action permit rule name policy_sec_3 source-zone trust destination-zone untrust source-address 2003:: 64 action permit # return