Difference between revisions of "VPP Sandbox/vpp-userdemo"

From fd.io
Jump to: navigation, search
Line 1: Line 1:
 
= INTRO =
 
= INTRO =
  
This is a Vagrant based user demo environment for beginners with VPP
+
This is a GUI driven demo environment for beginners with VPP
  
The demo requires NodeJS installed on the host (today - we are working dilligently to keep this "all in the VM")
 
  
You then do the following:
 
 
- install nodeJS from nodejs.org/en/download/ for you host distribution
 
 
- from folder vpp-userdemo/gui/backend:
 
 
  '''npm install'''
 
 
- from folder vpp-userdemo/gui:
 
 
  '''NODE_ENV=production node backend/server.js'''
 
 
It walks a user through
 
- each of the commands,
 
- the expected output,
 
- gives a file of the commands used to try themselves
 
  
 
= REQUIREMENTS =
 
= REQUIREMENTS =
Line 31: Line 14:
 
- by default the VM uses 2 x CPUs and 4G RAM
 
- by default the VM uses 2 x CPUs and 4G RAM
 
- ```vagrant up```
 
- ```vagrant up```
- ... run the demo
+
- point browser to localhost:5000
  
 
= RUNNING DEMOs =
 
= RUNNING DEMOs =
- From the Host, where you ran ```vagrant up``` run ```./run <demoname>```
+
Select from
 
+
* bridging
```./run <demoname>```
+
* routing
 +
* tracing
  
= DEMOs =
+
On the left menu, and click next.
  
== routing - directly connected routing ==
+
Output from VPP is displayed in a "terminal" style window.
- Creates two network namespaces c1, c2
+
- A gateway interface for each on VPP
+
- Routes due to directly connected routes inserted into default FIB
+
  
== bridging - directly connected interfaces into a bridge-domain ==
+
Commands can be copied to the clipboard for you try yourself.
- Creates two network namespaces c1, c2
+
- Adds interfaces to VPP and add them to bridge-domain 1
+
- MAC addresses are automatically learned
+
  
== tracing - how to show a "day in the life of a packet" in VPP ==
+
[[File:https://www.dropbox.com/s/dauwmtmu2a6949j/Screenshot%202016-09-15%2019.27.36.png]]
- Same environment as "routing" demo
+
- How to add a trace
+
- View a trace
+
- Interpret a trace
+

Revision as of 02:30, 16 September 2016

INTRO

This is a GUI driven demo environment for beginners with VPP


REQUIREMENTS

- vagrant (1.8) - virtualbox / vmware fusion

GETTING STARTED

- clone the repo - modify env.sh if needed and ```source ./env.sh``` - by default the VM uses 2 x CPUs and 4G RAM - ```vagrant up``` - point browser to localhost:5000

RUNNING DEMOs

Select from

  • bridging
  • routing
  • tracing

On the left menu, and click next.

Output from VPP is displayed in a "terminal" style window.

Commands can be copied to the clipboard for you try yourself.

File:Https://www.dropbox.com/s/dauwmtmu2a6949j/Screenshot 2016-09-15 19.27.36.png