摘要 |
Provided are a method and device. A first switch receives an ARP response from an SDN controller, the ARP response carrying a MAC address of a destination gateway. According to the MAC address of the destination gateway, the first switch obtains VTEP information corresponding to the MAC address of the destination gateway, a router corresponding to the VTEP information being located in a first data center. According to the VTEP information, the first switch sends an IP packet to the router corresponding to the VTEP information, so that the router corresponding to the VTEP information sends the IP packet to a second virtual machine via a tunnel between the router and a second switch. Therefore the SDN controller picks up, thereby reducing the transmission bandwidth occupancy of a broadcast packet. The packet only passes through the router of the first data center, thereby reducing a roundabout route of the packet between data centers. |