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 the n 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 pre fixes 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-o rder bit s used in the
network portion of the address. Longer, more specific, prefixe s can be base d on
the general prefix to specify any number of subn ets. When the genera l prefi x is
changed, all of the more specific prefixe s based on t his prefi x will also change.
Command Attributes
General Prefix Name – The label assigned to the general prefix.
IPv6-Prefix/Prefix-length – The high-order bits of t he network ad dress seg ment
assigned to the general prefix. The prefix must be formatted according to RFC
2373 “IPv6 Addressing Architecture,” using 8 colon-separated 16-bit hexade cim al
values. One double colon may be use d in th e address to indicat e the approp riate
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