Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Software-Defined Networking with OpenFlow

You're reading from   Software-Defined Networking with OpenFlow Deliver innovative business solutions

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781783984282
Length 246 pages
Edition 2nd Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Oswald Coker Oswald Coker
Author Profile Icon Oswald Coker
Oswald Coker
SIAMAK AZODOLMOLKY SIAMAK AZODOLMOLKY
Author Profile Icon SIAMAK AZODOLMOLKY
SIAMAK AZODOLMOLKY
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Net App 5 – simple router using Ryu controller


In the section, we would be simulating a router so that we add and delete routes or address for each switch and verify communication across them.

For this, we shall be using the following topology:

The preceding topology is a linear topology with the host, and we want the MAC to be automatically assigned. In addition to this, the scenario is implemented with the OpenFlow version 1.3 with a remote controller. Also, the rest_router.py file is going to be used for the scenario. This can be found in the ryu/ryu/app/rest_router.py directory.

Creating the topology on Mininet

We will begin this topology with the following command:

sudo mn --topo linear,2 --mac --switch ovsk,protocols=OpenFlow13 --controller remote

IP address configuration on the hosts

Next, we would be editing the IP addresses of the host in accordance with the preceding topology. This can be achieved by deleting the default IP assigned to the host (10.0.0.1):

mininet>h1 ip addr del 10...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime