To enable communication between VMs on different subnets, configure Layer 3 gateways on the VXLAN, enable the distributed gateway function, and configure host route advertisement.
The system view is displayed.
A VBDIF interface is created, and the VBDIF interface view is displayed.
The VBDIF interface is bound to a VPN instance.
Run the ipv6 enable command to enable IPv6 for the VBDIF interface.
Run the ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } or ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } eui-64 command to configure a global unicast address for the VBDIF interface.
Bandwidth is configured for the VBDIF interface.
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 Layer 3 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 a VXLAN, the VBDIF interfaces of the Layer 3 gateways must have the same IP address and same 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, reducing the maintenance workload.
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.
Overlay Network Type |
Type of Route to Be Advertised Between Gateways |
Host Route Advertisement Configuration |
---|---|---|
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. |
The configuration is committed.