Difference between revisions of "ONE/Simple test setup"

From fd.io
< ONE
Jump to: navigation, search
m
m
Line 4: Line 4:
 
== topology ==
 
== topology ==
  
=== Configs ====
+
=== Setup ===
 +
 
 +
Host and vpp configs
  
 
== Host ==
 
== Host ==
Line 16: Line 18:
 
   bash -c "
 
   bash -c "
 
     ip link set dev lo up
 
     ip link set dev lo up
     ip addr add 172.16.1.2/24 dev veth_vpp1
+
     ip addr add 6.0.2.2/24 dev veth_vpp1
     ip route add 172.16.2.0/24 via 172.16.1.1
+
     ip route add 6.0.4.0/24 via 6.0.2.1
 
"
 
"
 
</pre>
 
</pre>
Line 27: Line 29:
 
create host-interface name vpp1
 
create host-interface name vpp1
 
set int state host-vpp1 up
 
set int state host-vpp1 up
set int ip address host-vpp1 172.16.1.1/24
+
set int ip address host-vpp1 6.0.2.1/24
 
</pre>
 
</pre>
  
Line 43: Line 45:
 
lisp locator-set add ls1 iface GigabitEthernet2/5/0 p 1 w 1
 
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 eid-table add eid 6.0.2.0/24 locator-set ls1
 +
lisp map-resolver add 6.0.3.100
 +
</pre>
 +
 +
== vpp 2 ==
 +
interface
 +
 +
<pre>
 +
create host-interface name vpp2
 +
set int state host-vpp2 up
 +
set int ip address host-vpp2 6.0.4.1/24
 +
</pre>
 +
 +
lisp config
 +
 +
<pre>
 +
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
 
lisp map-resolver add 6.0.3.100
 
</pre>
 
</pre>

Revision as of 23:46, 5 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
"

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