12-19 
ipv6 address 
Syntax 
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } 
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ] 
View 
Interface view 
Default Level 
2: System level 
Parameters 
ipv6-address: IPv6 address. 
prefix-length: Prefix length of an IPv6 address, in the range 1 to 128. 
Description 
Use the ipv6 address command to configure an IPv6 site-local address or aggregatable global unicast 
address for an interface.  
Use the undo ipv6 address command to remove the IPv6 address from the interface. 
By default, no site-local address or global unicast address is configured for an interface. 
Note that except the link-local address automatically configured and the one generated through 
stateless autoconfiguration, all IPv6 addresses will be removed from the interface if you carry out the 
undo ipv6 address command without any parameter specified. 
Examples 
# Set the aggregatable global IPv6 unicast address of VLAN-interface 100 to 2001::1 with prefix length 
64. 
Method I: 
<Sysname> system-view 
[Sysname] interface vlan-interface 100 
[Sysname-Vlan-interface100] ipv6 address 2001::1/64 
Method II: 
<Sysname> system-view 
[Sysname] interface vlan-interface 100 
[Sysname-Vlan-interface100] ipv6 address 2001::1 64 
ipv6 address auto 
Syntax 
ipv6 address auto 
undo ipv6 address auto 
View 
Interface view 
Default Level 
2: System level