Difference between revisions of "ONE/Simple test setup"

From fd.io
< ONE
Jump to: navigation, search
m
m (Host)
Line 20: Line 20:
 
     ip addr add 6.0.2.2/24 dev veth_vpp1
 
     ip addr add 6.0.2.2/24 dev veth_vpp1
 
     ip route add 6.0.4.0/24 via 6.0.2.1
 
     ip route add 6.0.4.0/24 via 6.0.2.1
 +
"
 +
</pre>
 +
 +
<pre>
 +
ip netns add vpp2
 +
ip link set dev vpp2 up
 +
ip link set dev veth_vpp2 up netns vpp2
 +
ip netns exec vpp2 \
 +
  bash -c "
 +
    ip link set dev lo up
 +
    ip addr add 6.0.4.2/24 dev veth_vpp1
 +
    ip route add 6.0.2.0/24 via 6.0.4.1
 
"
 
"
 
</pre>
 
</pre>

Revision as of 00:11, 6 May 2016

Intro

TBD description

requirements

topology

Setup

Host and vpp configs

Host

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 6.0.2.2/24 dev veth_vpp1
    ip route add 6.0.4.0/24 via 6.0.2.1
"
ip netns add vpp2
ip link set dev vpp2 up
ip link set dev veth_vpp2 up netns vpp2
ip netns exec vpp2 \
  bash -c "
    ip link set dev lo up
    ip addr add 6.0.4.2/24 dev veth_vpp1
    ip route add 6.0.2.0/24 via 6.0.4.1
"

vpp 1

interface

create host-interface name vpp1
set int state host-vpp1 up
set int ip address host-vpp1 6.0.2.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

vpp 2

interface

create host-interface name vpp2
set int state host-vpp2 up
set int ip address host-vpp2 6.0.4.1/24

lisp config

set int ip address GigabitEthernet2/4/0 6.0.4.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.4.0/24 locator-set ls1
lisp map-resolver add 6.0.3.100