Hi, vpp-dev

I made a test for VPP's wireguard VPN  with version 20.09 , and I found a error 
below:
"wireguard peer add: Input error"


my topological graph below


1、ping from srv1(or srv2) to peer is ok, by 172.20.20.x in vppctl
2、VPP srv1 wireguard create like below
vpp# wireguard create listen-port 8001 private-key 
MA4By9Ymc38GoI1zaHq+Ruv7qN58ngAPVOKD5YiTMVo= src 172.20.20.1
vpp# show wireguard interface                                                   
                                                                                
          
[0] wg0 src:172.20.20.1 port:8001 
private-key:MA4By9Ymc38GoI1zaHq+Ruv7qN58ngAPVOKD5YiTMVo= 
300e01cbd626737f06a08d73687abe46ebfba8de7c9e000f54e283e58893315a 
public-key:3xeh8iCP8nSTT0HKGPjQOb/pQXIUncC8Te8oyCU4fVg= 
df17a1f2208ff274934f41ca18f8d039bfe94172149dc0bc4def28c825387d58 mac-key: 
075349f1b6956d834555c5384bbdbcdbaf6d2aba8f0e8aea249f9b84e1b15d20
vpp# wireguard peer add wg0 public-key 
3xeh8iCP8nSTT0HKGPjQOb/pQXIUncC8Te8oyCU4fVg= endpoint 172.20.20.2 allowed-ip 
10.100.0.0/24 dst-port 8001  persistent-keepalive 25
wireguard peer add: Input error


3、In VPP srv2 the same error happened 
4、Two VPP runs in ubuntu 18.04 OS of vmware 15.


Is there something wrong with my configures ?


addition for VPP log


vpp# sh log
2020/12/07 01:32:07:366 notice     plugin/load    Loaded plugin: abf_plugin.so 
(Access Control List (ACL) Based Forwarding)
2020/12/07 01:32:07:367 notice     plugin/load    Loaded plugin: acl_plugin.so 
(Access Control Lists (ACL))
2020/12/07 01:32:07:367 notice     plugin/load    Loaded plugin: adl_plugin.so 
(Allow/deny list plugin)
2020/12/07 01:32:07:368 notice     plugin/load    Loaded plugin: avf_plugin.so 
(Intel Adaptive Virtual Function (AVF) Device Driver)
2020/12/07 01:32:07:368 notice     plugin/load    Loaded plugin: 
builtinurl_plugin.so (vpp built-in URL support)
2020/12/07 01:32:07:368 notice     plugin/load    Loaded plugin: cdp_plugin.so 
(Cisco Discovery Protocol (CDP))
2020/12/07 01:32:07:368 notice     plugin/load    Loaded plugin: cnat_plugin.so 
(CNat Translate)
2020/12/07 01:32:07:375 notice     plugin/load    Loaded plugin: 
crypto_ipsecmb_plugin.so (Intel IPSEC Multi-buffer Crypto Engine)
2020/12/07 01:32:07:375 notice     plugin/load    Loaded plugin: 
crypto_native_plugin.so (Intel IA32 Software Crypto Engine)
2020/12/07 01:32:07:376 notice     plugin/load    Loaded plugin: 
crypto_openssl_plugin.so (OpenSSL Crypto Engine)
2020/12/07 01:32:07:376 notice     plugin/load    Loaded plugin: 
crypto_sw_scheduler_plugin.so (SW Scheduler Crypto Async Engine plugin)
2020/12/07 01:32:07:376 notice     plugin/load    Loaded plugin: ct6_plugin.so 
(IPv6 Connection Tracker)
2020/12/07 01:32:07:376 notice     plugin/load    Loaded plugin: 
det44_plugin.so (Deterministic NAT (CGN))
2020/12/07 01:32:07:376 notice     plugin/load    Loaded plugin: dhcp_plugin.so 
(Dynamic Host Configuration Protocol (DHCP))
2020/12/07 01:32:07:376 notice     plugin/load    Loaded plugin: dns_plugin.so 
(Simple DNS name resolver)
2020/12/07 01:32:07:392 notice     plugin/load    Loaded plugin: dpdk_plugin.so 
(Data Plane Development Kit (DPDK))
2020/12/07 01:32:07:392 notice     plugin/load    Loaded plugin: 
dslite_plugin.so (Dual-Stack Lite)
2020/12/07 01:32:07:392 notice     plugin/load    Loaded plugin: 
flowprobe_plugin.so (Flow per Packet)
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: gbp_plugin.so 
(Group Based Policy (GBP))
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: gtpu_plugin.so 
(GPRS Tunnelling Protocol, User Data (GTPv1-U))
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: 
hs_apps_plugin.so (Host Stack Applications)
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: 
http_static_plugin.so (HTTP Static Server)
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: igmp_plugin.so 
(Internet Group Management Protocol (IGMP))
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: 
ikev2_plugin.so (Internet Key Exchange (IKEv2) Protocol)
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: ila_plugin.so 
(Identifier Locator Addressing (ILA) for IPv6)
2020/12/07 01:32:07:393 notice     plugin/load    Loaded plugin: ioam_plugin.so 
(Inbound Operations, Administration, and Maintenance (OAM))
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: l2e_plugin.so 
(Layer 2 (L2) Emulation)
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: l3xc_plugin.so 
(L3 Cross-Connect (L3XC))
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: lacp_plugin.so 
(Link Aggregation Control Protocol (LACP))
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: lb_plugin.so 
(Load Balancer (LB))
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: 
mactime_plugin.so (Time-based MAC Source Address Filter)
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: map_plugin.so 
(Mapping of Address and Port (MAP))
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: 
mdata_plugin.so (Buffer metadata change tracker.)
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: 
memif_plugin.so (Packet Memory Interface (memif) -- Experimental)
2020/12/07 01:32:07:394 notice     plugin/load    Loaded plugin: 
nat66_plugin.so (NAT66)
2020/12/07 01:32:07:395 notice     plugin/load    Loaded plugin: nat_plugin.so 
(Network Address Translation (NAT))
2020/12/07 01:32:07:395 notice     plugin/load    Loaded plugin: nsh_plugin.so 
(Network Service Header (NSH))
2020/12/07 01:32:07:396 notice     plugin/load    Loaded plugin: nsim_plugin.so 
(Network Delay Simulator)
2020/12/07 01:32:07:396 notice     plugin/load    Plugin disabled (default): 
oddbuf_plugin.so
2020/12/07 01:32:07:396 notice     plugin/load    Loaded plugin: 
perfmon_plugin.so (Performance Monitor)
2020/12/07 01:32:07:396 notice     plugin/load    Loaded plugin: ping_plugin.so 
(Ping (ping))
2020/12/07 01:32:07:396 notice     plugin/load    Loaded plugin: 
pppoe_plugin.so (PPP over Ethernet (PPPoE))
2020/12/07 01:32:07:396 notice     plugin/load    Plugin disabled (default): 
quic_plugin.so
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: rdma_plugin.so 
(RDMA IBverbs Device Driver)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
srv6ad_plugin.so (Dynamic Segment Routing for IPv6 (SRv6) Proxy)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
srv6am_plugin.so (Masquerading Segment Routing for IPv6 (SRv6) Proxy)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
srv6as_plugin.so (Static Segment Routing for IPv6 (SRv6) Proxy)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
srv6mobile_plugin.so (SRv6 GTP Endpoint Functions)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: stn_plugin.so 
(VPP Steals the NIC (STN) for Container Integration)                            
                                                  
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: svs_plugin.so 
(Source Virtual Routing and Fowarding (VRF) Select)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
tlsmbedtls_plugin.so (Transport Layer Security (TLS) Engine, Mbedtls Based)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
tlsopenssl_plugin.so (Transport Layer Security (TLS) Engine, OpenSSL Based)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
tlspicotls_plugin.so (Transport Layer Security (TLS) Engine, Picotls Based)
2020/12/07 01:32:07:397 notice     plugin/load    Loaded plugin: 
tracedump_plugin.so (Streaming packet trace dump plugin)
2020/12/07 01:32:07:398 notice     plugin/load    Plugin disabled (default): 
unittest_plugin.so
2020/12/07 01:32:07:398 notice     plugin/load    Loaded plugin: urpf_plugin.so 
(Unicast Reverse Path Forwarding (uRPF))
2020/12/07 01:32:07:398 notice     plugin/load    Loaded plugin: 
vmxnet3_plugin.so (VMWare Vmxnet3 Device Driver)
2020/12/07 01:32:07:398 notice     plugin/load    Loaded plugin: vrrp_plugin.so 
(VRRP v3 (RFC 5798))
2020/12/07 01:32:07:398 notice     plugin/load    Loaded plugin: 
wireguard_plugin.so (Wireguard Protocol)
2020/12/07 01:32:07:530 notice     dhcp/client    plugin initialized
2020/12/07 01:32:07:569 warn       dpdk           EAL init args: -c 2 -n 4 
--in-memory --file-prefix vpp -w 0000:02:07.0 --master-lcore 1 
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
rdma_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
ioam_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
lacp_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
nsim_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
nat_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
nsh_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
vmxnet3_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
flowprobe_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
vrrp_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
gtpu_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
ct6_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
stn_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
cdp_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
memif_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
pppoe_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
ikev2_test_plugin.so
2020/12/07 01:32:08:571 notice     vat-plug/load  Loaded plugin: 
dns_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
http_static_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
acl_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
avf_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
mdata_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
tlsopenssl_test_plugin.so
2020/12/07 01:32:08:572 err        vat-plug/load  vat_plugin_register: oddbuf 
plugin not loaded...
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
lb_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
mactime_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
builtinurl_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
adl_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
tracedump_test_plugin.so
2020/12/07 01:32:08:572 notice     vat-plug/load  Loaded plugin: 
dhcp_test_plugin.so
2020/12/07 01:32:08:572 notice     dpdk           EAL: Detected 4 lcore(s)
2020/12/07 01:32:08:572 notice     dpdk           EAL: Detected 1 NUMA nodes
2020/12/07 01:32:08:572 notice     dpdk           EAL: Selected IOVA mode 'PA'
2020/12/07 01:32:08:572 notice     dpdk           EAL: No available hugepages 
reported in hugepages-1048576kB
2020/12/07 01:32:08:572 notice     dpdk           EAL: No free hugepages 
reported in hugepages-1048576kB
2020/12/07 01:32:08:572 notice     dpdk           EAL: No available hugepages 
reported in hugepages-1048576kB
2020/12/07 01:32:08:572 notice     dpdk           EAL: Probing VFIO support...  
                                                                                
                                                 
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xa80001000 != 0x7fc840000000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xc00002000 != 0x7fc000000000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xd80003000 != 0x7fb7c0000000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xdc0a64000 != 0x7fb3bfe00000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xdc16c5000 != 0x7fafbfc00000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xdc2326000 != 0x7fabbfa00000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL: WARNING! Base virtual 
address hint (0xdc2f87000 != 0x7fa7bf800000) not respected!
2020/12/07 01:32:08:572 notice     dpdk           EAL:    This may cause issues 
with mapping memory into secondary processes
2020/12/07 01:32:08:572 notice     dpdk           EAL:   Invalid NUMA socket, 
default to 0
2020/12/07 01:32:08:572 notice     dpdk           EAL: Probe PCI driver: 
net_e1000_em (8086:100f) device: 0000:02:07.0 (socket 0)
2020/12/07 01:32:08:572 notice     dpdk           EAL: No legacy callbacks, 
legacy socket not created
2020/12/07 01:32:08:572 notice     dpdk           EAL:   VFIO support not 
initialized
2020/12/07 01:32:08:572 notice     dpdk           EAL: Couldn't map new region 
for DMA
2020/12/07 01:33:14:336 notice     ip/neighbor    add: GigabitEthernet2/7/0, 
172.20.20.2






| |
li.xia
|
|
lxlee_li...@163.com
|
签名由网易邮箱大师定制
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18262): https://lists.fd.io/g/vpp-dev/message/18262
Mute This Topic: https://lists.fd.io/mt/78776493/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