ipv6

interface-config-vlan-instance

Configures the VLAN interface‘s IPv6 settings

Supported in the following platforms:

Syntax

ipv6 [accept|address|dhcp|enable|enforce-dad|mtu|redirects|request-dhcpv6-options|router-advertisements]
ipv6 accept ra {(no-default-router|no-hop-limit|no-mtu)}
ipv6 address [<IPv6/M>|autoconfig|eui-64|link-local|prefix-from-provider]
ipv6 address [<IPv6/M>|autoconfig]
ipv6 address eui-64 [<IPv6/M>|prefix-from-provider <WORD> <IPv6-PREFIX/PREFIX-LENGTH>]
ipv6 address prefix-from-provider <WORD> <HOST-PORTION/LENGTH>
ipv6 address link-local <LINK-LOCAL-ADD>
ipv6 dhcp [client [information|prefix-from-provider <WORD>]|relay destination <DEST-IPv6-ADD>]
ipv6 [enable|enforce-dad|mtu <1280-1500>|redirects|request-dhcpv6-options]
ipv6 router-advertisements [prefix <IPv6-PREFIX>|prefix-from-provider <WORD>] {no-autoconfig|off-link|site-prefix|valid-lifetime}

Parameters

ipv6 accept ra {(no-default-router|no-hop-limit|no-mtu)}
ipv6 accept ra Enables processing of router advertisements (RAs) on this VLAN interface. This option is enabled by default.

When enabled, IPv6 hosts can configure themselves automatically when connected to an IPv6 network using the neighbor discovery protocol via ICMPv6 router discovery messages. When first connected to a network, a host sends a link-local router solicitation multicast request for its configuration parameters; routers respond to the request with a router advertisement packet containing Internet layer configuration parameters.

no-default-router Optional. Disables inclusion of routers on this interface in the default router selection process. This option is disabled by default.
no-hop-limit Optional. Disables the use of RA advertised hop-count value on this interface. This option is disabled by default.
no-mtu Optional. Disables the use of RA advertised MTU value on this interface. This option is disabled by default.
ipv6 address [<IPv6/M>|autoconfig]
ipv6 address [<IPv6/M>|autoconfig] Configures IPv6 address related settings on this VLAN interface
  • <IPv6> – Specify the non-link local static IPv6 address and prefix length of the interface in the X:X::X:X/M format.
  • autoconfig – Enables stateless auto-configuration of IPv6 address, based on the prefixes received from RAs (with auto-config flag set). These prefixes are used to auto-configure the IPv6 address. This option is enabled by default. Use the no > ipv6 > address > autoconfig command to negate the use of prefixes received in RAs.
ipv6 address eui-64 [<IPv6/M>|prefix-from-provider <WORD> <IPv6-PREFIX/PREFIX-LENGTH>]
ipv6 address eui-64 Configures the IPv6 prefix and prefix length. This prefix is used to auto-generate the static IPv6 address (for this interface) in the modified Extended Unique Identifier (EUI)-64 format.

Implementing the IEEE's 64-bit EUI64 format enables a host to automatically assign itself a unique 64-bit IPv6 interface identifier, without manual configuration or DHCP. This is accomplished on a virtual interface by referencing the already unique 48-bit MAC address, and reformatting it to match the EUI-64 specification.

In the EUI-64 IPv6 address the prefix and host portions are each 64 bits in length.

<IPv6/M> Specify the IPv6 prefix and prefix length. This configured value is used as the prefix portion of the auto-generated IPv6 address, and the host portion is derived from the MAC address of the interface.

Any bits of the configured value exceeding the prefix-length “M” are ignored and replaced by the host portion derived from the MAC address.

For example:

Prefix portion provided using this command: ipv6 > address > eui-64 > 2004:b055:15:dead::1111/64.

Host portion derived using the interface‘s MAC address (00-15-70-37-FB-5E): 215:70ff:fe37:fb5e

Auto-configured IPv6 address using the above prefix and host portions: 2004:b055:15:dead:215:70ff:fe37:fb5e/64

In this example, the host part “::1111” is ignored and replaced with the modified eui-64 formatted host address.

prefix-from-provider <WORD> <IPv6-PREFIX/PREFIX-LENGTH> Configures the “prefix-from-provider” named object and the associated IPv6 prefix and prefix length. This configured value is used as the prefix portion of the auto-generated IPv6 address, and the host portion is derived from the MAC address of the interface.
  • <WORD> – Specify the IPv6 “prefix-from-provider” object‘s name. This is the IPv6 general prefix (32 character maximum) name provided by the Internet service provider.
    • <IPv6-PREFIX/PREFIX-LENGTH> – Specify the IPv6 address subnet and host parts along with prefix length (site-renumbering).

    For example:

    Prefix portion provided using this command: ipv6 > address > eui-64 > prefix-from-provider > ISP1-prefix > 2002::/64

    Host portion derived using the interface‘s MAC address (00-15-70-37-FB-5E): 215:70ff:fe37:fb5e

    Auto-configured IPv6 address using the above prefix and host portions: 2002::215:70ff:fe37:fb5e/64

ipv6 address prefix-from-provider <WORD> <HOST-PORTION/LENGTH>]
ipv6 address Configures the IPv6 address related settings on this VLAN interface
prefix-from-provider <WORD> <HOST-PORTION/LENGTH> Configures the “prefix-from-provider” named object and the host portion of the IPv6 interface address. The prefix derived from the specified “prefix-from-provide” and the host portion (second parameter) are combined together (using the prefix-length of the specified “prefix-from-provide”) to generate the interface‘s IPv6 address.
  • <WORD> – Provide the “prefix-from-provider” object‘s name. This is the IPv6 general prefix (32 character maximum) name provided by the service provider.
  • <HOST-PORTION/LENGTH> – Provide the subnet number, host portion, and prefix length used to form the actual address along with the prefix derived from the “prefix-from-provider” object identified by the <WORD> keyword.
ipv6 address link-local <LINK-LOCAL-ADD>
ipv6 address Configures the IPv6 address related settings on this VLAN interface
link-local <LINK-LOCAL-ADD> Configures IPv6 link-local address on this interface. The configured value overrides the default link-local address derived from the interface‘s MAC address. Use the no > ipv6 > link-local command to restore the default link-local address derived from MAC address.

It is mandatory for an IPv6 interface to always have a link-local address.

ipv6 dhcp [client [information|prefix-from-provider <WORD>]|relay destination <DEST-IPv6-ADD>]
ipv6 dhcp client [information| prefix-from-provider <WORD>] Configures DHCPv6 client-related settings on this VLAN interface
  • information – Configures stateless DHCPv6 client on this interface. When enabled. the device can request configuration information from the DHCPv6 server using stateless DHCPv6. This option is disabled by default.
  • prefix-from-provider – Configures prefix-delegation client on this interface. Enter the IPv6 general prefix (32 character maximum) name provided by the service provider. This option is disabled by default.
relay destination <DEST-IPv6-ADD> Enables DHCPv6 packet forwarding on this VLAN interface
  • destination – Forwards DHCPv6 packets to a specified DHCPv6 relay
    • <DEST-IPv6-ADD> – Specify the destination DHCPv6 relay‘s address.

DHCPv6 relay enhances an extended DHCP relay agent by providing support in IPv6. DHCP relays exchange messages between a DHCPv6 server and client. A client and relay agent exist on the same link. When a DHCP request is received from the client, the relay agent creates a relay forward message and sends it to a specified server address. If no addresses are specified, the relay agent forwards the message to all DHCP server relay multicast addresses. The server creates a relay reply and sends it back to the relay agent. The relay agent then sends back the response to the client.

ipv6 [enable|enforce-dad|mtu <1280-1500>|redirects|request-dhcp-options]
ipv6 Configures IPv6 settings on this VLAN interface
enable Enables IPv6 on this interface. This option is disabled by default.
enforce-dad Enforces Duplicate Address Detection (DAD) on wired ports. This option is enabled by default.
mtu <1280-1500> Configures the Maximum Transmission Unit (MTU) for IPv6 packets on this interface
  • <1280-1500> – Specify a value from 1280 - 1500. The default is 1500.
redirects Enables ICMPv6 redirect messages sending on this interface. This option is enabled by default.
request-dhcp-options Requests options from DHCPv6 server on this interface. This option is disabled by default.
ipv6 router-advertisements [prefix <IPv6-PREFIX>|prefix-from-provider <WORD>]  
{no-autoconfig|off-link|site-prefix <SITE-PREFIX>|valid-lifetime}
ipv6 router-advertisements Configures IPv6 RA related settings on this VLAN interface
prefix <IPv6-PREFIX> Configures a static prefix and its related parameters. The configured value is advertised on RAs.
  • <IPv6-PREFIX> – Specify the IPv6 prefix.
prefix-from-provider <WORD> Configures a static “prefix-from-provider” named object and its related parameters on this VLAN interface. The configured value is advertised on RAs.
  • <WORD> – Specify the “prefix-from-provider” named object‘s name
no-autoconfig This parameter is common to the “general-prefix”, “prefix”, and “prefix-from-provider” keywords.
  • no-autoconfig – Optional. Disables the setting of the auto configuration flag in the prefix. When configured, the configured prefixes are not used for IPv6 address generation. The autoconfiguration option is enabled by default. Using no-autoconfig disables it.
off-link This parameter is common to the “general-prefix”, “prefix”, and “prefix-from-provider” keywords.
  • off-link – Optional. Disables the setting of the on-link flag in the prefix. The on-link option is enabled by default. Using off-link disables it.
site-prefix <SITE-PREFIX> This parameter is common to the “general-prefix”, “prefix”, and “prefix-from-provider” keywords.
  • site-prefix <SITE-PREFIX> – Configures subnet (site) prefix
valid-lifetime [<30-4294967294>| at|infinite] (preferred-lifetime) This parameter is common to the “general-prefix”, “prefix”, and “prefix-from-provider” keywords.
  • valid-lifetime – Configures the valid lifetime for the prefix
  • preferred-lifetime – Configures preferred lifetime for the prefix
  • <30-4294967294> – Configures the valid/preferred lifetime in seconds
    • at – Configures expiry time and date of the valid/preferred lifetime
      • infinite – Configures the valid/preferred lifetime as infinite

Example

nx9500-6C8809(config-profile-test-if-vlan4)#ipv6 enable

nx9500-6C8809(config-profile-test-if-vlan4)#ipv6 accept ra no-mtu

nx9500-6C8809(config-profile-test-if-vlan4)#ipv6 address eui-64 prefix-from-provider ISP1-prefix 2002::/64

nx9500-6C8809(config-profile-test-if-vlan4)#show context
 interface vlan4
  ipv6 enable
  ipv6 address eui-64 prefix-from-provider ISP1-prefix 2002::/64
  ipv6 accept ra no-mtu
nx9500-6C8809(config-profile-test-if-vlan4)#

Related Commands

no Removes or resets IPv6 settings on this VLAN interface