Difference between revisions of "ONE/Simple test setup"
From fd.io
< ONE
Florin.coras (Talk | contribs) (Created page with "<pre> # 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 "...") |
Florin.coras (Talk | contribs) m |
||
| Line 1: | Line 1: | ||
| + | Create namespace and set up interface in linux | ||
| + | |||
<pre> | <pre> | ||
| − | |||
ip netns add vpp1 | ip netns add vpp1 | ||
ip link set dev vpp1 up | ip link set dev vpp1 up | ||
| Line 10: | Line 11: | ||
ip route add 172.16.2.0/24 via 172.16.1.1 | ip route add 172.16.2.0/24 via 172.16.1.1 | ||
" | " | ||
| + | </pre> | ||
| + | |||
| + | === vpp 1 === | ||
| + | interface | ||
| + | |||
| + | <pre> | ||
| + | create host-interface name vpp1 | ||
| + | set int state host-vpp1 up | ||
| + | set int ip address host-vpp1 172.16.1.1/24 | ||
| + | </pre> | ||
| + | |||
| + | lisp config | ||
| + | |||
| + | <pre> | ||
| + | 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 | ||
</pre> | </pre> | ||
Revision as of 23:39, 5 May 2016
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