R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

218
[RouterA-GigabitEthernet2/1/1] quit
# Configure a global unicast address for interface GigabitEthernet 2/1/2 and enable it to
advertise RA messages (an interface does not advertises RA messages by default).
[RouterA] interface gigabitethernet 2/1/2
[RouterA-GigabitEthernet2/1/2] ipv6 address 2001::1/64
[RouterA-GigabitEthernet2/1/2] undo ipv6 nd ra halt
[RouterA-GigabitEthernet2/1/2] quit
2. Configure Router B:
# Configure a global unicast address for interface GigabitEthernet 2/1/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ipv6 address 3001::2/64
[RouterB-GigabitEthernet2/1/1] quit
# Configure an IPv6 static route to the host.
[RouterB] ipv6 route-static 2001:: 64 3001::1
3. Configure the host:
Enable IPv6 on the host to automatically obtain an IPv6 address through IPv6 ND.
# Display neighbor information for GigabitEthernet 2/1/2 on Router A.
[RouterA] display ipv6 neighbors interface gigabitethernet 2/1/2
Type: S-Static D-Dynamic O-Openflow I-Invalid
IPv6 Address Link Layer VID Interface State T Age
FE80::215:E9FF:FEA6:7D14 0015-e9a6-7d14 N/A GE2/1/2 STALE D 1238
2001::15B:E0EA:3524:E791 0015-e9a6-7d14 N/A GE2/1/2 STALE D 1248
The output shows that the IPv6 global unicast address that the host obtained is
2001::15B:E0EA:3524:E791.
Verifying the configuration
# Display IPv6 interface information on Router A.
[RouterA] display ipv6 interface gigabitethernet 2/1/1
GigabitEthernet2/1/1 current state: UP
Line protocol current state: UP
IPv6 is enabled, link-local address is FE80::20F:E2FF:FE00:2
Global unicast address(es):
3001::1, subnet is 3001::/64
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:1
FF02::1:FF00:2
MTU is 1500 bytes
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND retransmit interval is 1000 milliseconds
Hosts use stateless autoconfig for addresses
IPv6 Packet statistics:
InReceives: 25829