Setting the Switch’s IP Address (IP Version 6)
CLI
– This example configures an IPv6 gateway, specifies the management
interface, configures a global unicast address, and then sets the MTU.
Console#config
Console(config)#ipv6 default-gateway 2009:DB9:2229::240
Console(config)#ipv6 general-prefix rd 2009:DB9:2229::/48
Console(config)#interface vlan 1
Console(config-if)#ipv6 address rd 7279::79/64
Console(config-if)#ipv6 mtu 1280
Console(config-if)#ipv6 enable
Console(config-if)#end
Console#show ipv6 default-gateway
ipv6 default gateway: 2009:DB9:2229::240
Console#show ipv6 interface
Vlan 1 is up
IPv6 is enable.
Link-local address:
FE80::200:E8FF:FE90:0/64
Global unicast address(es):
2009:DB9:2229::79, subnet is 2009:DB9:2229:0::/64
Joined group address(es):
FF01::1/16
FF02::1/16
FF02::1:FF00:79/104
FF02::1:FF11:4321/104
MTU is 1280 bytes.
ND DAD is enabled, number of DAD attempts: 1.
ND retransmit interval is 1000 milliseconds
Console#show ipv6 mtu
MTU Since Destination Address
1400 00:04:21 5000:1::3
1280 00:04:50 FE80::203:A0FF:FED6:141D
Console#
Configuring an IPv6 General Network Prefix
The IPv6 General Prefix page is used to configure general prefixes that are
subsequently used on the IPv6 Configuration web page (see page 4-9) to specify
the network address portion of an interface address.
Command Usage
• Prefixes may contain zero-value fields or end in zeros.
• A general prefix holds a short prefix that indicates the high-order bits used in the
network portion of the address. Longer, more specific, prefixes can be based on
the general prefix to specify any number of subnets. When the general prefix is
changed, all of the more specific prefixes based on this prefix will also change.
Command Attributes
• General Prefix Name – The label assigned to the general prefix.
• IPv6-Prefix/Prefix-length – The high-order bits of the network address segment
assigned to the general prefix. The prefix must be formatted 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.
4-15
4
41-17
41-8
27-1
41-9
41-18
41-7
41-17
41-14
4
1
-
1
9