ipv6 neighbor

Syntax

ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number | interface interface-type interface-number } [ vpn-instance vpn-instance-name ]

undo ipv6 neighbor ipv6-address interface-type interface-number

undo ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number | interface interface-type interface-number } [ vpn-instance vpn-instance-name ]

View

System view

Default level

2: System level

Parameters

ipv6-address: Specifies the IPv6 address of the static neighbor entry.

mac-address: Specifies the MAC address of the static neighbor entry (48 bits long, in the format of H-H-H).

vlan-id: Specifies the VLAN ID of the static neighbor entry, in the range of 1 to 4094.

port-type port-number: Specifies a Layer 2 port of the static neighbor entry by its type and number .

interface interface-type interface-number: Specifies a Layer 3 interface of the static neighbor entry by its type and number.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that the static neighbor entry belongs to. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the static neighbor entry is for the public network, do not specify this option.

Description

Use ipv6 neighbor to configure a static neighbor entry.

Use undo ipv6 neighbor to remove a static neighbor entry.

You can use a Layer 3 VLAN interface or a Layer 2 port in the VLAN to configure a static neighbor entry.

To remove a static neighbor entry, you only need to specify the corresponding VLAN interface and the neighbor address.

Related commands: display ipv6 neighbors.

Examples

# Configure a static neighbor entry for Layer 2 port GigabitEthernet 1/0/1 of VLAN 100.

<Sysname> system-view
[Sysname] ipv6 neighbor 2000::1 fe-e0-89 100 GigabitEthernet 1/0/1