After explicitly add a route:

DBGvpp# ip route add 3.3.3.3 via gre1

DBGvpp# show ip fib 3.3.3.3/32
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto flowlabel ] epoch:0 flags:none locks:[adjacency:2, recursive-resolution:1, default-route:1, ]
3.3.3.3/32 fib:0 index:16 locks:5
  CLI refs:1 entry-flags:attached, src-flags:added,contributing,active,
    path-list:[20] locks:2 flags:shared, uPRF-list:12 len:1 itfs:[2, ]
      path:[26] pl-index:20 ip4 weight=1 pref=0 attached-nexthop: oper-flags:resolved, cfg-flags:attached,
        3.3.3.3 gre1
      [@0]: ipv4 via 3.3.3.3 gre1: mtu:9000 next:4 4500000000000000fe2fb8cb010101010101010100000800
             stacked-on entry:11:
               [@3]: ipv4 via 1.1.1.1 memif1/0: mtu:9000 next:3 02fe21058f7502fe049eea920800

  adjacency refs:1 entry-flags:attached, src-flags:added, cover:-1
    path-list:[21] locks:1 uPRF-list:24 len:1 itfs:[2, ]
      path:[25] pl-index:21 ip4 weight=1 pref=0 attached-nexthop: oper-flags:resolved,
        3.3.3.3 gre1
      [@0]: ipv4 via 3.3.3.3 gre1: mtu:9000 next:4 4500000000000000fe2fb8cb010101010101010100000800
             stacked-on entry:11:
               [@3]: ipv4 via 1.1.1.1 memif1/0: mtu:9000 next:3 02fe21058f7502fe049eea920800
    Extensions:
     path:25
  recursive-resolution refs:1 src-flags:added, cover:-1

 forwarding:   unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:16 buckets:1 uRPF:12 to:[0:0]]
    [0] [@6]: ipv4 via 3.3.3.3 gre1: mtu:9000 next:4 4500000000000000fe2fb8cb010101010101010100000800
        stacked-on entry:11:
          [@3]: ipv4 via 1.1.1.1 memif1/0: mtu:9000 next:3 02fe21058f7502fe049eea920800


I doubt this step is necessary?


在 2021/2/22 下午8:53, yedg 写道:
Hi:

    I try to config a mgre interface fellow those steps, then i get an UNRESOLVED fib entry,  is it right? I think it should be unicast-ip4-chain?

    any examples of mgre config?  Thinks.


create memif socket id 1 filename /work/memif1
create interface memif socket-id 1 master
set interface state memif1/0 up
set interface ip addr memif1/0 1.1.1.2/24
set interface rx-mode memif1/0 interrupt
create gre tunnel src 1.1.1.2 instance 1 multipoint
set interface state gre1 up
set interface ip addr gre1 2.1.1.2/32
create teib  gre1 peer 3.3.3.3 nh 1.1.1.1


DBGvpp# show ip fib 3.3.3.3/32
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto flowlabel ] epoch:0 flags:none locks:[adjacency:2, recursive-resolution:1, default-route:1, ]
3.3.3.3/32 fib:0 index:16 locks:4
  adjacency refs:1 entry-flags:attached, src-flags:added,contributing,active, cover:0
    path-list:[21] locks:2 uPRF-list:24 len:1 itfs:[2, ]
      path:[25] pl-index:21 ip4 weight=1 pref=0 attached-nexthop: oper-flags:resolved,
        3.3.3.3 gre1
      [@0]: ipv4 via 3.3.3.3 gre1: mtu:9000 next:4 4500000000000000fe2fb8cb010101010101010100000800
             stacked-on entry:11:
               [@3]: ipv4 via 1.1.1.1 memif1/0: mtu:9000 next:3 02fe21058f7502fe049eea920800
    Extensions:
     path:25
  recursive-resolution refs:1 src-flags:added, cover:-1

 forwarding:   UNRESOLVED


DBGvpp# show adj
[@0] ipv4-glean: [src:0.0.0.0/0] memif1/0: mtu:9000 next:1 ffffffffffff02fe049eea920806 [@1] ipv4-glean: [src:1.1.1.0/24] memif1/0: mtu:9000 next:1 ffffffffffff02fe049eea920806 [@2] ipv4 via 1.1.1.1 memif1/0: mtu:9000 next:3 02fe21058f7502fe049eea920800 [@3] ipv4 via 3.3.3.3 gre1: mtu:9000 next:4 4500000000000000fe2fb8cb010101010101010100000800
  stacked-on entry:11:
    [@3]: ipv4 via 1.1.1.1 memif1/0: mtu:9000 next:3 02fe21058f7502fe049eea920800


DBGvpp# show teib
[0] gre1:3.3.3.3 via [0]:1.1.1.1/32


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18781): https://lists.fd.io/g/vpp-dev/message/18781
Mute This Topic: https://lists.fd.io/mt/80823285/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