ONE/Command-line Interface CLI Guide

From fd.io
< ONE
Revision as of 17:56, 11 May 2016 by Florin.coras (Talk | contribs)

Jump to: navigation, search

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 enable

To enable lisp, use "lisp":

vpp# lisp enable

To disable lisp

vpp# lisp disable

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

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