< Home

ipv6 neighbor (VXLAN)

Function

The ipv6 neighbor command configures a static IPv6 neighbor entry on an interface of a VXLAN network.

The undo ipv6 neighbor command deletes a static IPv6 neighbor entry configured on an interface of a VXLAN network.

By default, no static IPv6 neighbor entry is configured on an interface of a VXLAN network.

Format

ipv6 neighbor ipv6-address mac-address vni vni-id { source-ip ipv4-address1 peer-ip ipv4-address2 } | { source-ipv6 ipv6-address1 peer-ipv6 ipv6-address2 }

undo ipv6 neighbor ipv6-address mac-address vni vni-id { source-ip ipv4-address1 peer-ip ipv4-address2 } | { source-ipv6 ipv6-address1 peer-ipv6 ipv6-address2 }

ipv6 neighbor ipv6-address mac-address { vid vlan-id1 [ cevid vlan-id2 ] } interface interface-type interface-num.subnum

undo ipv6 neighbor ipv6-address mac-address { vid vlan-id1 [ cevid vlan-id2 ] } interface interface-type interface-num.subnum

ipv6 neighbor ipv6-address mac-address vid vlan-id3 interface interface-type interface-num

undo ipv6 neighbor ipv6-address mac-address vid vlan-id3 interface interface-type interface-num

Only the S6730-S, S6730S-S, S5732-H, S5731-S, S5731S-S, S5731S-H, S5730-HI, S6730-H, S6730S-H, S5731-H, and S6720-HI support the source-ipv6 and peer-ipv6 parameters.

Parameters

Parameter Description Value

ipv6-address

Specifies a destination IPv6 address.

The value consists of 128 bits, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format of X:X:X:X:X:X:X:X.

mac-address

Specifies the destination MAC address mapping the destination IP address.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

vni vni-id

Specifies a VNI ID.

The value is an integer that ranges from 1 to 16777215.

source-ip ipv4-address1

Specifies the IP address of the source VTEP.

The value is in dotted decimal notation.

peer-ip ipv4-address2

Specifies the IP address of the destination VTEP.

The value is in dotted decimal notation.

source-ipv6 ipv6-address1

Specifies the IPv6 address of the source VTEP.

The value consists of 128 bits, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format of X:X:X:X:X:X:X:X.

peer-ipv6 ipv6-address2

Specifies the IPv6 address of the destination VTEP.

The value consists of 128 bits, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format of X:X:X:X:X:X:X:X.

vid vlan-id1

Specifies the outer VLAN ID in the packet received by a interface.

The value is an integer that ranges from 1 to 4094.

cevid vlan-id2

Specifies the inner VLAN ID in the packet received by a interface.

The value is an integer that ranges from 1 to 4094.

interface interface-type interface-number.subnum

Specifies an L2 sub-interface.

-

vid vlan-id3

Specifies the VLAN ID in the packet received by a interface.

The value is an integer that ranges from 1 to 4094.

interface interface-type interface-number

Specifies an interface.

-

Views

VBDIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a VXLAN, if a Layer 3 gateway on a VXLAN is not enabled to send ND protocol packets, run the ipv6 neighbor command to configure a static IPv6 neighbor entry. To filter out invalid ND protocol packets, you can also run this command to bind the destination IPv6 addresses of these packets to nonexistent MAC addresses. To configure a static IPv6 neighbor entry for a VXLAN tunnel:

To configure static IPv6 neighbor entries on the VXLAN tunnel side, run the ipv6 neighbor ipv6-address mac-address vni vni-id { source-ip ipv4-address1 peer-ip ipv4-address2 } | { source-ipv6 ipv6-address1 peer-ipv6 ipv6-address2 } command. If the current device has an access-side L2 sub-interface added to a BD, run the ipv6 neighbor ipv6-address mac-address { vid vlan-id1 [ cevid vlan-id2 ] } interface interface-type interface-num.subnum command to configure a static IPv6 neighbor entry for the sub-interface. If the current device has an access-side interface added to a BD based a VLAN, run the ipv6 neighbor ipv6-address mac-address vid vlan-id3 interface interface-type interface-num command to configure a static IPv6 neighbor entry for the interface.

Prerequisites

The IPv6 function has been enabled on a VBDIF interface using the ipv6 enable command.

In addition, before configuring a static IPv6 neighbor entry for the VXLAN tunnel side, ensure that a VNI ID has been associated with a BD using the vxlan vni command in the BD view on a VBDIF interface.

Precautions

  • If the IPv6 address or MAC address specified in the ipv6 neighbor command is incorrect, communication with this neighbor fails.
  • When the VXLAN tunnel is created dynamically, the device does not support to configure a static IPv6 neighbor entry on a VXLAN tunnel-side interface by the command ipv6 neighbor ipv6-address mac-address vni vni-id { source-ip ipv4-address1 peer-ip ipv4-address2 } | { source-ipv6 ipv6-address1 peer-ipv6 ipv6-address2 }.

Example

# Configure a static IPv6 neighbor entry for a VXLAN tunnel-side interface, and set the IP address to fc00:1::10 and MAC address to aaaa-fccc-1212.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] bridge-domain 10
[HUAWEI-bd10] vxlan vni 5000
[HUAWEI-bd10] quit
[HUAWEI] interface nve 1
[HUAWEI-Nve1] source 10.1.1.1
[HUAWEI-Nve1] vni 5000 head-end peer-list 10.2.2.2
[HUAWEI-Nve1] quit
[HUAWEI] interface vbdif 10
[HUAWEI-Vbdif10] ipv6 enable
[HUAWEI-Vbdif10] ipv6 address fc00:1::1/64
[HUAWEI-Vbdif10] ipv6 neighbor fc00:1::10 aaaa-fccc-1212 vni 5000 source-ip 10.1.1.1 peer-ip 10.2.2.2
[HUAWEI-Vbdif10] quit

# Configure a static IPv6 neighbor entry in which the outbound interface is GE0/0/1, and set the IP address to fc00:1::11 and MAC address to aaaa-fccc-1212.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] vlan 10
[HUAWEI-vlan10] quit
[HUAWEI] interface GigabitEthernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 10
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] bridge-domain 10
[HUAWEI-bd10] l2 binding vlan 10
[HUAWEI-bd10] quit
[HUAWEI] interface vbdif 10
[HUAWEI-Vbdif10] ipv6 enable
[HUAWEI-Vbdif10] ipv6 address fc00:1::1/64
[HUAWEI-Vbdif10] ipv6 neighbor fc00:1::11 aaaa-fccc-1212 vid 10 interface GigabitEthernet 0/0/1
[HUAWEI-Vbdif10] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >