Basic IPv6 Settings
Basic IPv6 Settings
1. Function Overview
This product is compatible with the following IPv6 network environment settings, mainly for the purpose of maintenance (configuring the switch settings).
-
IPv6 address settings
-
Route information settings
-
Neighbor cache table settings
2. Definition of Terms Used
RA (Router Advertisement)
This is a system that automatically sets address information and network settings on the IPv6 network for devices of the network that is associated with a router.
IPv6 address
The IPv6 address is 128 bits expressed as hexadecimal. The address is divided into eight fields delimited by “:” with 16 bits in each field.
-
2001:02f8:0000:0000:1111:2222:0000:4444
The expression can be abbreviated according to the following rules.
-
If the beginning of a field is a zero, the zero can be omitted.
-
A field that consists of four zeros can be abbreviated as a single zero.
-
Multiple fields consisting only of consecutive zeros can be abbreviated as “::” in only one location for the entire address.
Applying these rules to the above address, we get the following.
-
2001:2f8::1111:2222:0:4444
IPv6 link-local address
This is an address that is only valid within the same segment, and is in the following range.
-
[Start] FE80:0000:0000:0000:0000:0000:0000:0000
-
[End] FE80:0000:0000:0000:FFFF:FFFF:FFFF:FFFF
3. Function Details
3.1. IPv6 address settings
This product lets you specify the IPv6 address and prefix length for a VLAN interface.
As the setting method, both fixed settings and automatic settings via RA (router advertisement) are supported.
-
In order to specify an IPv6 address, IPv6 functionality must be enabled for the corresponding VLAN interface.
-
To enable IPv6 functionality, use the ipv6 enable command.
-
When IPv6 functionality is enabled, an IPv6 link local address is automatically assigned.
-
-
To set a fixed/automatic IPv6 address, use the ipv6 address command.
-
For IPv6 addresses, one global address and one link local address can be specified only for a single VLAN interface.
If an IPv6 address already specified for a VLAN interface is specified for another VLAN interface, the IPv6 address for the old VLAN interface will be deleted.
The IPv6 address that can be specified for one VLAN interface can be either the fixed or automatic setting.
The IPv6 address that is allocated to a VLAN interface can be checked using the show ipv6 interface command.
3.2. Route information settings
This product refers to a routing table when sending syslog messages and when sending out voluntary IPv6 packets as an IPv6 host for NTP-based time adjustments and so on.
This product uses the following functions to perform the routing table operations.
-
Set VLAN interface route information
-
Set default gateway
-
Show route information
3.2.1. Route information for VLAN interfaces
When setting an IPv6 address on this product for a VLAN interface, the correspondence between the network address and VLAN ID is automatically set as route information.
When releasing IPv6 addresses set for the VLAN interface, the above settings will be deleted.
3.2.2. Set default gateway
The destination for IPv6 packets sent to network addresses that are not set in the routing table can be set as the default gateway on this product.
-
To set the default gateway, use the ipv6 route command.
-
To show the default gateway, use the show ipv6 route command.
3.2.3. Show route information
-
This product is provided with an FIB (Forwarding Information Base: IP forwarding table) as route information.
FIB is a database that is referenced when deciding how to forward IP packets.
Use the show ipv6 route command to check the FIB.
3.3. Neighbor cache table settings
When sending IPv6 packets, this product uses Neighbor Discovery Protocol to obtain the MAC addresses from the IPv6 addresses.
The correspondence between IPv6 address and MAC address is saved in the neighbor cache table with the following specifications.
-
The neighbor cache entries saved in the neighbor cache table manage the following information.
-
IPv6 address
-
MAC address
-
VLAN interface
-
-
Up to 10 entries are saved in the neighbor cache table.
If the maximum number of entries is reached and a new neighbor is found, the oldest neighbor is deleted and the new neighbor is registered. -
Dynamic entries saved in the neighbor cache table can be cleared by using the clear ipv6 neighbors command.
-
Use the show ipv6 neighbor command to check the neighbor cache table.
4. Related Commands
Related commands are indicated below.
For details, refer to the Command Reference.
Function types | Operations | Operating commands |
---|---|---|
IPv6 address settings |
Enable/disable IPv6 addresses |
ipv6 enable/disable |
IPv6 address settings |
ipv6 address |
|
Show IPv6 address |
show ipv6 interface |
|
Set RA setting for IPv6 address |
ipv6 address autoconfig |
|
Route information settings |
Set default gateway |
ipv6 route |
Show default gateway |
show ipv6 route |
|
Show route information |
show ipv6 route |
|
Neighbor cache settings |
Show neighbor cache table |
show ipv6 neighbors |
Clear neighbor cache table |
clear ipv6 neighbors |
5. Examples of Command Execution
5.1. Setting up an IPv6 network environment (fixed settings)
In this example, the IPv6 addresses are manually set on this product, and an environment is set up for accessing the unit from a remote terminal.
-
The IPv6 address is set manually for the default VLAN (VLAN #1).
-
This sets 2001:db8:1::2/64 for the default VLAN (VLAN #1).
Yamaha#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Yamaha(config)#interface vlan1 Yamaha(config-if)#ipv6 enable (1) Yamaha(config-if)#ipv6 address 2001:db8:1::2/64 (2)
1 Enable IPv6 2 Specify an IPv6 address -
Check the IPv6 address that was set.
Yamaha(config-if)#end Yamaha#show ipv6 interface brief Interface IP-Address Status Protocol vlan1 2001:db8:1::2/64 up up fe80::2a0:deff:fe:2/64
5.2. Setting up an IPv6 network environment (automatic settings using RA)
In this example, the IPv6 addresses are automatically set on this product, and an environment is set up for accessing the unit from a remote terminal.
-
The IPv6 address is set automatically by RA for the default VLAN (VLAN #1).
-
Specify RA for the default VLAN (VLAN #1).
Yamaha#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Yamaha(config)#interface vlan1 Yamaha(config-if)#ipv6 enable (1) Yamaha(config-if)#ipv6 address autoconfig (2)
1 Enable IPv6 2 Set up RA -
Check the IPv6 address that was obtained from RA.
Yamaha(config-if)#end Yamaha#show ipv6 interface brief Interface IP-Address Status Protocol vlan1 2001:db8::2a0:deff:fe:2/64 up up fe80::2a0:deff:fe:2/64
6. Points of Caution
When the IPv6 address settings are changed, all of the following commands related to remote access control will be deleted.
Use particular caution when changing the IPv6 address.
-
telnet-server access
-
http-server access
-
tftp-server access
-
snmp-server access