Re: [vpp-dev] Forwarding packet from kernel interface to VPP srv6 policy

2020-05-13 Thread Mrityunjay Kumar
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  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
*
* 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 } [hw-addr ]
[rx-ring-size ] [tx-ring-size ] [host-ns ] [host-bridge
] [host-ip4-addr ] [host-ip6-addr ]
[host-ip4-gw ] [host-ip6-gw ] [host-mac-addr
] [host-if-name ] [host-mtu-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 
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]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Forwarding packet from kernel interface to VPP srv6 policy

2020-05-12 Thread Chinmaya Aggarwal
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 (#16351): https://lists.fd.io/g/vpp-dev/message/16351
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]
-=-=-=-=-=-=-=-=-=-=-=-