>> As 198.19.255.249 is the IP of host-Vpp2Host.4093, VPP interprets it as
>> you want to deliver the packet locally instead of forwarding it. Try
>> changing it to:
>> ip route add 198.19.255.248/29 table 1 via 0.0.0.0 next-hop-table 4093

> 0.0.0.0/32 in any table is a drop. One cannot specify a route to be
> recursive via another network, i.e. via 0.0.0.0/0, VPP doesn't support
> that.

I do not disagree with the rest of your comment, however this worked for me 
though - maybe because of some odd cli behavior?

vpp# create packet-generator interface pg0
vpp# create packet-generator interface pg1
vpp# set int ip addr pg0 192.168.1.1/24
vpp# set int st pg0 up
vpp# ip table add 4093
vpp# set int st pg1 up
vpp# set int ip table pg1 4093
vpp# set int ip address pg1 198.19.255.249/29
vpp# ip neigh pg1 198.19.255.253 1.2.3 static
vpp# ip route add 198.19.255.248/29 via 0.0.0.0 next-hop-table 4093
vpp# sh ip fib 198.19.255.253 table 0
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto flowlabel ] 
epoch:0 flags:none locks:[default-route:1, ]
198.19.255.248/29 fib:0 index:21 locks:2
  CLI refs:1 src-flags:added,contributing,active,
    path-list:[29] locks:2 flags:shared, uPRF-list:27 len:0 itfs:[]
      path:[33] pl-index:29 ip4 weight=1 pref=0 deag:  oper-flags:resolved,
         fib-index:1

 forwarding:   unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:23 buckets:1 uRPF:27 to:[1:100]]
    [0] [@12]: dst-address,unicast lookup in ipv4-VRF:4093

And tracing seems to give the expected result:
00:00:02:247022: pg-input
  stream x, 100 bytes, sw_if_index 1
  current data 0, length 100, buffer-pool 0, ref-count 1, trace handle 0x0
  UDP: 192.168.1.2 -> 198.19.255.253
    tos 0x00, ttl 64, length 100, checksum 0xf2cd dscp CS0 ecn NON_ECN
    fragment id 0x0000
  UDP: 4321 -> 1234
    length 72, checksum 0x7deb
00:00:02:247055: ip4-input
  UDP: 192.168.1.2 -> 198.19.255.253
    tos 0x00, ttl 64, length 100, checksum 0xf2cd dscp CS0 ecn NON_ECN
    fragment id 0x0000
  UDP: 4321 -> 1234
    length 72, checksum 0x7deb
00:00:02:247079: ip4-lookup
  fib 0 dpo-idx 0 flow hash: 0x00000000
  UDP: 192.168.1.2 -> 198.19.255.253
    tos 0x00, ttl 64, length 100, checksum 0xf2cd dscp CS0 ecn NON_ECN
    fragment id 0x0000
  UDP: 4321 -> 1234
    length 72, checksum 0x7deb
00:00:02:247088: lookup-ip4-dst
     fib-index:1 addr:198.19.255.253 load-balance:22
00:00:02:247092: ip4-rewrite
  tx_sw_if_index 2 dpo-idx 4 : ipv4 via 198.19.255.253 pg1: mtu:9000 next:3 
flags:[] 00010002000302fe257345030800 flow hash: 0x00000000
  00000000: 00010002000302fe25734503080045000064000000003f11f3cdc0a80102c613
  00000020: fffd10e104d200487deb000102030405060708090a0b0c0d0e0f1011
00:00:02:247099: pg1-output
  pg1
  IP4: 02:fe:25:73:45:03 -> 00:01:00:02:00:03
  UDP: 192.168.1.2 -> 198.19.255.253
    tos 0x00, ttl 63, length 100, checksum 0xf3cd dscp CS0 ecn NON_ECN
    fragment id 0x0000
  UDP: 4321 -> 1234
    length 72, checksum 0x7deb
00:00:02:247106: pg1-tx
    buffer 0x9ffd4: current data -14, length 114, buffer-pool 0, ref-count 1, 
trace handle 0x0
                    loop-counter 1
  IP4: 02:fe:25:73:45:03 -> 00:01:00:02:00:03
  UDP: 192.168.1.2 -> 198.19.255.253
    tos 0x00, ttl 63, length 100, checksum 0xf3cd dscp CS0 ecn NON_ECN
    fragment id 0x0000
  UDP: 4321 -> 1234
    length 72, checksum 0x7deb

ben
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19677): https://lists.fd.io/g/vpp-dev/message/19677
Mute This Topic: https://lists.fd.io/mt/83895986/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to