So let's start with core 1, show interface gigabit
1 0 23
switch port.
So the command here shows us that this interface is enabled as a switch port administer of mode is dynamic
auto.
In other words, it's using DTP but auto rather than desirable operational mode is static access.
In other words it's acting as a access port.
It's currently in VLAN 1.
So interface range and before I do that we can do something similar on other ports such as gigabit 1
0 1.
This port notice it's also an access port.
We can see something similar on gigabit 1 0 2.
It's an access port,
1 0 3 is also an access port so let's do it firstly with the ports down to the access switches so gigabit
1 0 1 2 3 switch port mode trunk.
Notice we told that we need to configure the encapsulation first so we firstly need to use the command
switch port trunk encapsulation dot1q and then we specify the mode as trunk, so do show run we've
essentially typed these two commands on these three ports get into the habit of specifying the encapsulation
first, some switches will require that you specify the encapsulation and that's because some switches
support ISL and 802 dot 1q. Packet Tracer in this example only supports dot1q but you still have
to specify the encapsulation so interface range gigabit 1 0 23 to 24 switch port trunk encapsulation
dot1q switch port mode trunk,
show run they are ports 1 2 and 3 and here are ports 23 and 24 the mode is being configured as trunk on
those ports, we need to do something similar on core 2 notice we're getting spanning tree warnings
about inconsistent ports and that's because core 2 is configured with access ports rather than trunk
ports. So interface range gigabit 1 0 1 2 3 these 3 ports down to the access layer, switch port trunk
encapsulation dot1q switch port mode trunk
show run that configuration looks good.
So interface range gigabit 1 0 23 to 24 switch port trunk encapsulation dot1q switch port mode
trunk.
Show run again,
go down to the end of our config,
these two commands have been configured on interfaces gigabit 1 0 23 and 1 0 24.
That looks great.
We are not gonna configure the link to the server or the router as a trunk port
they will be access ports. Now on access 1 the two uplink ports gigabit 1 0 23 and 1 0
24.
need to be configured as trunk ports. So interface range gigabit
1 0 23 to 24
switch port encapsulation or trunk encapsulation dot 1 q switch port mode
trunk. Show run scroll down
there's our configuration on those two ports so that looks great.
Now we need to do something similar on access switch 2 interface range gigabit 1 0 23
to 24 switch port trunk encapsulation dot1q switch port mode trunk, show run those ports are now
configured as trunk ports, last switch access 3 do something very similar interface range gigabit 1
0 23 to 24 switch port trunk encapsulation dot1q switch port mode trunk,
have a look at the config that looks great.
You'll also notice that I'm constantly saving my configuration.
That's a good habit to get into, save your configuration often in case you have problems.
So we've configured the trunk ports.
Now we need to configure the access ports.
This port needs to be in VLAN 10,
this port in VLAN 20 this port in VLAN 30 this port needs to be in VLAN 100 and this port
will remain in VLAN 1.
So I'll start with access switch 1 show interface gigabit 1 0 1 switch port.
The port is currently in VLAN 1 needs to be in VLAN 10 so interface gigabit
1 1 0 1 switch port mode access that is the default switch port access VLAN 10 show run what do we see
that port is in VLAN 10 so that looks good now to verify show interface gigabit 1 0 1 switch port
this is the best way to verify notice the port gigabit 1 0 1 as we can see with this show command is in
VLAN 10, so that looks good.
Second access switch interface gigabit 1 0 1 switch port mode access switch port access VLAN 20
in this example, show run
port is configured correctly in VLAN 20
the true test however to verify is show interface
gigabit 1 0 1
switch port
and what you'll notice here is an access port in VLAN 20, switch 3 interface gigabit
1 0 1 switch port mode access switch port access VLAN 30 show interface gigabit 1 0 1 switch port this
port as we can see with this show command is in VLAN 30 so that looks great.
Now we need to put the server in the right VLAN interface gigabit 1 0 20 switch port mode access
switch port access VLAN 100 show interface gigabit 1 0 20 switch port, port is now an access
port in VLAN 100 so this port is correctly configured. The last port is on core 2 interface gigabit
1 0 22.
Now before I do anything notice at the moment show run shows us that there's no configuration under
that interface but now switch port mode access switch port access VLAN 1. What is it gonna show
us
once we've done that configuration? Notice it's changed with this option to no negotiate which means
it's disabled DTP, so DTP is being disabled on that access port DTP is still running on this port as
an example, so show interface gigabit 1 0 24 switch port.
Notice negotiation of trunking is on but if we look at port 22 negotiation of trunking is
off so DTP has been disabled on this port because we made it an access port but on the trunk ports DTP
is still enabled. Now in the real world DTP should be turned off you should turn off dynamic trunk protocol
but in this lab, it's okay to use that in the exam make sure that you read the question carefully to
see if you should turn off DTP. Okay, so I've successfully completed this part of the lab how did you
get on?
Were you able to configure hostnames, passwords, VTP, VLANs, trunk ports, and access ports? How did you
get on?
Best way to learn is to practice, try it yourself and then watch me do it if needed.
Okay so let's go to the next lab.