Hi

I am setting up manually-keyed IPSec connections between VPP and Ubuntu as 
explained on WiKi page "VPP/IPSec and IKEv2".

For that i am trying to setup connectivity between VPP and ubuntu.

I have followed below steps
1) I am using interface eth0 for VPP
2) Setup ipaddress for VPP interface af_packet0
3) Ping VPP interface ip address from ubuntu.

Ping from ubuntu to VPP interface ipaddress is not working.

Once this pings works i will setup security association and security policy for 
IPSec connection.

Below is o/p of commands i have tried.

Any help on this issue is greatly appreciated.

vppuser@vppuser-VirtualBox:~/Projects/vpp$
vppuser@vppuser-VirtualBox:~/Projects/vpp$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:4a:a2:c6
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe4a:a2c6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2472 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:265521 (265.5 KB)  TX bytes:235978 (235.9 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:24:68:4c
          inet addr:10.0.3.15  Bcast:10.0.3.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe24:684c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:133 errors:0 dropped:0 overruns:0 frame:0
          TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17031 (17.0 KB)  TX bytes:30349 (30.3 KB)

eth2      Link encap:Ethernet  HWaddr 08:00:27:a4:96:b1
          inet addr:10.0.4.15  Bcast:10.0.4.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fea4:96b1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1180 (1.1 KB)  TX bytes:13773 (13.7 KB)

eth3      Link encap:Ethernet  HWaddr 08:00:27:67:87:b0
          inet addr:10.0.5.15  Bcast:10.0.5.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe67:87b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1180 (1.1 KB)  TX bytes:13773 (13.7 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:666 errors:0 dropped:0 overruns:0 frame:0
          TX packets:666 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:64818 (64.8 KB)  TX bytes:64818 (64.8 KB)

vppuser@vppuser-VirtualBox:~/Projects/vpp$
vppuser@vppuser-VirtualBox:~/Projects/vpp$
vppuser@vppuser-VirtualBox:~/Projects/vpp$ cat startup.conf
 unix { interactive exec /home/vppuser/Projects/vpp/vpp.cmd cli-listen 
127.0.0.1:5002 }  api-segment { uid vppuser gid vppuser }
dpdk {
   no-pci
   vdev eth_af_packet0,iface=eth0
}
vppuser@vppuser-VirtualBox:~/Projects/vpp$
vppuser@vppuser-VirtualBox:~/Projects/vpp$
vppuser@vppuser-VirtualBox:~/Projects/vpp$ sudo make 
STARTUP_CONF=~/Projects/vpp/startup.conf STARTUP_DIR=~/Projects/vpp/ run
vlib_plugin_early_init:213: plugin path 
/home/vppuser/Projects/vpp/build-root/install-vpp-native/plugins/lib64/vpp_plugins
load_one_plugin:92: Loaded plugin: 
/home/vppuser/Projects/vpp/build-root/install-vpp-native/plugins/lib64/vpp_plugins/ioam_pot_plugin.so
load_one_plugin:92: Loaded plugin: 
/home/vppuser/Projects/vpp/build-root/install-vpp-native/plugins/lib64/vpp_plugins/snat_plugin.so
load_one_plugin:92: Loaded plugin: 
/home/vppuser/Projects/vpp/build-root/install-vpp-native/plugins/lib64/vpp_plugins/ila_plugin.so
load_one_plugin:92: Loaded plugin: 
/home/vppuser/Projects/vpp/build-root/install-vpp-native/plugins/lib64/vpp_plugins/lb_plugin.so
EAL: Detected 1 lcore(s)
PMD: Initializing pmd_af_packet for eth_af_packet0
PMD: eth_af_packet0: AF_PACKET MMAP parameters:
PMD: eth_af_packet0:     block size 4096
PMD: eth_af_packet0:     block count 256
PMD: eth_af_packet0:     frame size 2048
PMD: eth_af_packet0:     frame count 512
PMD: eth_af_packet0: creating AF_PACKET-backed ethdev on numa socket 0
PMD: bnxt_rte_pmd_init() called for (null)
DPDK physical memory layout:
Segment 0: phys:0x9f400000, len:2097152, virt:0x2ae8fda00000, socket_id:0, 
hugepage_sz:2097152, nchannel:0, nrank:0
Segment 1: phys:0x9f800000, len:266338304, virt:0x2ae8fdc00000, socket_id:0, 
hugepage_sz:2097152, nchannel:0, nrank:0
    _______    _        _   _____  ___
 __/ __/ _ \  (_)__    | | / / _ \/ _ \
_/ _// // / / / _ \   | |/ / ___/ ___/
/_/ /____(_)_/\___/   |___/_/  /_/

vpp# unknown input `...'

vpp#
vpp# show interface
              Name               Idx       State          Counter          Count
af_packet0                        1        down
local0                            0        down
vpp# set int ip address af_packet0 10.0.2.16/24
vpp# set int state af_packet0 up
vpp# set ip arp  af_packet0 10.0.2.15 08:00:27:4a:a2:c6
vpp#
vpp# show int address
af_packet0 (up):
  10.0.2.16/24
local0 (dn):
vpp#
vpp# show interface
              Name               Idx       State          Counter          Count
af_packet0                        1         up       rx packets                 
   18
                                                     rx bytes                   
 1086
                                                     tx packets                 
   12
                                                     tx bytes                   
  504
                                                     drops                      
    6
                                                     ip4                        
    3
                                                     ip6                        
    3
local0                            0        down
vpp#



From different window
+++++++++++++++++++++++++
vppuser@vppuser-VirtualBox:~$ ping -c 2 10.0.2.16
PING 10.0.2.16 (10.0.2.16) 56(84) bytes of data.
From 10.0.2.15 icmp_seq=1 Destination Host Unreachable
From 10.0.2.15 icmp_seq=2 Destination Host Unreachable

--- 10.0.2.16 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms
pipe 2
vppuser@vppuser-VirtualBox:~$

Thanking in advance...

Regards,
Pravin AJ

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to