Hoi,

You have to (for now) apply the IP and link state both in Linux and in VPP
by hand - they will not copy back and forth until Linux CP is fully
committed.
if you type 'show interface address' in VPP, you are not likely to see the
addresses show up there, right?

So add a bit of
vppctl set interface ip address 24.24.10.101/24 GigabitEthernet0/8/0.1400
vppctl set interface state GigabitEthernet0/8/0.1400 up
vppctl set interface mtu packet 1500 GigabitEthernet0/8/0.1400
sudo ip netns exec dataplane ip link set 1500 dev vpp1.1400

See https://ipng.ch/s/articles/2021/08/12/vpp-1.html and other articles for
an in-depth breakdown of how LinuxCP works (and will work, when all the
code is committed).

groet,
Pim

On Wed, Dec 8, 2021 at 4:13 PM Chinmaya Aggarwal <chinmaya.agar...@hsc.com>
wrote:

> Hi,
>
> We have two VMs running on Centos 8.4 and base server running on Centos
> 7.8. VM1 is running VPP(v21.06) and VM2 is a normal linux machine. VM1 is
> connected to VM2 on GigabitEthernet0/8/0 interface. We created a VLAN
> interface (with VLAN id 1400) on both the VMs and we are trying to ping
> from VM1's VLAN interface to VM2's VLAN interface. The setup is show in
> vlan_test_setup.png
>
> Below are the VPP commands executed on VM1 for configuring VLAN interface:-
>
> lcp create GigabitEthernet0/8/0 host-if vpp1 netns dataplane
> create sub GigabitEthernet0/8/0 1400
> lcp create GigabitEthernet0/8/0.1400 host-if vpp1.1400 netns dataplane
> sudo ip netns exec dataplane ip link set up dev vpp1
> sudo ip netns exec dataplane ip link set up dev vpp1.1400
> sudo ip netns exec dataplane ip addr add 24.24.10.101/24 dev vpp1.1400
> sudo ip netns exec dataplane ip -6 addr add 2001:24:10:a111::101/64 dev
> vpp1.1400
>
> When we execute ping command: -
> sudo ip netns exec dataplane ping 24.24.10.102
>
> We can see ping reply packets with correct VLAN tag on the vnet interface
> corresponding to GigabitEthernet0/8/0. But on taking packet trace on VPP
> using command: -
>
> pcap dispatch trace on max 1000 file vppcapture_ping_from_router.pcapng
> buffer-trace dpdk-input 1000
>
> We don't see reply packet reaching VPP.
>
> What could be the reason behind this?
>
>
> Thanks and Regards,
> Chinmaya Agarwal.
>
> 
>
>

-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20602): https://lists.fd.io/g/vpp-dev/message/20602
Mute This Topic: https://lists.fd.io/mt/87590032/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