Configuration commands
Use these M4500 CLI commands to enable IPv6 unicast routing and configure IPv6 addresses, static routes, MTU, hop limit, and neighbor discovery settings.
This section describes the IPv6 commands you use to configure IPv6 on the system and on the interface.
ipv6 hop-limit
This command defines the unicast hop count used in ipv6 packets originated by the node. The value is also included in router advertisements. The default “not configured” means that a value of zero is sent in router advertisements and a value of 64 is sent in packets originated by the node. Note that this is not the same as configuring a value of 64.
To return the unicast hop count to the default, use the no form of this command.
| Default | Not configured |
| Format |
|
| Mode | Global Config |
| Fields | Definition |
|---|---|
| <hops> | The range is from 1 to 255. |
ipv6 unicast-routing
Use this command to enable the forwarding of IPv6 unicast packets.
To disable the forwarding of IPv6 unicast packets, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode | Global Config |
ipv6 enable
Use this command to enable IPv6 routing on an interface, including tunnel and loopback interfaces that has not been configured with an explicit IPv6 address. When you use this command, the interface is automatically configured with a link-local address. You do not need to use this command if you configured an IPv6 global address on the interface.
To disable IPv6 routing on an interface, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode |
Interface Config Interface VLAN |
ipv6 address
Use this command to configure an IPv6 address on an interface, including tunnel and loopback interfaces, and to enable IPv6 processing on this interface. You can assign multiple globally reachable addresses to an interface by using this command. You do not need to assign a linklocal address by using this command since one is automatically created. The <prefix> field consists of the bits of the address to be configured. The <prefix_length> designates how many of the high-order contiguous bits of the address make up the prefix.
You can express IPv6 addresses in eight blocks. Also of note is that instead of a period, a colon now separates each block. For simplification, leading zeros of each 16 bit block can be omitted. One sequence of 16 bit blocks containing only zeros can be replaced with a double colon "::", but not more than one at a time (otherwise it is no longer a unique representation).
- Dropping zeros: 3ffe:ffff:100:f101:0:0:0:1 becomes 3ffe:ffff:100:f101::1
- Local host: 0000:0000:0000:0000:0000:0000:0000:0001 becomes ::1
- Any host: 0000:0000:0000:0000:0000:0000:0000:0000 becomes ::
The hexadecimal letters in the IPv6 addresses are not case-sensitive. An example of an IPv6 prefix and prefix length is 3ffe:1::1234/64.
The optional [eui-64] field designates that IPv6 processing on the interfaces was enabled using an EUI-64 interface ID in the low order 64 bits of the address. If you use this option, the value of <prefix_length> must be 64 bits.
To remove all IPv6 addresses or specified IPv6 address on an interface, use the no form of this command. If you do not specify any parameter, the command deletes all the IPv6 addresses on an interface.
| Default | None |
| Format |
|
| Mode |
Interface Config Interface VLAN |
| Fields | Definition |
|---|---|
| <prefix> | The parameter consists of the bits of the address to be configured. |
| <prefix_length> | This option designates how many of the high-order contiguous bits of the address comprise the prefix. |
| [eui-64] | This field designates that IPv6 processing on the interfaces was enabled using an EUI-64 interface ID in the low order 64 bits of the address. If you do not supply any parameters, the command deletes all the IPv6 addresses on an interface. |
| link-local | The IPv6 link-local address to be configured. |
ipv6 address autoconfig
Use this command to allow an in-band interface to acquire an IPv6 address through IPv6 Neighbor Discovery Prococol (NDP) and through the use of Router Advertisement messages.
To revert the IPv6 autoconfiguration status on an interface to the default value, use the no form of this command.
| Default | Disable |
| Format |
|
| Mode |
Interface Config Interface VLAN |
ipv6 address dhcp
This command enables the DHCPv6 client on an in-band interface so that it can acquire network information, such as the IPv6 address, from a network DHCP server.
To release a leased address and disable DHCPv6 on an interface, use the no form of this command.
| Default | Disable |
| Format |
|
| Mode | Interface-Vlan Config |
| Fields | Definition |
|---|---|
| <dhcp> | Obtains IPv6 address from DHCPv6. |
| <restart> | To restart the DHCPv6 process. |
Interface Config
ipv6 route
Use this command to configure an IPv6 static route. The <ipv6-prefix> is the IPv6 network that is the destination of the static route. The <prefix_length> is the length of the IPv6 prefix — a decimal value (usually 0-64) that shows how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the <prefix_length>. The <next-hop-address> is the IPv6 address of the next hop that can be used to reach the specified network. The <preference> parameter is a value the router uses to compare this route with routes from other route sources that have the same destination. The range for <preference> is 1 - 255, and the default value is 1. The interface <slot/port> identifies direct static routes from point-to-point and broadcast interfaces, and must be specified when using a link-local address as the next hop. A route with a preference of 255 cannot be used to forward traffic.
To delet an IPv6 static route, use the no form of this command. Use the command without the optional parameters to delete all static routes to the specified destination. Use the <preference> parameter to revert preference of a route to default preference.
| Default | Disable |
| Format |
|
| Mode | Global Config |
| Fields | Definition |
|---|---|
| <tunnel-id> | The range is from 0 to 7. |
| <vlan-id> | The range is from 1 to 4093. |
ipv6 route distance
This command sets the default distance (preference) for IPv6 static routes. Lower route distance values are preferred when determining the best route. The ipv6 route command allows you to optionally set the distance (preference) of an individual static route. The default distance is used when no distance is specified in this command.
Changing the default distance does not update the distance of existing static routes, even if they were assigned the original default distance. The new default distance will only be applied to static routes created after invoking the ipv6 route distance command.
To reset the default static route preference value in the router to the original default preference, use the no form of this command.
| Default | 1 |
| Format |
|
| Mode | Global Config |
ipv6 mtu
This command sets the maximum transmission unit (MTU) size, in bytes, of IPv6 packets on an interface. This command replaces the default or link MTU with a new MTU value. The default MTU value for a tunnel interface is 1480. You cannot change this value.
To reset maximum transmission unit value to default value, use the no form of this command.
| Default | 0 or link speed (MTU value is 1500) |
| Format |
|
| Mode | Interface Config |
ipv6 nd dad attemps
This command sets the number of duplicate address detection probes transmitted on an interface. Duplicate address detection verifies that an IPv6 address on an interface is unique.
To reset to number of duplicate address detection value to default value, use the no form of this command.
| Default | 1 |
| Format |
|
| Mode | Interface Config |
ipv6 nd managed-config-flag
This command sets the “managed address configuration” flag in router advertisements on the interface. When the value is true, end nodes use DHCPv6. When the value is false, end nodes automatically configure addresses.
To reset the “managed address configuration” flag in router advertisements to the default value, use the no form of this command.
| Default | False |
| Format |
|
| Mode | Interface Config |
ipv6 nd ns-interval
This command sets the interval between router advertisements for advertised neighbor solicitations, in milliseconds, for an interface. An advertised value of 0 means the interval is unspecified.
To reset the neighbor solicit retransmission interval of the specified interface to the default value, use the no form of this command.
| Default | 0 |
| Format |
|
| Mode | Interface Config |
ipv6 nd other-config-flag
This command sets the “other stateful configuration” flag in router advertisements sent from the interface.
To reset the “other stateful configuration” flag back to its default value in router advertisements sent from the interface, use the no form of this command.
| Default | False |
| Format |
|
| Mode | Interface Config |
ipv6 nd ra-interval
This command sets the transmission interval between router advertisements on the interface.
To set router advertisement interval to the default, use the no form of this command.
| Default | 600 |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| Min Router Advertisement Interval | This command sets the minimal transmission interval between router advertisements on the interface. |
ipv6 nd ra-lifetime
This command sets the value, in seconds, that is placed in the Router Lifetime field of the router advertisements sent from the interface. The <lifetime> value must be zero, or it must be an integer between the value of the router advertisement transmission interval and 9000. A value of zero means this router is not to be used as the default router.
To reset router lifetime to the default value, use the no form of this command.
| Default | 1800 |
| Format |
|
| Mode | Interface Config |
ipv6 nd reachable-time
This command sets the router advertisement time to consider a neighbor reachable after neighbor discovery confirmation. Reachable time is specified in milliseconds. A value of zero means the time is unspecified by the router.
To reset reachable time to the default value, use the no form of this command.
| Default | 0 |
| Format |
|
| Mode | Interface Config |
ipv6 nd router-preference
This command sets the default router preference that the interface advertises in router advertisement messages.
To reset router preference to default, use the no form of this command.
| Default | Medium |
| Format |
|
| Mode | Interface Config |
ipv6 nd suppress-ra
This command suppresses router advertisement transmission on an interface.
To enables router transmission on an interface, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode | Interface Config |
ipv6 nd prefix
This command is used to configure parameters associated with prefixes the router advertises in its router advertisements. The first optional parameter is the valid lifetime of the router, in seconds. You can specify a value or indicate that the lifetime value is infinite. The second optional parameter is the preferred lifetime of the router.
The router advertises its global IPv6 prefixes in its router advertisements (RAs). An RA only includes the prefixes of the IPv6 addresses configured on the interface where the RA is transmitted. Addresses are configured using the ipv6 address interface configuration command. Each prefix advertisement includes information about the prefix, such as its lifetime values and whether hosts should use the prefix for on-link determination or address auto-configuration. Use the ipv6 nd prefix command to configure these values.
The ipv6 nd prefix command allows you to preconfigure RA prefix values before you configure the associated interface address. In order for the prefix to be included in RAs, you must configure an address that matches the prefix using the ipv6 address command. Prefixes specified using ipv6 nd prefix without associated interface address will not be included in RAs and will not be committed to the device configuration.
To set prefix configuration to default values, use the no form of this command.
| Default |
Valid-lifetime: 2592000 Preferred-lifetime: 604800 Autoconfig: enabled On-link: enabled |
| Format |
|
| Mode | Interface Config |
ipv6 neighbor
Use this command to configure a static IPv6 neighbor with the given IPv6 address and MAC address on a routing interface.
To remove a static IPv6 neighbor with the given IPv6 address on a routing interface, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Global Config |
| Fields | Definition |
|---|---|
| ipv6address | The IPv6 address of the neighbor. |
| Macaddr | The MAC address for the neighbor. |
ipv6 neighbor dynamicrenew
Use this command to automatically renew the IPv6 neighbor entries.
To disable automatic renewing of IPv6 neighbor entries, use the no form of this command.
| Default | Disable |
| Format |
|
| Mode | Global Config |
ipv6 nud
Use this command to configure Neighbor Unreachability Detection (NUD). NUD verifies that communication with a neighbor exists.
To reset to the default value, use the no form of this command.
| Default |
backoff-multiple: 1 max-multicast-solicits: 3 max-unicast-solicits: 3 |
| Format | ipv6 nud {backoff-multiple <1-5> | max-multicast-solicits <3-255> | max-unicast-solicits <3-10>} no ipv6 {backoff-multiple | max-multicast-solicits | max-unicast-solicits} |
| Mode | Global Config |
| Fields | Definition |
|---|---|
| backoff-multiple | Set the exponential backoff multiple to calculate time outs in NS transmissions during NUD. The value ranges from 1 to 5. The next timeout value is limited to a maximum value of 60 seconds if the value with exponential backoff calculation is greater than 60 seconds. |
| max-multicast-solicits | Set the maximal number of multicast solicits sent during NUD. The value ranges from 3 to 255. |
| max-unicast-solicits | Set the maximal number of unicast solicits sent during NUD. The value ranges from 3 to 10. |
ipv6 unreachables
Use this command to enable the generation of ICMPv6 Destination Unreachable messages. By default, the generation of ICMPv6 Destination Unreachable messages is enabled.
To prevent the generation of ICMPv6 Destination Unreachable messages, use the no form of this command.
| Default | Enable |
| Format |
|
| Mode | Interface Config |
ipv6 unresolved-traffic rate-limit
Use this command to control the rate at which IPv6 data packets come into the CPU. By default, rate limiting is disabled. When enabled, the rate can range from 50 to 1024 packets per second.
To disable the rate limit, use the no form of this command.
| Default | Enable |
| Format |
|
| Mode | Global Config |
ipv6 icmp error-interval
Use this command to limit the rate at which ICMPv6 error messages are sent. The rate limit is configured as a token bucket, with two configurable parameters, burst-size and burst-interval. To disable ICMPv6 rate limiting, set burst-interval to zero (0).
To return burst-interval and burst-size to their default values, use the no form of this command.
| Default |
burst-interval of 1000 msec burst-size of 100 messages |
| Format |
|
| Mode | Global Config |
| Fields | Definition |
|---|---|
| <burst-interval> | Specifies how often the token bucket is initialized with burst-size tokens. burst-interval is from 0 to 2147483647 milliseconds (msec). |
| <burst-size> | The number of ICMPv6 error messages that can be sent during one burst-interval. The range is from 1 to 200 messages. |
clear ipv6 route counters
This command resets to zero the IPv6 routing table counters reported in the command “show ipv6 route summary”. The command only resets event counters. Counters that report the current state of the routing table, such as the number of routes of each type, are not reset.
| Default | None |
| Format | clear ipv6 route counters |
| Mode | Privileged Exec |
ipv6 nd mtu
Use this command to set the advertised IPv6 MTU. To restore to the default value, use the no form of this command.
| Default | 0 |
| Format |
|
| Mode | Interface Config |