-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
None
The ARP request is send with destination IP in PDST not next hop IP address configured in "ip_add_del_route" command
With "ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 7 multipath" command it is send with correct value.
Config:
sw_interface_add_del_address sw_if_index 5 192.168.1.1/24
sw_interface_add_del_address sw_if_index 7 192.168.2.1/24
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 7
The IP packet is send to interface with sw_if_index 5
###[ Ethernet ]###
dst = 08:00:27:f3:be:f0
src = 08:00:27:1a:17:8e
type = 0x800
###[ IP ]###
version = 4L
ihl = 5L
tos = 0x0
len = 28
id = 1
flags =
frag = 0L
ttl = 64
proto = icmp
chksum = 0x4adf
src = 16.0.0.1
dst = 32.0.0.1
\options \
###[ ICMP ]###
type = echo-request
code = 0
chksum = 0xf7ff
id = 0x0
seq = 0x0
Packet received from interface with sw_if_index 7:
###[ Ethernet ]###
dst = ff:ff:ff:ff:ff:ff
src = 08:00:27:2d:af:96
type = 0x806
###[ ARP ]###
hwtype = 0x1
ptype = 0x800
hwlen = 6
plen = 4
op = who-has
hwsrc = 08:00:27:2d:af:96
psrc = 192.168.2.1
hwdst = 00:00:00:00:00:00
pdst = 32.0.0.1
vppctl show ip fib
Table 0, fib_index 0, flow hash: src dst sport dport proto
Destination Packets Bytes Adjacency
192.168.1.0/24 0 0 weight 1, index 3
arp GigabitEthernet0/9/0 192.168.1.1/24
192.168.1.1/32 0 0 weight 1, index 4
local 192.168.1.1/24
192.168.2.0/24 0 0 weight 1, index 5
arp GigabitEthernet0/10/0 192.168.2.1/24
192.168.2.1/32 0 0 weight 1, index 6
local 192.168.2.1/24
32.0.0.0/24 1 60 weight 1, index 7
arp GigabitEthernet0/10/0 192.168.2.1/24
vppctl show version
vpp v16.06-rc3~5-g419e656~b30 built by jenkins on ubnt-trusty-9 at Thu Jun 9 01:44:08 UTC 2016