So we've been able to automate a single device.
Now let's extend the genus 3 typology and add multiple switches to the topology and automate multiple
switches at the same time in the same way as I've done with previous laps.
I'm going to start off with a simple script and then iterate to try and make it more complex as we go
through the various labs.
So let's add five switches to the topology I'll make this switch to.
This can be switch three switch for switch 5 and switch 6.
Now if you don't want to watch me build this topology.
Skip ahead to the next video when I created the Python scripts in this initial video I'm going to be
building the genius suite topology.
So if you don't want to watch me do that then jump ahead.
Let's assume in the network that we are using an olive band management network.
It's a good idea to use an out-of-band management network when using network automation.
The problem using an in-band management network is that you can have issues where spanning tree and
other protocols can block links and thus stop your scripts communicating with your network devices.
So in this typology these links to switch one part of the management network and the other links between
the network devices.
Our data network assume for example in this typology that to switch to in switch three our call switches
and that switch for 5 and 6 or access switches in the June 3 topology and that the links to switch 1
all the management links all the links in the management network.
Now you can make those topology look pretty.
I'm not too concerned about doing that.
I'm more concerned about making sure that we can automate the network.
So this is our new genius 3 topology.
We have five new switches which all start up.
We've got our original switch switch one and our router wrote a one.
So what we're going to do is use the network automation container to automate these and network devices.
Again if you don't want to watch me build of the network skip ahead.
You can also download the attached a genus 3 topology which will make it a lot easier for you to follow
along.
Now to speed things up I'm going to copy the configuration from each one.
So on switch one I want to copy the scene from mission
we want to configure a user name and password.
I also want to configure an IP address on the switch
and I want to configure the Viti Why lines so switch to another topology.
I'm going to make one on 2 1 6 8 122 82.
So the hostname for first additional switch will be switched to because of first switch has the name
switch one copy that open up a console to the switch.
So here's the switch I'll Peyster that configuration in what I should have done is no shut the land
one so no here.
So
back in the console of switch to oh no shut up.
Vigeland One so show i.p interface brief
interfaces up on the network automation container.
Can we ping 1 9 2 1 6 8 122 82.
Yes we can.
Can we telnet to 2 1 9 2 1 6 8 122 82.
Yes we can and we can log in switch to configure it.
So what I'll do is open up console's to the other switches
and lets configure switch three
so he has three naval confetti he has our configuration hostname is going to be host 3 IP address is
going to be 1 9 2 1 6 8 1 22 eighty three so Peyster is that configuration in and save the configuration
on the network automation container.
Can we ping 83.
Yes we can.
Can we tell that to 83.
Yes we can.
So we can get to switch 3 Siddall will be configured with IP address 84 copy the configuration
page to that in to switch file and to save the configuration
on the network automation container.
Can we paying switch for.
Yes we can.
Can we tell it to switch for rather 84.
Yes we can.
So we can also access switch for switch 5
to the config as follows.
It will have an IP address of 85 so on the switch 5 Peyster or the configuration in
on or the network automation container can we telnet to switch 5.
Yes we can.
So switch 5 is working switch 6
or Peyster is the configuration in
can we telnet to switch 6.
Yes we can so I made a mistake.
So on the side let's clear line to
the line is being disconnected.
But again we can ping 1 2 1 6 8 1 22 72 that switch 1 82 switch to 83 switch 3 84 switch for 85 is switch
5 86 is switch 6.
Ok so we built the network.
We've proven that we have connectivity from the network automation container to the switches in the
network.
Now lets automate the network.