On 09/10/2018 02:55 PM, Chen Hanxiao
wrote:
IMO, As long as the host interface and the guest interface communicated through osi layer3 or above, Host kernel will maintaince the corresponding ip <-> mac entry in arp able. What you mentioned above remind me one thing: I forgot to mention that if the switch doesn't support hairpin mode, then the virtual interfaces which backend is mactap can't communicate with host, that means the host arp table won't include the ip <-> mac information of such virtual interfaces. In this case, the qemuARPGetInterfaces can't get IP. So I'd like to change the code to only ignore VIR_DOMAIN_NET_TYPE_DIRECT in patch V2, For anyelse net types, the code will iterate the arp table for loop to try to search if there is a matched entry. what do you think? Thanks, Lin |
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list