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.
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.
An IPv4 address is configured for the VBDIF interface.
Run ipv6 enable
The IPv6 function is enabled for the interface.
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.
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.
Bandwidth is configured for the VBDIF interface.
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 |
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. |
The configuration is committed.