- [Narrator] Alright now that you have a strong foundation
with VLANs and trunks,
in this section we're gonna go ahead and just configure
our VLANs and assign hosts into those VLANs.
So I can see I have VLANs 10 and 11
that I'm gonna configure
and nicely or administratively their imports
10 and 11 on each switch.
Switch two and three.
So let's go to all three switches and create our
VLAN database and then assign these hosts into that.
I'm gonna start with switch one by logging in here.
So now that I'm in here
I can do a show VLAN and see my VLAN database.
This is showing all my access ports.
If a link or port was a trunk,
it wouldn't show in this screen.
This only shows access ports.
I'm gonna say config t, VLAN 10
and name sales sounds good
And VLAN 11.
Name HR.
Nice and short and easy for our VLAN database.
Alright so we can come here and do a show VLAN.
We should be able to see our new VLANS I hope.
And there's 10 and 11.
So those are new broadcast domains we created
in our layer two switch.
Let's now run out to switch two here.
Show VLAN
and I'm gonna go ahead and create 10 and 11 then.
Sales and then VLAN 11,
name
nice and short HR.
So let's go ahead and do a show VLAN.
And we'll see our 10 and 11. That's awesome.
No ports in them yet. We're gonna get to there.
And then we'll x out of here and go to switch three.
Show VLAN.
I have my defaults. This is great.
Config t; VLAN 10; name sales.
VLAN 11.
Name HR.
So let's go ahead now
and take a look at those real quick.
And we can easily assign ports to these
now that they're created in the database.
Config t. Interface f zero 10.
Switchport access VLAN 10.
And then the port 11
and switchport access VLAN 20.
Not 20. Put them in 11 and that's great.
Notice what happened when I added a port
into a VLAN on a switchport that didn't exist.
It created it in the VLAN.
But I want to be part of VLAN 11 alright.
So let's go to switch two
and knock this out real quick.
Now that I'm logged in, I'm gonna config t,
interface f zero 10,
switchport access VLAN 10,
and then go to 11.
And we'll make this one into port 11.
Does that sound good?
Alright we won't create a VLAN 20
and then I'm just gonna go ahead
and verify one last time before we end here.
So we can see that I have ports 10 and 11
on our switches two and three
and that my friends is how you create VLANs
and assign them to a switchport.