< Home

Configuring a Static Neighbor

A neighbor relationship can be established between a local device and its neighbor after a neighbor is manually configured.

Prerequisites

Before configuring a static neighbor, configure the IPv6 address for an interface.

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type interface-number

  3. Run one of the following commands as required:

    • To configure a static neighbor entry on a common Layer-3 interface, run the ipv6 neighbor ipv6-address mac-address command.

    • To configure a static neighbor entry on a VLANIF interface, run the ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number command.

    You can configure up to 300 neighbors on each interface.

Follow-up Procedure

Run the display ipv6 neighbors command to check the cache of the neighbor information containing neighbors' IPv6 addresses and the specified interfaces.

<sysname> display ipv6 neighbors GigabitEthernet 0/0/0
--------------------------------------------------------
IPv6 Address : 2001:DB8::2
Link-layer   : 00e0-fc89-fe6e            State : STALE
Interface    : GE0/0/0                   Age   : 00h19m12s
VLAN         : -                         CEVLAN: -
VPN name     : vpn1                      Is Router: TRUE
Secure FLAG  : UN-SECURE

---------------------------------------------------------
Total: 1       Dynamic: 1       Static: 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >