Configuring an IPv4 Address and an IPv6 Address for Respective Interfaces
Context
The device to be enabled with the dual stack must be configured with an IPv4 address on the IPv4 network-side interface and an IPv6 address on the IPv6 network-side interface.
Procedure
- Run system-view
The system view is displayed.
- Run interface vlanif vlan-id
The IPv4 network-side interface view is displayed.
- Run ip address ip-address { mask | mask-length }
An IPv4 address is configured for the interface.
- Run quit
Return to the system view.
- Run interface vlanif vlan-id
The IPv6 network-side interface view is displayed.
- Run the following commands as required.
Run ipv6 address auto link-local
The interface is configured to automatically generate a link-local address.
Run ipv6 address ipv6-address link-local
A link-local IPv6 address is manually configured for the interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
A global unicast IPv6 address is configured for the interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } eui-64
An IPv6 address in EUI-64 format is configured for the interface.