ONE/Simple test setup

From fd.io
< ONE
Revision as of 23:39, 5 May 2016 by Florin.coras (Talk | contribs)

Jump to: navigation, search

Create namespace and set up interface in linux

ip netns add vpp1
ip link set dev vpp1 up
ip link set dev veth_vpp1 up netns vpp1
ip netns exec vpp1 \
  bash -c "
    ip link set dev lo up
    ip addr add 172.16.1.2/24 dev veth_vpp1
    ip route add 172.16.2.0/24 via 172.16.1.1
"

vpp 1

interface

create host-interface name vpp1
set int state host-vpp1 up
set int ip address host-vpp1 172.16.1.1/24

lisp config

set int ip address GigabitEthernet2/4/0 6.0.2.1/24
set int state GigabitEthernet2/4/0 up

set int ip address GigabitEthernet2/5/0 6.0.3.1/24
set int state GigabitEthernet2/5/0 up

lisp gpe enable

lisp locator-set add ls1 iface GigabitEthernet2/5/0 p 1 w 1
lisp eid-table add eid 6.0.2.0/24 locator-set ls1
lisp map-resolver add 6.0.3.100