12-32
ipv6 neighbor
Syntax
ipv6 neighbor ipv6-address mac-address
{
vlan-id port-type
port-number
|
interface
interface-type
interface-number
}
undo ipv6 neighbor
ipv6-address interface-type interface-number
View
System view
Default Level
2: System level
Parameters
ipv6-address
: IPv6 address in a static neighbor entry.
mac-address
: Link layer address in a static neighbor entry (48 bits long, in the format of H-H-H).
vlan-id
: VLAN ID in a static neighbor entry, in the range of 1 to 4094.
port-type
port-number
: Type and number of a Layer 2 port in a static neighbor entry.
interface
interface-type interface-number
: Type and number of a Layer 3 interface in a static neighbor
entry.
Description
Use the
ipv6 neighbor
command to configure a static neighbor entry.
Use the
undo ipv6 neighbor
command to remove a static neighbor entry.
Note that you can adopt the IPv6 address and link layer address of the Layer 3 VLAN interface or those
of the VLAN port to configure a static neighbor entry.
z
If a static neighbor entry is configured by using the first method, the neighbor entry is in the INCMP
state. After the AP obtains the corresponding Layer 2 VLAN port information through resolution, the
neighbor entry will go into the REACH state.
z
If a static neighbor entry is configured by using the second method, the corresponding VLAN
interface must exist and the port specified by
port-type
port-number
must belong to the VLAN
specified by
vlan-id
. After a static neighbor entry is configured, the AP will relate the VLAN interface
with the IPv6 address to identify a static neighbor entry uniquely and the entry will be in the REACH
state.
You only need to specify the corresponding VLAN interface before removing a static neighbor entry.
Related commands:
display ipv6 neighbors
.
Examples
# Configure a static neighbor entry for Layer 2 port Ethernet 1/0 of VLAN 100.
<Sysname> system-view
[Sysname] ipv6 neighbor 2000::1 fe-e0-89 100 ethernet 1/0
ipv6 neighbors max-learning-num
Syntax
ipv6 neighbors max-learning-num number
undo ipv6 neighbors max-learning-num