B
ASIC
C
ONFIGURATION
2-14
Address for Multi-segment Network — Before you can assign an IPv6
address to the switch that will be used to connect to a multi-segment
network, you must obtain the following information from your network
administrator:
• Prefix for this network
• IP address for the switch
• Default gateway for the network
For most networks that encompass several different subnets, it’s easier to
first define a network prefix, and then configure the host address for the
switch. An IPv6 network prefix is composed of an IPv6-address and prefix
length. The prefix length is the number of bits (from the left) of the prefix
that form the network address, and is expressed as a decimal number. For
example, all IPv6 address that start with the first byte of 73 (hexadecimal)
could be expressed as 73:0:0:0:0:0:0:0/8 or 73::/8.
To generate an IPv6 global unicast address for the switch using a general
network prefix, complete the following steps:
1. From the Global Configuration mode prompt, type “ipv6 general
prefix prefix-name ipv6-prefix/prefix-length,” where the “prefix-name” is a
label identifying the network segment, “ipv6-prefix” specifies the
high-order bits of the network address, and “prefix length” indicates
the actual number of bits used in the network prefix. Press <Enter>.
2. From the global configuration mode prompt, type “interface vlan 1”
to access the interface-configuration mode. Press <Enter>.
3. From the interface prompt, type “ipv6 address prefix-name ipv6-address/
prefix-length,” where “prefix-length” indicates the address bits used to
form the network portion of the address. (The network address starts
from the left of the general prefix and should encompass some of the
ipv6-address bits.) The remaining bits are assigned to the host
interface. Press <Enter>.
4. Type “exit” to return to the global configuration mode prompt. Press
<Enter>.