ApplicabilityThis example applies to all Huawei AR routers of V200R002C00 and later versions.
Networking Requirements
Static routes need to be configured to ensure that any two hosts can communicate with each other.
Procedure
1. Configure RouterA.
#
ipv6 //Enable IPv6 forwarding.
#
interface GigabitEthernet1/0/0
ipv6 enable //Enable IPv6 on the interface.
ipv6 address 1::1 64
#
interface GigabitEthernet2/0/0
ipv6 enable
ipv6 address 2::2 64
#
ipv6 route-static 3:: 64 2::1
ipv6 route-static 4:: 64 2::1
ipv6 route-static 5:: 64 2::1 //Configure static routes on RouterA.
#
return
2. Configure RouterB.
#
ipv6
#
interface GigabitEthernet1/0/0
ipv6 enable
ipv6 address 3::1 64
#
interface GigabitEthernet2/0/0
ipv6 enable
ipv6 address 2::1 64
#
interface GigabitEthernet3/0/0
ipv6 enable
ipv6 address 4::1 64
#
ipv6 route-static 1:: 64 2::2
ipv6 route-static 5:: 64 4::2
#
return
3. Configure RouterC.
#
ipv6
#
interface GigabitEthernet1/0/0
ipv6 enable
ipv6 address 5::1 64
#
interface GigabitEthernet2/0/0
ipv6 enable
ipv6 address 4::2 64
#
ipv6 route-static 1:: 64 4::1
ipv6 route-static 2:: 64 4::1
ipv6 route-static 3:: 64 4::1
#
return
4. Configure hosts.
Set the default gateway of hosts in VLAN 10 to 1::1, default gateway of hosts in VLAN 20 to 5::1, and default gateway of VLAN 30 to 3::1.
5. Configure switches.
Configure switches to allow hosts to communicate with their respective gateways.
6. Verify the configuration.
Run the display ipv6 routing-table command to view the IP routing table.
Run the ping ipv6 command to verify the router connectivity.
Configuration Notes
• Before configuring an IPv6 routing protocol, enable IPv6 unicast forwarding on routers. Before configuring IPv6 features on an interface, enable IPv6 on the interface.
• Configure IPv6 addresses for routers' interfaces correctly.
• Configure default gateways for hosts.