(Optional) Configuring a Layer 3 Gateway on an IPv6 VXLAN

To allow users on different network segments to communicate, deploy a Layer 3 gateway and specify the IP address of its VBDIF interface as the default gateway address of the users.

Context

On an IPv6 VXLAN, a BD can be mapped to a VNI (identifying a tenant) in 1:1 mode to transmit VXLAN data packets. You can create a VBDIF interface (logical Layer 3 interface) for each BD to implement communication between VXLAN segments, between VXLAN segments and non-VXLAN segments, and between Layer 2 and Layer 3 networks. After you configure an IP address for a VBDIF interface, the interface functions as the gateway for tenants in the BD to forward packets at Layer 3 based on the IP address.

A VBDIF interface needs to be configured on the Layer 3 gateway of an IPv6 VXLAN for communication between different network segments only; it is not needed for communication on the same network segment.

The DHCP relay function can be configured on a VBDIF interface so that hosts can request IP addresses from an external DHCP server.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface vbdif bd-id

    A VBDIF interface is created, and the VBDIF interface view is displayed.

  3. Configure an IP address for the VBDIF interface to implement Layer 3 communication.
    • For an IPv4 overlay network, run ip address ip-address { mask | mask-length } [ sub ]

      An IPv4 address is configured for the VBDIF interface.

    • For an IPv6 overlay network, perform the following operations:
      1. Run ipv6 enable

        The IPv6 function is enabled for the interface.

      2. Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } or ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } eui-64

        A global unicast address is configured for the interface.

  4. (Optional) Run mac-address mac-address

    A MAC address is configured for the VBDIF interface.

  5. (Optional) Run bandwidth bandwidth

    Bandwidth is configured for the VBDIF interface.

  6. Run commit

    The configuration is committed.

Follow-up Procedure

Configure a static route to the IP address of the VBDIF interface, or configure a dynamic routing protocol to advertise this IP address, so that Layer 3 connectivity can be achieved on the overlay network.

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