- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-MSR Routers Stateless Address Auto-Configuration Examples | 58.87 KB |
MSR Routers
Stateless Address Auto-Configuration Examples
Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.
No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.
Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.
The information in this document is subject to change without notice.
Contents
Introduction
This document provides an example of configuring stateless address auto-configuration. This feature enhances network security, because it enables an interface to automatically generate an IPv6 global unicast address by using the address prefix in the received RA message and the interface ID.
Prerequisites
This document is not restricted to specific software or hardware versions. Procedures and information in the examples might be slightly different depending on the software or hardware version of the device.
The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
Software version used
This example is applicable to the MSR router series of the H3C Comware 7 platform. This document takes version R6749P14 of the H3C MSR3610-X1 router as an example. The specific operations might differ by product model and software version.
Restrictions and guidelines
· Stateless address auto-configuration enables an interface to automatically generate an IPv6 global unicast address by using the address prefix in the received RA message and the interface ID. If the IPv6 prefix in the RA message is not 64 bits, stateless address auto-configuration fails to generate an IPv6 global unicast address.
· An IEEE 802 interface supports generating public IPv6 addresses and temporary IPv6 addresses. Temporary IPv6 addresses do not overwrite public IPv6 addresses, so an interface can have multiple IPv6 addresses with the same address prefix but different interface IDs. If an interface fails to generate a public IPv6 address because of a prefix conflict or other reasons, it does not generate any temporary IPv6 address.
Network configuration
As shown in Figure 1, the host, Router A, and Router B are connected through Ethernet interfaces. Stateless address auto-configuration is enabled on GigabitEthernet 1/0/1 of Router B.
Procedures
Configuring Router A
# Assign a global unicast address to GigabitEthernet 1/0/1 and enable RA message advertisement on the interface.
<RouterA> system-view
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] ipv6 address 3001::1/64
[RouterA-GigabitEthernet1/0/1] undo ipv6 nd ra halt
[RouterA-GigabitEthernet1/0/1] quit
Configure Router B
# Enable stateless address auto-configuration on GigabitEthernet 1/0/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] ipv6 address auto
[RouterB-GigabitEthernet1/0/1] quit