Skip to content

IPv6

ipv6 address - prefix and prefix length

Command Objective: This command configures IPv6 address on the interface.

Syntax:

  • ipv6 address {<prefix> "/" <prefix Len> | <string>} [{unicast | link-local}]
  • no ipv6 address <prefix> <prefix Len> [unicast]

Parameter Description:

  • <prefix>: Configures the IPv6 prefix for the interface.
  • <prefix Len>: Configures the number of high-order bits in the IPv6 address. These bits are common among all hosts within a network. This value ranges between 0 and 128.
  • unicast: Configures the address type of the prefix as Unicast.
  • link-local: Configures the address type of the prefix as Link-local.

Mode: Interface Configuration Mode.

ipv6 address dhcp

Command Objective: This command enables the DHCPv6 client functionality over the interface and requests for configuration information from the client.

The no form of the command disables the DHCPv6 client functionality over the interface.

Syntax:

  • ipv6 address dhcp
  • no ipv6 address dhcp

Mode: Interface Configuration Mode.

ipv6 unicast-routing

Command Objective: This command enables unicast routing which is used for one to one communication across the ipv6 internet. An IPv6 unicast address is an identifier for a single interface, on a single node. A packet that is sent to a unicast address is delivered to the interface identified by that address.

The no form of the command disables unicast routing.

Syntax:

  • ipv6 unicast-routing
  • no ipv6 unicast-routing

Mode: Global Configuration Mode / Interface Configuration Mode

ipv6 route

Command Objective: This command adds a static route. The Route defines the IPv6 address or interface through which the destination can be reached.

The no form of this command deletes a static route.

Syntax:

  • ipv6 route <prefix> <prefix len> ([<NextHop>] {vlan <vlan-id>})
  • no ipv6 route <prefix> <prefix len> [vlan <vlan-id>]

Mode: Global Configuration Mode.

ipv6 neighbor

Command Objective: This command configures a static entry in the IPv6 neighbor cache table.

The no form of the command removes the static entry from the IPv6 neighbor cache table.

Syntax:

  • ipv6 neighbor <prefix> {vlan <vlan-id> <MAC ADDRESS} (xx:xx:xx:xx:xx:xx)>}
  • no ipv6 neighbor <prefix> {vlan <vlan-id> <MAC ADDRESS xx:xx:xx:xx:xx:xx>}

Mode: Global Configuration Mode.

clear ipv6 neighbors

Command Objective: This command removes all the entries in the IPv6 neighbor table.

Syntax: clear ipv6 neighbors

Mode: Global Configuration Mode.

clear ipv6 traffic

Command Objective: This command removes all the entries in the IPv6 traffic table.

Syntax: clear ipv6 traffic

Mode: Global Configuration Mode.

clear ipv6 route

Command Objective: This command removes all the entries in IPv6 route table.

Syntax: clear ipv6 route

Mode: Global Configuration Mode.

ipv6 enable

Command Objective: This command enables IPv6 processing on an interface that has not been configured with an explicit IPv6 address.

The no form of the command disables IPv6 processing on the interface.

Syntax:

  • ipv6 enable
  • no ipv6 enable

Mode: Interface Configuration Mode.

ipv6 address - prefix and prefix length

Command Objective: This command configures IPv6 address on the interface.

The no form of the command disables IPv6 addres on the interface.

Syntax:

  • ipv6 address <prefix> <prefix Len> [unicast]
  • no ipv6 address <prefix> <prefix Len> [unicast]

Parameter Description:

  • <prefix>: Configures the IPv6 prefix for the interface.
  • <prefix Len>: Configures the number of high-order bits in the IPv6 address. These bits are common among all hosts within a network. This value ranges between 0 and 128.
  • unicast: Configures the address type of the prefix as Unicast.

Mode: Interface Configuration Mode.

Command Objective: This command configures the IPv6 link-local address on the interface. The link-local address is an IP address that is intended only for communications within the segment of a local network (a link) or a point-to-point connection.

Syntax: ipv6 address <prefix> link-local

Parameter Description:

  • <prefix>: Configures the IPv6 prefix for the interface.

Mode: Interface Configuration Mode.

show ipv6 interface

Command Objective: This command displays the IPv6 interfaces.

Syntax: show ipv6 interface [{vlan <vlan-id> [prefix]}]

Parameter Description:

  • <vlan-id>: VLAN ID is a unique value that represents the specific VLAN. This value ranges between 1 and 4094.

Mode: Privileged EXEC Mode.

show ipv6 route

Command Objective: This command displays the IPv6 Routes.

Syntax: show ipv6 route

Mode: Privileged EXEC Mode.

show ipv6 route - summary

Command Objective: This command displays the summary of IPv6 Routes.

Syntax: show ipv6 route summary

Mode: Privileged EXEC Mode.

show ipv6 neighbors

Command Objective: This command displays the IPv6 Neighbor Cache Entries.

Syntax: show ipv6 neighbors

Mode: Privileged EXEC Mode.

ping ipv6

Command Objective: This command sends IPv6 echo messages along with the total number of packets to the destination.

Syntax: ping ipv6 <prefix%interface> [repeat <count>] [size <value>] [source {vlan <vlan-id> <source_prefix>}] [timeout <value (1- 100)>]

Parameter Description:

  • <prefix%interface>: Configures the IPv6 Destination Prefix.
  • repeat<count>: Configures the number of ping messages. The range varies between 0 and 10.
  • size<value>: Configures the size of the data portion of the Ping packet in the message.
  • source: Configures the Source Interface of the ping message.
  • vlan <vlan-id>: VLAN ID is a unique value that represents the specific VLAN. This value ranges between 1 and 4094.
  • <source_prefix>: Configures source prefix of the ping message.
  • timeout <value (1-100)>: Configures the time in seconds after which this entity times out waiting for a particular ping response. The value ranges between 1 to 100.

Mode: Privileged EXEC Mode.