Created
February 28, 2018 05:41
-
-
Save arwankhoiruddin/4c197d9aa7e999dd4a62b41a6b180505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from mininet.cli import CLI | |
from mininet.net import Mininet | |
net = Mininet() | |
h1 = net.addHost('h1') | |
h2 = net.addHost('h2') | |
s1 = net.addSwitch('s1') | |
c0 = net.addController('c0') | |
net.addLink(h1, s1) | |
net.addLink(h2, s1) | |
net.start() | |
CLI(net) | |
net.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment