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

To enable communication between VMs on different subnets, configure Layer 3 gateways on the IPv6 VXLAN, enable the distributed gateway function, and configure host route advertisement.

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. Run ip binding vpn-instance vpn-instance-name

    The VBDIF interface is bound to a VPN instance.

  4. Configure an IP address for the VBDIF interface to implement Layer 3 interworking.
    • 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.

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

    A MAC address is configured for the VBDIF interface.

    By default, the MAC address of a VBDIF interface is the system MAC address. On a network where distributed or active-active gateways need to be simulated into one, you need to run the mac-address command to configure the same MAC address for the VBDIF interfaces of these Layer 3 gateways.

    If VMs on the same subnet connect to different Layer 3 gateways on an IPv6 VXLAN, the VBDIF interfaces of the Layer 3 gateways must have the same IP address and MAC address configured. In this way, the configurations of the Layer 3 gateways do not need to be changed when the VMs' locations are changed. This reduces the maintenance workload.

  6. (Optional) Run bandwidth bandwidth

    Bandwidth is configured for the VBDIF interface.

  7. Run vxlan anycast-gateway enable

    The distributed gateway function is enabled.

    After the distributed gateway function is enabled on a Layer 3 gateway, this gateway discards network-side ARP or NS messages and learns those only from the user side.

  8. Perform one of the following steps to configure host route advertisement.

    Table 1 Configuring host route advertisement

    Overlay Network Type

    Type of Route to Be Advertised Between Gateways

    Configuration Method

    IPv4

    IRB route

    Run the arp collect host enable command in the VBDIF interface view.

    IP prefix route

    Run the arp vlink-direct-route advertise [ route-policy route-policy-name | route-filter route-filter-name ] command in the IPv4 address family view of the VPN instance to which the VBDIF interface is bound.

    IPv6

    IRB route

    Run the ipv6 nd collect host enable command in the VBDIF interface view.

    IP prefix route

    Run the nd vlink-direct-route advertise [ route-policy route-policy-name | route-filter route-filter-name ] command in the IPv6 address family view of the VPN instance to which the VBDIF interface is bound.

  9. Run commit

    The configuration is committed.

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