Difference between revisions of "ONE/Command-line Interface CLI Guide"

From fd.io
< ONE
Jump to: navigation, search
(Introduction)
(Telnet LISP CLI)
Line 8: Line 8:
 
== Telnet LISP CLI ==
 
== Telnet LISP CLI ==
  
=== Lisp enable ===
+
=== Lisp GPE enable ===
To enable lisp, use "lisp":
+
To enable lisp, use "lisp gpe":
 
<pre>
 
<pre>
vpp# lisp enable
+
vpp# lisp gpe enable
 
</pre>
 
</pre>
  
 
To disable lisp
 
To disable lisp
 
<pre>
 
<pre>
vpp# lisp disable
+
vpp# lisp gpe disable
 +
</pre>
 +
 
 +
To display Lisp status:
 +
<pre>
 +
vat# show lisp status
 +
feature: enabled
 +
gpe: enabled
 
</pre>
 
</pre>
  
Line 36: Line 43:
 
     Locator-set        Locator        Priority        Weight     
 
     Locator-set        Locator        Priority        Weight     
 
     ls1                      6              1              1
 
     ls1                      6              1              1
 +
</pre>
 +
 +
=== Locator ===
 +
To add new locator, use "lisp locator add":
 +
<pre>
 +
vpp# lisp locator add locator-set ls1 iface host-intervpp1 p 1 w 1
 +
</pre>
 +
Where <tt>locator-set</tt> is <tt>locator-set name</tt>, <tt>p</tt> is <tt>priority</tt> and <tt>w</tt> is <tt>weight</tt>.
 +
 +
To delete a specific locator_set, use "lisp locator del"
 +
<pre>
 +
vpp# lisp locator-set del locator-set ls1 iface host-intervpp1 p 1 w 1
 
</pre>
 
</pre>
  
Line 65: Line 84:
 
<pre>
 
<pre>
 
vpp# lisp map-resolver del 6.0.3.100
 
vpp# lisp map-resolver del 6.0.3.100
 +
</pre>
 +
 +
=== Pitr ===
 +
To enable Pitr, use "lisp pitr":
 +
<pre>
 +
vpp# lisp pitr ls ls1
 +
</pre>
 +
Where <tt>ls</tt> is <tt>locator-set name</tt>
 +
 +
To disable Pitr, use:
 +
<pre>
 +
vpp# lisp pitr disable ls ls1
 +
</pre>
 +
 +
To display pitr:
 +
<pre>
 +
vpp# show lisp pitr
 +
    pitr
 +
    disable
 +
</pre>
 +
 +
=== Remote-mapping ===
 +
To add new remote mapping use "lisp remote-mapping add":
 +
<pre>
 +
vpp# lisp remote-mapping add vni 0 eid 6.2.1.0/24 rloc 6.0.1.1
 +
</pre>
 +
Where <tt>vni</vni> is <tt>Virtual Network Identifier</tt>, <tt>eid</tt> is <tt>eid prefix</tt> and <tt>rloc</tt> is <tt>remote locator</tt>
 +
 +
To disable remote mapping, use "lisp remote-mapping del":
 +
<pre>
 +
vpp# lisp remote-mapping del vni 0 eid 6.2.1.0/24
 
</pre>
 
</pre>

Revision as of 08:43, 29 July 2016

Introduction

The vpp contain a set of commands to set and debug LISP. Access VPP's CLI over telnet, assuming cli-listen localhost:5002 is configured under unix{} in the startup.conf, with:

telnet 0 5002

Telnet LISP CLI

Lisp GPE enable

To enable lisp, use "lisp gpe":

vpp# lisp gpe enable

To disable lisp

vpp# lisp gpe disable

To display Lisp status:

vat# show lisp status
feature: enabled
gpe: enabled

Locator_set

To add new locator_set and locator, use "lisp locator-set add":

vpp# lisp locator-set add ls1 iface host-intervpp1 p 1 w 1

Where p is priority and w is weight.

To delete a specific locator_set, use "lisp locator-set del"

vpp# lisp locator-set del ls1

To display locator_set and locator:

vpp# show lisp locator-set
     Locator-set         Locator        Priority         Weight     
     ls1                      6               1               1

Locator

To add new locator, use "lisp locator add":

vpp# lisp locator add locator-set ls1 iface host-intervpp1 p 1 w 1

Where locator-set is locator-set name, p is priority and w is weight.

To delete a specific locator_set, use "lisp locator del"

vpp# lisp locator-set del locator-set ls1 iface host-intervpp1 p 1 w 1

Eid

To add new Eid address, use "lisp eid-table":

vpp# lisp eid-table add eid 6.0.1.0/24 locator-set ls1

To delete a specific eid address, use "lisp eid-table del"

vpp# lisp eid-table del eid 6.0.1.0/24 locator-set ls1

To display eid table:

vpp# show lisp eid-table
         EID             Locator    
6.0.2.0/24                   ls1

Map resolver

To add new map resolver, use "lisp map-resolver":

vpp# lisp map-resolver add 6.0.3.100

To delete a specific map resolver address, use "lisp map-resolver del":

vpp# lisp map-resolver del 6.0.3.100

Pitr

To enable Pitr, use "lisp pitr":

vpp# lisp pitr ls ls1

Where ls is locator-set name

To disable Pitr, use:

vpp# lisp pitr disable ls ls1

To display pitr:

vpp# show lisp pitr
     pitr
    disable

Remote-mapping

To add new remote mapping use "lisp remote-mapping add":

vpp# lisp remote-mapping add vni 0 eid 6.2.1.0/24 rloc 6.0.1.1

Where vni</vni> is <tt>Virtual Network Identifier, eid is eid prefix and rloc is remote locator

To disable remote mapping, use "lisp remote-mapping del":

vpp# lisp remote-mapping del vni 0 eid 6.2.1.0/24