0% found this document useful (0 votes)
15 views3 pages

SDN1

Uploaded by

Rohit Moon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

SDN1

Uploaded by

Rohit Moon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SDN 1

Invoke Mininet using the default topology


Step 1. Launch a Linux terminal by holding the Ctrl+Alt+T keys or by clicking on the Linux
terminal icon.
Step 2. To start a minimal topology, enter the command shown below. When prompted for a
password, type password and hit enter. Note that the password will not be visible as you type it.
$sudo mn

The above command starts Mininet with a minimal topology, which consists of a switch
connected to two hosts as shown below.

Figure 4. Mininet’s default minimal topology

When issuing the sudo mn command, Mininet initializes the topology and launches
itscommand line interface which looks like this:
mininet>
Step 3. To display the list of Mininet CLI commands and examples on their usage, type
theThe following command:
help
Step 4. To display the available nodes, type the following command:

nodes

Step 5. It is useful sometimes to display the links between the devices in Mininet
tounderstand the topology. Issue the command shown below to see the available links.

Test connectivity

h1 ping h2
Mininet>dump: This command shows the dump information about all nodes available
in the currentMininet network.

Creation of Topologies in mininet;

Linear topology
In mininet we have various topologies like minimal, single, reversed, linear, tree topologyetc.

• Minimal/ Simple: It is the most basic topology with two hosts and one
switch. To runminimal topology
we simply run the following command in the terminal
window i.e.
Sudo mn --topo minimal

• Single Topology: It is the simple topology with one switch and N hosts.
To run thistopology we
run following command in terminal window i.e.
Sudo mn – topo single,3

• Reversed Topology: It is similar to the single connection but order of connection


betweenhosts and switch is reversed. To run reversed topology we use the command in
terminal window i.e.
Sudo mn –topo reversed,3

You might also like