![HP JH299A Скачать руководство пользователя страница 304](http://html.mh-extra.com/html/hp/jh299a/jh299a_configuration-manual_162851304.webp)
295
# Assign an IPv6 address to interface Tunnel 0 on Router A, and specify its source and
destination addresses.
[RouterA-Tunnel0] ipv6 address 5001::1 64
[RouterA-Tunnel0] source 2001::1
[RouterA-Tunnel0] destination 3001::2
[RouterA-Tunnel0] quit
# Create an IPv6 GRE tunnel interface Tunnel 0 on Router C.
<RouterC> system-view
[RouterC] interface tunnel 0 mode gre ipv6
# Assign an IPv6 address to interface Tunnel 0, and specify its source and destination
addresses.
[RouterC-Tunnel0] ipv6 address 5001::2 64
[RouterC-Tunnel0] source 3001::2
[RouterC-Tunnel0] destination 2001::1
[RouterC-Tunnel0] quit
4.
Enable IPv6 multicast routing, IPv6 PIM-DM, and MLD:
# On Router A, enable IPv6 multicast routing, and enable IPv6 PIM-DM on each interface.
[RouterA] ipv6 multicast routing
[RouterA-mrib6] quit
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] ipv6 pim dm
[RouterA-GigabitEthernet1/0/1] quit
[RouterA] interface gigabitethernet 1/0/2
[RouterA-GigabitEthernet1/0/2] ipv6 pim dm
[RouterA-GigabitEthernet1/0/2] quit
[RouterA] interface tunnel 0
[RouterA-Tunnel0] ipv6 pim dm
[RouterA-Tunnel0] quit
# On Router C, enable IPv6 multicast routing.
[RouterC] ipv6 multicast routing
[RouterC-mrib6] quit
# Enable MLD on the receiver-side interface (GigabitEthernet 1/0/1).
[RouterC] interface gigabitethernet 1/0/1
[RouterC-GigabitEthernet1/0/1] mld enable
[RouterC-GigabitEthernet1/0/1] quit
# Enable IPv6 PIM-DM on the other interfaces.
[RouterC] interface gigabitethernet 1/0/2
[RouterC-GigabitEthernet1/0/2] ipv6 pim dm
[RouterC-GigabitEthernet1/0/2] quit
[RouterC] interface tunnel 0
[RouterC-Tunnel0] ipv6 pim dm
[RouterC-Tunnel0] quit
5.
On Router C, configure a static route with the destination address 1001::/64 and the outgoing
interface Tunnel 0.
[RouterC] ipv6 route-static 1001::1 64 tunnel 0
Verifying the configuration
# Send an MLD report from Receiver to join IPv6 multicast group FF1E::101. (Details not shown.)