< Home

Configuring Static Neighbors

Context

To communicate with a destination host, a host needs to obtain the destination host's link-layer address. The link-layer address of a neighbor node can be obtained using the neighbor discovery mechanism, or by manually configuring static neighbor entries. A device identifies a static neighbor entry based on the IPv6 address of this neighbor and number of the Layer 3 interface connected to this neighbor. To filter invalid packets, you can create static neighbor entries, binding the destination IPv6 addresses of these packets to nonexistent MAC addresses.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The specified interface view is displayed.

  3. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  4. Run ipv6 enable

    The IPv6 function is enabled.

  5. Run the following commands to configure static neighbors based on the interface type.

    • For the Ethernet interface, run the ipv6 neighbor ipv6-address mac-address command.

    • For a VLANIF interface, run the ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >