ok looks like I was typing it wrong... host-if is not host-if it is some if :)


Currently i stuct with other thing - can't configure more than one sub interface as vlan all because after configuring one vlan second one always has error:

vpp# create sub BondEthernet0 4070
BondEthernet0.4070
vpp# lcp create BondEthernet0.4070 host-if be0.4070
lcp create: lcp pair creation failed (-73)
vpp# create sub m1rdma1 4070
m1rdma1.4070
vpp# lcp create m1rdma1.4070 host-if e1.4070
lcp create: lcp pair creation failed (-2)
vpp#


depends if on bond or ethernet there is -2 or -73 error

Below show int

vpp# show interface
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count BondEthernet0                     5      up 1500/0/0/0     rx packets                178335                                                                     rx bytes                17330109                                                                     tx packets                  1283                                                                     tx bytes                  100691
drops                     173937
tx-error                       1
BondEthernet0.2846                7      up 1500/0/0/0     rx packets                  9234                                                                     rx bytes                 5108541                                                                     tx packets                  1274                                                                     tx bytes                   99705
drops                       5676
ip4                         3553
BondEthernet0.4070                9     down 1500/0/0/0
local0                            0     down 0/0/0/0
loop0                             1      up 9000/0/0/0     tx packets                    20                                                                     tx bytes                    2464
drops                         10
ip6                           10
m0rdma0                           4      up 1500/0/0/0     rx packets                 94762                                                                     rx bytes                 6814573                                                                     tx packets                    22                                                                     tx bytes                    2648
drops                        424
m1rdma1                           3      up 1500/0/0/0     rx packets                 83573                                                                     rx bytes                10515536                                                                     tx packets                  1288                                                                     tx bytes                  101521
drops                        425
m1rdma1.4070                      11    down 0/0/0/0
tap1                              2      up 9000/0/0/0     rx packets                     8                                                                     rx bytes                     952
ip6                            8
tap5                              6      up 1500/0/0/0     rx packets                   962                                                                     rx bytes                   68107                                                                     tx packets                  3242                                                                     tx bytes                 4701759
drops                          1
ip6                            9
tap5.2846                         8      up 1500/0/0/0     rx packets                   953                                                                     rx bytes                   67141                                                                     tx packets                  3242                                                                     tx bytes                 4701759
ip4                          942
ip6                            7
tap5.4070                         10     up 1500/0/0/0


On 9/8/22 10:20 PM, Paweł Staszewski wrote:

Hi


So here is output of show int and int creation of rdma mellanox nic

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens2f0np0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 04:3f:72:dc:36:9c brd ff:ff:ff:ff:ff:ff
    altname enp101s0f0np0
3: ens2f1np1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 04:3f:72:dc:36:9d brd ff:ff:ff:ff:ff:ff
    altname enp101s0f1np1
4: ens1f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 04:3f:72:dc:1e:84 brd ff:ff:ff:ff:ff:ff
    altname enp179s0f0np0
    inet6 fe80::63f:72ff:fedc:1e84/64 scope link
       valid_lft forever preferred_lft forever
5: ens1f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 04:3f:72:dc:1e:85 brd ff:ff:ff:ff:ff:ff
    altname enp179s0f1np1
    inet6 fe80::63f:72ff:fedc:1e85/64 scope link
       valid_lft forever preferred_lft forever

Create rdma interface:

vppctl create int rdma host-if ens1f1np1 name rdma-1

Show int from vpp:

vppctl show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
local0                            0     down 0/0/0/0
loop0                             1      up 9000/0/0/0     tx packets                    18                                                                     tx bytes                    2164
drops                          9
ip6                            9
rdma-1                            3     down 9000/0/0/0
tap1                              2      up 9000/0/0/0     rx packets                     8                                                                     rx bytes                     952
ip6                            8


And some lcp create commands that fails

~/src/vpp# vppctl lcp create M1 host-if e1
lcp create: unknown input `'
~/src/vpp# vppctl lcp create M1 host-if rdma-1
lcp create: unknown input `'
~/src/vpp#




On 9/8/22 3:03 PM, Matthew Smith via lists.fd.io wrote:
Hi,

The help text can be displayed with '?' rather than 'help':
vpp# lcp create ?
  lcp create                               lcp create <sw_if_index>|<if-name> host-if <host-if-name> netns <namespace> [tun]

When you ran 'lcp create 1', you got a different error message than you did with the rest of your commands. That suggests that 1 is a valid sw_if_index. The command 'lcp create 1 host-if ens1f1np1' may work. Since you got an error when you tried other commands using 'e0', e0 is probably not a valid interface in your VPP instance. What interfaces are displayed by 'show interface'?

Thanks,
-Matt


On Wed, Sep 7, 2022 at 5:32 PM Paweł Staszewski <pstaszew...@itcare.pl <mailto:pstaszew...@itcare.pl>> wrote:

    Hi


    Was trying linux-cp vpp and the problem is that i cant create any
    interface with lcp because any command is like this:

    vpp# lcp create
    vpp# lcp create help
    lcp create: unknown input `'
    vpp# lcp create default
    lcp create: unknown input `'
    vpp# lcp create
    vpp# lcp create1
    lcp: unknown input `create1'
    vpp# lcp create
    vpp# lcp create  1
    lcp create: host interface name required
    vpp# lcp create  e0 host-if ens1f1np1
    lcp create: unknown input `'
    vpp# lcp create  e0 host-if
    lcp create: unknown input `'
    vpp# lcp create  e0 host-if
    lcp create: unknown input `'
    vpp# lcp create  e0  host-if
    lcp create: unknown input `'
    vpp# lcp create  e0  host-if
    lcp create: unknown input `'
    vpp# lcp create  e0  host-if
    lcp create: unknown input `'
    vpp# lcp create "e0"
    lcp create: unknown input `'
    vpp# lcp create 'e0'
    lcp create: unknown input `'
    vpp# lcp create 'e0' host-if 'abc'
    lcp create: unknown input `'
    vpp# lcp create  e0 host-if ens1f1np1
    lcp create: unknown input `'





--
Paweł Staszewski
CEO at ITCare

Cell:    +48 609911040
pstaszew...@itcare.pl

This message (including any attachments) contains confidential information 
intended
for a specific individual and purpose, and is protected by law.  If you are not 
the
intended recipient, you should delete this message.  Any disclosure, copying, or
distribution of this message, or the taking of any action based on it, is 
strictly
prohibited.

-------------------------------------------------------------------------------------

Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej 
adresatem i
może zawierać poufne lub uprzywilejowane informacje. Zakazane jest przeglądanie,
przesyłanie, rozpowszechnianie lub inne wykorzystywanie tych informacji, jak 
również
podejmowanie działań na ich podstawie, przez osoby lub podmioty inne niż 
zamierzony
adresat. Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o 
poinformowanie
nadawcy i usunięcie jej z komputera.



--
Paweł Staszewski
CEO at ITCare

Cell:    +48 609911040
pstaszew...@itcare.pl

This message (including any attachments) contains confidential information 
intended
for a specific individual and purpose, and is protected by law.  If you are not 
the
intended recipient, you should delete this message.  Any disclosure, copying, or
distribution of this message, or the taking of any action based on it, is 
strictly
prohibited.

-------------------------------------------------------------------------------------

Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej 
adresatem i
może zawierać poufne lub uprzywilejowane informacje. Zakazane jest przeglądanie,
przesyłanie, rozpowszechnianie lub inne wykorzystywanie tych informacji, jak 
również
podejmowanie działań na ich podstawie, przez osoby lub podmioty inne niż 
zamierzony
adresat. Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o 
poinformowanie
nadawcy i usunięcie jej z komputera.

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

Reply via email to