You can create an ARP entry manually for an IP address. Thus you can set up a 
MAC for the IP you want to use as the gateway IP to bypass the ARP request 
sequence. 

DBGvpp# set ip arp ?   
  set ip arp                               set ip arp [del] <intfc> 
<ip-address> <mac-address> [static] [count <count>] [fib-id <fib-id>] [proxy 
<lo-addr> - <hi-addr>]

Example: set ip arp fib-id 3 loop0 6.0.0.10 0606.0606.0606

This will not work in a "real" setup unless the MAC really matches that of the 
remote gateway. It is OK if you just want to see packet forwarded via VXLAN 
tunnel and the receiver does not care about DMAC, etc.

Regards,
John

-----Original Message-----
From: Ivan Kelly [mailto:i...@midokura.com] 
Sent: Thursday, November 03, 2016 5:34 PM
To: John Lo (loj); vpp-dev
Subject: Re: [vpp-dev] ip4-lookup to vxlan and vice versa

Oops, forgot to include list.

On Thu, Nov 3, 2016 at 10:32 PM, Ivan Kelly <i...@midokura.com> wrote:
> On Thu, Nov 3, 2016 at 9:42 PM, John Lo (loj) <l...@cisco.com> wrote:
>> The last sentence of my last reply is not correct:
>>>If you want to setup loop0 as default gateway for vrf 1, it should be set as 
>>>"ip route add table 1 0.0.0.0/0 via 10.0.0.1".
>>
>> We cannot use IP address of the local BVI (or any local interfaces) as the 
>> default gateway. The default gateway should have an IP address in one of the 
>> neighbor subnets. So, if the default gateway is reachable in the BD via the 
>> its BVI loop0, you need to use the default gateway IP which is likely the IP 
>> address (in the 10.10.0.0/24 subnet) of a remote BVI in a remote BD. This 
>> kind of config for default gateway is pretty unusual. There will usually be 
>> a particular remote BVI which can reach a particular subnet.
> Ah, that makes some sense. Problem is I don't have something on the 
> other end that'll answer ARP. Is it possible to preseed the ip-mac 
> mapping, and then somehow tell vpp that the mac is only available 
> through vxlan_tunnel0?
>
> -Ivan
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to