R3303-HP 6600/HSR6600 Routers Layer 3 - IP Services Configuration Guide
155
# Enable IPv6.
<RouterA> system-view
[RouterA] ipv6
# Assign a global unicast address for interface GigabitEthernet 2/0/1.
[RouterA] interface GigabitEthernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ipv6 address 3001::1/64
[RouterA-GigabitEthernet2/0/1] quit
# Assign a global unicast addresses for interface GigabitEthernet 2/0/2 and allow it to advertise
RA messages (no interface advertises RA messages by default).
[RouterA] interface gigabitethernet 2/0/2
[RouterA-GigabitEthernet2/0/2] ipv6 address 2001::1/64
[RouterA-GigabitEthernet2/0/2] undo ipv6 nd ra halt
[RouterA-GigabitEthernet2/0/2] quit
2. Configure Router B:
# Enable IPv6.
<RouterB> system-view
[RouterB] ipv6
# Assign a global unicast address for interface GigabitEthernet 2/0/1.
[RouterB] interface gigabitethernet 2/0/1
[RouterB-GigabitEthernet2/0/1] ipv6 address 3001::2/64
[RouterB-GigabitEthernet2/0/1] quit
# Configure an IPv6 static route with destination IP address 2001::/64 and next hop address
3001::1.
[RouterB] ipv6 route-static 2001:: 64 3001::1
3. Configure the host:
# Enable IPv6 for the host to obtain an IPv6 address automatically through IPv6 ND.
# Execute the ping ipv6 command on Router A to verify the connectivity between Router A and
Router B.
[RouterA] ping ipv6 3001::1
PING 3001::1 : 56 data bytes, press CTRL_C to break
Reply from 3001::1
bytes=56 Sequence=0 hop limit=64 time = 3 ms
Reply from 3001::1
bytes=56 Sequence=1 hop limit=64 time = 3 ms
Reply from 3001::1
bytes=56 Sequence=2 hop limit=64 time = 3 ms
Reply from 3001::1
bytes=56 Sequence=3 hop limit=64 time = 3 ms
Reply from 3001::1
bytes=56 Sequence=4 hop limit=64 time = 5 ms
--- 3001::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/3/5 ms










