CLI Reference Guide-R07

Table Of Contents
Chapter 27
| IP Interface Commands
IPv6 Interface
– 660 –
Interface Address Configuration and Utilities
ipv6 default-gateway This command sets an IPv6 default gateway to use for
destinations
with no known
next hop. Use the no form to remove a previously configured default gateway.
Syntax
ipv6 default-gateway ipv6-address
no ipv6 address
ipv6-address - The IPv6 address of the default next hop router to use for
destinations with no known next hop.
Default Setting
No default gateway is defined
Command Mode
Global Configuration
Command Usage
All IPv6 addresses must be according to RFC 2373 “IPv6 Addressing
Architecture,” using 8 colon-separated 16-bit hexadecimal values. One double
colon may be used in the address to indicate the appropriate number of zeros
required to fill the undefined fields.
The same link-local address may be used by different interfaces/nodes in
different zones (RFC 4007). Therefore, when specifying a link-local address,
include zone-id information indicating the VLAN identifier after the % delimiter.
For example, FE80::7272%1 identifies VLAN 1 as the interface.
An IPv6 default gateway should be defined if the destination has been assigned
an IPv6 address that is located in a different IP segment.
An IPv6 default gateway can only be successfully set when a network interface
that directly connects to the gateway has been configured on the switch.
Example
The following example defines a default gateway for this device:
Console(config)#ipv6 default-gateway FE80::269:3EF9:FE19:6780%1
Console(config)#
clear ipv6 neighbors Deletes all dynamic entries in the IPv6 neighbor discovery
cache
PE
show ipv6 neighbors Displays information in the IPv6 neighbor discovery cache PE
Table 137: IPv6 Configuration Commands (Continued)
Command Function Mode