Hi Chinmaya
Run vpp services and fire the below cmd from on your linux host.

*ip link add veth-vpp type veth peer name veth-linux*
*ifconfig veth-vpp up*
*ifconfig veth-linux up*

*ip addr add 192.168.1.2/24 <http://192.168.1.2/24> dev veth-linux  *

*vppctl create host-interface name veth-vpp hw-addr 00:a0:a5:c5:ef:d8*

* vppctl set interface ip address host-veth-vpp 192.168.1.1/24
<http://192.168.1.1/24>*
* vppctl set interface state host-veth-vpp up*
*vppctl ping 192.168.1.2 #pinging from vpp to kernel*
*ping 192.168.1.1  #pinging from kerbel to vpp*

I am not sure your exact use case, but you can also try tap interface.
use cmd, create tap ? ..


*vpp# create tap ?                                      create tap
                      create tap {id <if-id>} [hw-addr <mac-address>]
[rx-ring-size <size>] [tx-ring-size <size>] [host-ns <netns>] [host-bridge
<bridge-name>] [host-ip4-addr <ip4addr/mask>] [host-ip6-addr <ip6-addr>]
[host-ip4-gw <ip4-addr>] [host-ip6-gw <ip6-addr>] [host-mac-addr
<host-mac-address>] [host-if-name <name>] [host-mtu-size <size>]
[no-gso|gso|csum-offload]*

*cheers! *
*//MJ*










*Regards*,
Mrityunjay Kumar.
Mobile: +91 - 9731528504



On Wed, May 13, 2020 at 11:18 AM Chinmaya Aggarwal <chinmaya.agar...@hsc.com>
wrote:

> Hi,
> We have a use case where on a VPP machine, we want to generate ping
> request from kernel, which is then forwarded to VPP and then according to
> the policy configured, VPP add SRH into it and act on that packet
> accordingly.
> Can anyone please suggest how we can can achieve this?
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16353): https://lists.fd.io/g/vpp-dev/message/16353
Mute This Topic: https://lists.fd.io/mt/74175816/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