- [Presenter] All right, let's run out to our switches,
and have some fun.
So this'll be switch one.
So I've just tunneled it in, you see can see that it
was connected and saw Carriage attach
to another Cisco device.
So trying to auto-configure itself is very common.
You can turn those off but, not necessary,
you just have to wait for it, though.
So, first thing you always do, set your host name.
Absolutely, gotta type in hostname though.
And set our host name.
Now we can set our passwords, interface descriptions
and so on.
And I highly recommend that you set your
interface descriptions on your uplinks to other switches.
So we can go ahead and do that and
do show cdp neighbor.
And we should see switch two and switch three and
a couple routers in there but,
I've got two connections to switch two,
and two to switch three on here.
So we can go ahead and we would configure
so it looks like 19, 20, 21, 22, nice.
Alright so enable, set our passwords.
Enable secret Cisco, don't tell anyone,
enable secret Cisco.
Alright and then we need to do our lines, right?
Line con zero, password console, log in.
Or we can set up SSH as well,
when we go to our vty's here, so type exit line vty,
zero space you do the last line number.
And you see we just have the 15, which is great,
this is very common for a switch.
Password, and we'll just use telnet, I can set up SSH but
login is all by default on the vty's,
but I always type it in just to feel good about it.
And then, so we have our lines, our enable secret.
We can do the encryption, don't forget,
service password-encryption.
There we go.
And just leave that running, and it's gonna
encrypt all current and future passwords.
Now the one thing is is, I did show in earlier episodes that
how to set the IP but didn't necessarily explain it.
Show IP int brief.
Now that's a lotta output here,
and notice I have an IP address from our DHP lab,
right on there under vlan 1.
An IP address on a layer two switch
is on a logical interface, the key being layer two switch.
So we're not gonna put it under a physical interface,
but the logical interface called vlan 1.
We can shut that vlan 1 down, and create a different one,
doesn't matter.
But in this case here we're gonna use
the logical interface vlan 1.
It is shut down by default but
I had brought it up, it has an address from a DHP server
so I'm gonna say IP address, and let's make
an IP address scheme.
192.168, we're gonna use 50.1.
Now remember the IP addresses of the switches,
it's a different vlan, we'll management vlan 1,
which is the default, and we'll just make up a scheme
to address subnet 50.
So it's releasing the DHCP address, adding this,
and actually I'm, let me up-arrow a minute.
I'm gonna change this to .2, because 50.1
will be my default gateway.
So I've already just changed my IP address.
But you also see how easy that was.
Up-arrow, change the address, and now,
I'm gonna make my router, which I will use,
ip default-gateway as the command.
There we go.
192.168.50.1 right?
So I'm gonna, my switches are gonna be 50.2, .3, .4.
And I have three switches.
Alright so IP default gateway, 50.1,
that's pretty much it.
Don't forget to enable vlan 1, with the no shut down,
and then also, I have most of my interfaces
showing down up here if we look
because there's nothing connected to them.
So the ones that are connected are up.
So if I did a do show IP int brief again,
we can see that I have my statically assigned address now,
instead of DHCP.
Let's run out to switch two and three,
I wanna get these working as well,
there's switch two, I already set the host name
so I would know which ones they were,
very important piece, isn't it?
Okay, there we go.
Config.
Alright, let's go to global config,
enable secret Cisco, okay.
Line con zero, man I really have a problem typing line.
Line con zero, password console, and since I'm in
a non-production environment,
I can make my passwords very simple, as you can see,
so I don't forget 'em.
I'm not really worried about security on this,
I'm not in a production environment.
vty 0 15, those are my lines.
Password, now I'm gonna be able to, just telnet,
after I'm done here.
Again, you'd set up SSH in a production environment.
And then of course, we'll encrypt 'em
for the fun of it.
Service.
Okay, so we've got our host names,
we can set a banner, and I highly recommend
setting your interface descriptions
show CDP neighbor, I'm connected off of 19 and 20 so
check this out, I'm gonna say config t,
interface f0/19, description link to SW1.
Okay, and then 20, this is how easy it is,
just showin' you.
Link2 to SW1, right, nice.
Alright so we have our descriptions,
we're lookin' real good here with our
basic administration here.
And now we'll just go to quick switch three here
and do the same thing.
Very important you at least have your host names correct
and verify that.
Enable secret Cisco,
line con 0, I spelled it right that time.
Enable the login process, line vty 0.15
if you know your line numbers,
you don't have to exit out because you can
just type 'em in, but you have to know your line numbers
to be able to do that, which I did.
And then we've got that done and then again,
always service password encryption.
So, looks like I got my vty, but I need to
set the IP address underneath so,
interface vlan 1, IP address 192.168.50. two, three,
so this would be 50.4.
I gotta go to backswitch too and configure that,
don't forget.
So I mighta had DHP on this or not,
I'm not sure but, nonetheless,
I had to think there for second.
No shut, absolutely bring that up and then exit,
ip default-gateway 192.168.50.1.
Lookin' good, lookin' good.
Alright, the one thing is, on my switch two,
I think is here, I didn't go to my interface vlan 1,
IP address 192.168.50.3,
because switch one is 50.2,
default gateway .1.
It's gotta think for a second.
Remove it's DHP, which I was usin'
and then exit IP default-gateway 192.168.50.1.
We're looking good, guys.
So show IP int brief.
Can see our IP address.
Hard to see the default gateway.
Have to do a show ron or something like that
to see that.
But I think we're looking good here,
and that is a pretty simple, straightforward way
to configure basic layer two switches.