User Guide
47
8. L2Switch
Table of Contents
Running the L2Switch project ........................................................................................ 47
Create a network using mininet .................................................................................... 47
Generating network traffic using mininet ...................................................................... 48
Checking Address Observations ..................................................................................... 48
Checking Hosts .............................................................................................................. 48
Checking STP status of each link .................................................................................... 49
Miscellaneous mininet commands .................................................................................. 50
Components of the L2Switch ........................................................................................ 50
Configuration of L2Switch Components ......................................................................... 51
The L2Switch project provides Layer2 switch functionality.
Running the L2Switch project
Check out the project using git
git clone https://git.opendaylight.org/gerrit/p/l2switch.git
The above command will create a directory called "l2switch" with the project.
Run the distribution
To run the base distribution, you can use the following command
./distribution/base/target/distributions-l2switch-base-0.1.0-SNAPSHOT-
osgipackage/opendaylight/run.sh
If you need additional resources, you can use these command line arguments:
-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m'
To run the karaf distribution, you can use the following command:
./distribution/karaf/target/assembly/bin/karaf
Create a network using mininet
sudo mn --controller=remote,ip=<Controller IP> --topo=linear,3 --switch
ovsk,protocols=OpenFlow13
sudo mn --controller=remote,ip=127.0.0.1 --topo=linear,3 --switch
ovsk,protocols=OpenFlow13
The above command will create a virtual network consisting of 3 switches. Each switch will
connect to the controller located at the specified IP, i.e. 127.0.0.1
Содержание Opendaylight
Страница 1: ...User Guide ...
Страница 2: ...User Guide ii User Guide ...
Страница 27: ...Part II Addons This second part of the user guide covers project specific usage instructions ...