Route advertisement method, apparatus, and system
A route advertisement method includes advertising, by a first network device, an Internet Protocol (IP) prefix route to a second network device, where the IP Prefix route includes a gateway (GW) IP address and a Multi-Protocol Label Switching (MPLS) label. The GW IP address is an IP address of a first interface of the first network device. The MPLS Label is a label of a first IP-virtual routing and forwarding (IP-VRF) instance of the first network device. The first network device advertises a media access control (MAC)/IP route to the second network device, where the MAC/IP route includes the IP address of the first interface and a MAC address of the first interface.
1 . A first network device comprising:
a first interface, wherein the first interface is a first supplementary broadcast domain (SBD) integrated routing and bridging (IRB) interface belonging to an SBD;
one or more processors; and
a memory configured to store program instructions, which, when executed by the one or more processors, cause the first network device to:
advertise an Ethernet virtual private network (EVPN) Internet Protocol (IP) prefix route to a second network device, wherein the EVPN IP prefix route comprises a gateway (GW) IP address and a Multiprotocol Label Switching (MPLS) label, wherein the GW IP address is an IP address of the first interface, and wherein the MPLS label is a label of a first IP-virtual routing and forwarding (VRF) instance of the first network device; and
advertise an EVPN media access control (MAC)/IP route to the second network device, wherein the EVPN MAC/IP route comprises the IP address and a MAC address of the first interface, wherein the second network device comprises a second IP-VRF instance, and wherein a second interface of the second network device does not support SBD IRB.
2 . The first network device of claim 1 , wherein the program instructions, when executed by the one or more processors, further cause the first network device to advertise, using a route reflector, the EVPN IP prefix route and the EVPN MAC/IP route to the second network device.
3 . The first network device of claim 1 , wherein the first SBD IRB interface belongs to an SBD that is used to connect the first IP-VRF instance and the second IP-VRF instance of the second network device.
4 . The first network device of claim 1 , wherein the first network device is a network virtualization edge (NVE) device or a datacenter gateway (DGW) device.
5 . The first network device of claim 1 , wherein the second network device is a network virtualization edge (NVE) device or a datacenter gateway (DGW) device.
6 . A second network device comprising:
one or more processors;
a second interface that does not support supplementary broadcast domain (SBD) integrated routing and bridging (IRB); and
a memory configured to store program instructions, which, when executed by the one or more processors, cause the second network device to:
receive an Ethernet virtual private network (EVPN) Internet Protocol (IP) prefix route of a first network device, wherein the EVPN IP prefix route comprises a gateway (GW) IP address and a Multiprotocol Label Switching (MPLS) label, wherein the GW IP address is an IP address of a first interface of the first network device, and wherein the MPLS label is a label of a first IP-virtual routing and forwarding (VRF) instance of the first network device;
receive an EVPN media access control (MAC)/IP route of the first network device, wherein the EVPN MAC/IP route comprises the IP address and a MAC address of the first interface; and
generate, based on the EVPN IP prefix route, a routing entry corresponding to a second IP-VRF instance of the second network device, wherein the routing entry comprises the MPLS label.
7 . The second network device of claim 6 , wherein the program instructions, when executed by the one or more processors, further cause the second network device to receive, from a route reflector, the EVPN IP prefix route and the EVPN MAC/IP route of the first network device.
8 . The second network device of claim 6 , wherein the program instructions, when executed by the one or more processors, further cause the second network device to:
generate, based on the EVPN IP prefix route, a routing entry corresponding to the second IP-VRF instance, wherein the routing entry comprises the GW IP address; and
generate, an entry of an Address Resolution Protocol (ARP) table based on the EVPN MAC/IP route, wherein the entry comprises the IP address and the MAC address.
9 . The second network device of claim 6 , wherein the first network device is a network virtualization edge (NVE) device or a datacenter gateway (DGW) device.
10 . The second network device of claim 6 , wherein the second network device is a network virtualization edge (NVE) device or a datacenter gateway (DGW) device.
11 . A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable storage medium, wherein the computer-executable instructions, when executed by one or more processors of a first network device, cause the first network device to:
advertise an Ethernet virtual private network (EVPN) Internet Protocol (IP) prefix route to a second network device, wherein the EVPN IP prefix route comprises a gateway (GW) IP address and a Multiprotocol Label Switching (MPLS) label, wherein the GW IP address is an IP address of a first interface of the first network device, and wherein the MPLS label is a label of a first IP-virtual routing and forwarding (VRF) instance of the first network device; and
advertise an EVPN media access control (MAC)/IP route to the second network device, wherein the EVPN MAC/IP route comprises the IP address and a MAC address of the first interface, and wherein the first interface is a first supplementary broadcast domain (SBD) integrated routing and bridging (IRB) interface belonging to an SBD, wherein the second network device comprises a second IP-VRF instance, and wherein a second interface of the second network device does not support SBD IRB.
12 . The computer program product of claim 11 , wherein the computer-executable instructions when executed by the one or more processors further cause the first network device to advertise, using a route reflector, the EVPN IP prefix route and the EVPN MAC/IP route to the second network device.
13 . The computer program product of claim 11 , wherein the first interface is used to connect the first IP-VRF instance and the second IP-VRF instance of the second network device.
14 . The computer program product of claim 11 , wherein the first network device is a network virtualization edge (NVE) device.
15 . The computer program product of claim 11 , wherein the second network device is a network virtualization edge (NVE) device.
16 . The computer program product of claim 11 , wherein the second network device is a datacenter gateway (DGW) device.
17 . The computer program product of claim 11 , wherein the first network device is a datacenter gateway (DGW) device.