Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
3465c9ea
Commit
3465c9ea
authored
15 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Updated to reflect changes and include 2.6.33 patch.
parent
ed097b3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTALL
+44
-5
44 additions, 5 deletions
INSTALL
README
+7
-7
7 additions, 7 deletions
README
with
51 additions
and
12 deletions
INSTALL
+
44
−
5
View file @
3465c9ea
...
...
@@ -3,19 +3,25 @@ Preliminary Mininet Installation/Configuration Notes
- This is not (yet) a 'release'; things may be broken.
- These installation notes assume you understand how to do things
like compile kernels, apply patches, configure networks, write code,
etc.. If this is unfamiliar territory, we recommend using one of
our pre-built virtual machine images.
- To install mininet, with root privileges:
python setup.py install
#
python setup.py install
This places the mininet package in /usr/lib/python-2.5/site-packages/,
so that 'import mininet' will work.
so that 'import mininet' will work, and installs the primary mn
script (mn) as well as its helper utility (mnexec.)
- Mininet requires a kernel built with support for the CLONE_NETNS unshare
flag by default
.
flag by default
(i.e. with CONFIG_NET_NS turned on.)
If your kernel doesn't support it, you will need to build and install a
kernel that does!
If you are using Open vSwitch, 2.6.33 works best. For
the reference kernel switch, 2.6.30 should be compatible.
kernel that does!
>= 2.6.33 works best, although the reference kernel
switch requires a small patch to compile with it (see below.)
- Mininet should probably be run either on a machine with
no other important processes, or on a virtual machine.
...
...
@@ -37,6 +43,9 @@ Preliminary Mininet Installation/Configuration Notes
recent one with full NOX support):
git checkout -b release/0.8.9 remotes/origin/release/0.8.9
To compile for LInux 2.6.33, you may need to apply the patch
included below.
If you want to automatically load the kernel modules required
for OpenFlow, you could add something like the following to
...
...
@@ -62,3 +71,33 @@ Preliminary Mininet Installation/Configuration Notes
sudo sysctl -p
---
patch to OpenFlow reference implementation datapath/datapath.c to compile
under linux 2.6.33:
diff --git a/datapath/datapath.c b/datapath/datapath.c
index 4a4d3a2..365aa25 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -47,6 +47,9 @@
#include "compat.h"
+#ifdef CONFIG_NET_NS
+#include <net/net_namespace.h>
+#endif
/* Strings to describe the manufacturer, hardware, and software. This data
* is queriable through the switch description stats message. */
@@ -259,7 +262,11 @@
send_openflow_skb(const struct datapath *dp,
struct sk_buff *skb, const struct sender *sender)
{
return (sender
- ? genlmsg_unicast(skb, sender->pid)
+#ifdef CONFIG_NET_NS
+ ? genlmsg_unicast(&init_net, skb, sender->pid)
+#else
+ ? genlmsg_unicast(skb, sender->pid)
+#endif
: genlmsg_multicast(skb, 0, dp_mc_group(dp), GFP_ATOMIC));
}
This diff is collapsed.
Click to expand it.
README
+
7
−
7
View file @
3465c9ea
...
...
@@ -3,7 +3,7 @@
aka
How to Squeeze a 1024-node OpenFlow Network onto your Laptop
Development
Release
, March 2010
Development
Version
, March 2010
---
...
...
@@ -15,9 +15,9 @@ datapath) are created as processes in separate network namespaces. This
allows a complete OpenFlow network to be simulated on top of a single
Linux kernel.
Although
Mininet may be invoked directly from the command line,
it
also
incorporat
es a handy Python API
, in the form of classes and functions
which enable creation of OpenFlow networks of varying sizes and
topologies.
Mininet may be invoked directly from the command line,
and
also
provid
es a handy Python API
for creating networks of varying sizes and
topologies.
In order to run Mininet, you must have:
...
...
@@ -33,7 +33,7 @@ In order to run Mininet, you must have:
* Root privileges (required for network device access)
Currently
m
ininet includes:
Currently
M
ininet includes:
- A simple node infrastructure (Host, Switch, Controller classes) for
creating virtual OpenFlow networks
...
...
@@ -42,7 +42,7 @@ Currently mininet includes:
topologies (Topo subclasses.) For example, a tree network may be created
with the command
# mn --topo tree,depth=2,fanout=
=
3
# mn --topo tree,depth=2,fanout=3
- Basic tests, including connectivity (ping) and bandwidth (iperf)
...
...
@@ -60,7 +60,7 @@ Currently mininet includes:
# mn -c
- Examples (in examples/ directory) to help you get started.
- Examples (in
the
examples/ directory) to help you get started.
Batteries are not included (yet!)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment