Install
This tutorial explain how to install the P4D-GUI
Requirements:
The P4Docker demands minimal resources for its operation, with the computational and memory requirements contingent upon the complexity of the user-defined network topology. For executing the tutorials documented herein, a basic computational setup comprising a single CPU and 4GB of RAM suffices, underscoring the tool's efficiency and accessibility for educational and experimental purposes in network design and simulation.
Installation Method 1:
Requirements:
Nodejs and NPM
Docker
Curl
Git
Ubuntu 18 or newer
Download or copy the installation script (install.sh) from the P4D-GUI repository:
Give execution permission
$ chmod +x install.sh
Execute the code
$ ./install.sh
The code will upgrade the system, install all the dependencies, and clone the repository to the P4Docker directory. After the installation, access the directory P4Docker and start the server:
$ cd P4Docker
$ node app.js
Open your web browser with <ip>:3000 , if running at the default port. You can access the P4D-GUI at the local machine with the address localhost:3000
Method 2:
Requirements:
VirtualBox
Download the P4Docker ova image https://drive.google.com/file/d/1BU-LGeaMMpN9443RQxp0BIy23iCflg3Y/view?usp=sharing Follow these steps to import the ova image:
At the Virtual Box click on File > Import Appliance
At the "Import appliance" window, select as the "Source" "local filesystem" and in "File" select the ova image and click in Next
You can keep the VM configuration on default or change the resources and directory where the data will be stored. After checking the information, click on Finish
Wait for VirtualBox to finish the import and start the VM
The ova image default user and password is "p4d".
The P4Docker is implemented as a service, so as soon as you turn the machine on, the service will be available at localhost:3000
Last updated