< Home

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

  1. Run system-view

    The system view is displayed.

  2. Run interface vlanif vlan-id

    The IPv4 network-side interface view is displayed.

  3. Run ip address ip-address { mask | mask-length }

    An IPv4 address is configured for the interface.

  4. Run quit

    Return to the system view.

  5. Run interface vlanif vlan-id

    The IPv6 network-side interface view is displayed.

  6. 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >