Partager via


IPv6 int (Compact 2013)

3/26/2014

The ipv6 int (interface) command manages per-interface options. These options include settings for configuring how routers are discovered, whether a stateful address is obtained from a DHCPv6 server, and how DNS server addresses are obtained.

Syntax

ipv6 int ifindex RouterDiscovery [enabled | disabled | dhcp] 
ipv6 int ifindex ManagedAddress [enabled | disabled]
ipv6 int ifindex OtherStateful [enabled | disabled]

Options

The following tables describe each ipv6 int option. These options are not case-sensitive.

The RouterDiscovery option specifies the type of router discovery on the interface specified by the interface index ifindex. You can enter one of the following:

Option

Option

Option

Description

ifindex

RouterDiscovery

enabled

Enable router discovery on this interface.

ifindex

RouterDiscovery

disabled

Disable router discovery on this interface.

ifindex

RouterDiscovery

dhcp

Perform router discovery by querying a DHCPv6 server.

The ManagedAddress option specifies whether the DHCPv6 client should try to obtain a stateful address from a DHCPv6 server on the network segment attached to the interface specified by ifindex. Normally, the value of ManagedAddress is set by router advertisements or is enabled after a timeout if there are no router advertisements on the network segment attached to this interface. You can use this option to manually enable the ManagedAddress setting if the router discovery setting causes it to be disabled (for example, if RouterDiscovery is not set to dhcp). You can enter one of the following:

Option

Option

Option

Description

ifindex

ManagedAddress

enabled

Enable the DHCPv6 client to attempt to obtain a stateful address from a DHCPv6 server. When ManagedAddress is enabled, the DHCPv6 client assumes that OtherStateful (see below) is also enabled.

ifindex

ManagedAddress

disabled

Prevent the DHCPv6 client from attempting to obtain a stateful address from a DHCPv6 server.

The OtherStateful option specifies whether the DHCPv6 client should attempt to obtain Domain Name System (DNS) server addresses from a DHCPv6 server on the network segment attached to the interface specified by ifindex. Normally, the value of OtherStateful is set by router advertisements or is enabled after a timeout if there are no router advertisements on the network segment attached to this interface. You can use this option to manually override the OtherStateful setting if router discovery causes it to be disabled. Alternately, you may want to disable OtherStateful if the ManagedAddress setting (above) causes it to be enabled. You can enter one of the following:

Option

Option

Option

Description

ifindex

OtherStateful

enabled

Enable the DHCPv6 client to attempt to obtain DNS server addresses from a DHCPv6 server.

ifindex

OtherStateful

disabled

Prevent the DHCPv6 client from attempting to obtain DNS server addresses from a DHCPv6 server.

Example

To enable router discovery on interface index 1, type the following:

\> ipv6 int 1 routerdiscovery enabled

To specify that the DHCPv6 client should attempt to obtain a stateful address from a DHCPv6 server on interface index 4, type the following:

\> ipv6 int 4 managedaddress enabled

To prevent the DHCPv6 client from attempting to obtain DNS server addresses from a DHCPv6 server on the network segment attached to interface index 2, type the following:

\> ipv6 int 2 otherstateful disabled

See Also

Reference

IPv6