Now rather than configuring switch to manually, I've created the script that accomplishes the same
thing.
So tap enable conf to change the host name to switch to shut down any unused interfaces.
So gigabit 1/123 gigabit 2/023 gigabit 3/023 will change the mode to transparent and then configure
the VLANs on the switch.
So I'll simply copy that config.
Go to the console of switch two.
So iOS vl2 hyphen to the switch and then I'll paste that config in.
Interfaces have gone down.
So as you can see, the host name of the switch has changed.
Previously it was called switch, but now it's switched to show VLAN.
Brief shows me VLAN ten and 20 show http status shows me that this switch is configured in transparent
mode.
Show IP interface brief.
Shows me that all unused interfaces have been shut down.
Show Run will allow me to see the full config of the switch.
So as an example, here you can see the VLANs that were configured.
You can see that ports have been shut down.
Now, what I didn't do on the previous switch is save the config.
So let's save the config on both these switches before we go any further.
So on switch one, I've saved the config and on switch two, I've saved it.
You can see that the configuration was compressed and has been saved successfully.
So shows start up.
Config shows me the configuration that we saved.
As you can see here shows startup and we're using so many bytes out of so many bytes.
Last configuration change was made on the 5th of July.
Now for switch three.
What do we need to configure here?
Well, we need to change the switch name.
We need to shut down any unused interfaces.
Under this switch we are only using interfaces gigabyte 0001 and zero two.
So gigabit zero three is not being used so that interface can be shut down and then any other interfaces
on the switch can be shut.
Now it's a good idea just to confirm the interfaces on the switch.
So show IP interface brief.
Shows me the various interfaces.
So the only interfaces that we need are 0001 and zero two.
Those three interfaces.
All other interfaces on the switch can be shut down, and that's what we're going to do through this
config.
I'm also going to enable the switches of transparent switch and configure VLANs ten and 20.
So let's paste that config in.
Top End.
And then I'll save the config.
Now for CNA.
You would be expected to know the full command copy running config.
Startup config.
And then press enter to save the configuration to the startup config.
But for the real world, war is the old command.
That saves a lot of time and it doesn't prompt you to specify where you want to save the file.
It simply saves it to the startup config.
So that's a lot quicker and hence we're using that here.
So we've configured switch three, let's configure switch for switch over here.
So this will be exactly the same as switch three same interfaces gigabyte 0001 and zero two will be
used.
All other interfaces will be shut down and we'll configure VLAN ten and 20 onto that switch.
Now you might say that you don't actually need a VLAN ten on the switch because we only have hosts in
VLAN 20 connected to the switch and that would be correct.
But I'm going to keep the VLANs consistent on all my switches because we may want to add a host in VLAN
ten to the switch and a host in VLAN 20 to the switch.
So copy the config.
Go to the console of switch four.
So notice four and then paste it in.
Control Z or control Z, save the config.
So we've configured the links on the switches, configured the names of the switches.
We now need to configure the routers.
So on router one and I'll just do this manually because it'll be quick.
Rather one is just booted and we've got the initial system configuration dialog asking us whether we
want to enter that.
I'm going to say no, I'm going to manually configure the router, so I don't want to go through the
initial configuration dialog in this example and I press return to continue.
You can see various interfaces are coming up.
So top enable conf tt interface if 0/0.
Now before I configure interfaces, notice when I type do show IP interface brief on the router.
Router interfaces are administratively down by default unlike switch interfaces, so I don't need to
disable interfaces.
What I need to do is enable the interface.
Before I enable the interface, I'll configure the IP address of this router.
So I'll configure this 10.1, 10.11 with a subnet mask of slash 24 and then I'll no shut the interface
of the router.
I also need to configure the name, so I'm just going to configure that as router one and then save
the config.
So all I've done is know shut the interface and configure an IP address on Fost Ethernet zero zero on
router one on router two will do something similar.
So we'll bypass the initial configuration dialog press enter to continue.
Top enable top tx change the name of the strata to route A to go into the first Ethernet interface.
No, shut it and give it an IP address.
Of 10.1 to 20.12.
And Slash 24 Mosk show IP interface brief.
That IP address is configured and the interface is up, up.
Save the config.
The lost device to configure initially is router three.
Here it is.
It's already been configured with the hostnames interface brief.
Interfaces all shut down.
So on first Ethernet zero zero, I'm going to shut it.
And in this case I'll give it an IP address of ten .1. 102.253.
We'll use 2544 HSP later, so I'll configure an IP address on this interface of ten.
So at 1.102 five three.
So that's the IP address of router three on fast Ethernet zero zero interfaces up going to the Fost
Ethernet zero one interface that interfaces currently down and hasn't got an IP address assigned to
it.
So rather than configuring the IP address manually, I'm going to type IP address DHCP so that it gets
an IP address from my local physical network.
And when I no shut the interface, what we should see in a moment is that it gets an IP address through
DHCP.
At the moment we still waiting for an address to be assigned, but there you go.
This address, 1921681 128 has been assigned via DHCP to router three.
So show IP interface brief once again, notice IP address is configured on this interface that was allocated
via my local DHCP server, which is actually my DSL router here at home.
I'll save the config.
So we have an IP address configured on Fost Ethernet zero zero and we have an IP address configured
on Fost Ethernet zero one.
What I haven't done is configure IP addresses on the switches.
So let's do that.