Transcription
Hello guys, welcome to Dance IT Network.
For today's video, I'll show you how to create a voice VLAN.
Okay, well just a basic configuration, and we'll be using two IP phones, one switch, and one router.
So let's get one router first. We need to use this 2811 because it has the capability, you know, the telephony service, right?
And I'll change this to Router 1.
Okay, then next, let's get one switch. Sorry.
Okay, and then 2960. Let me change this to Switch 1.
Okay, and then let's get two IP phones. I'll drag this here. This is the first one.
Okay, and then next, IP Phone 2.
Okay, and let's connect them using a straight-through cable from this router, FastEthernet 0/1 to the FastEthernet 0/1 to the switch.
And then from this IP phone, okay, switch, and then I'll connect this to the FastEthernet 0/2.
And this one switch connected to the FastEthernet 0/3.
Okay, all right, and we'll be using this network IP address 192.168.1.0/24.
Okay, let's make it simple, Class C, Class full.
All right, and let me drag this over here and let me click this switch.
All right, so we need to create a VLAN.
All right, VLAN 50, and we're going to register these two ports, FastEthernet 0/2 and 0/3 to VLAN 50.
Okay, we'll create that.
So I'll go to the command line interface, I'll hit enter to get started, then enable to go to the privilege mode, then config terminal to go to the global config mode.
And then I'll create VLAN, okay, then space 50, and I'll name it, let's say, Voice.
Okay, Control C on the keyboard, and then show VLAN space brief.
I'm sorry, wrong spelling. Let me change this to letter F.
Okay, there you go.
Right, and now we created a VLAN 50, and I gave it a name Voice.
All right, and then next is let's register these ports, 0/2 and 0/3 to the VLAN 50.
Okay, let's do that.
Config terminal, all right, and then I'll go to the interface.
Let's do range, okay, and then FastEthernet 0/2 up to, I'm sorry, FastEthernet 0/2 should be, and then up to 3.
Okay, so this will cover the FastEthernet 0/2 up to FastEthernet 0/3.
Okay, hit enter, and then switchport mode access.
Okay, and then switchport voice VLAN 50.
Okay, since it's a voice VLAN, so it should be switchport voice, and then we're going to use the voice on VLAN 50.
Okay, there you go.
And then Control C, let me save the configuration.
All right, and then show run, well just to double-check the configuration.
Okay, so what you see here on the FastEthernet 0/2, we made it, you know, access switchport mode access, and also the same thing in here.
And we did this command, switchport voice, all right, under VLAN 50.
Okay, all right, and then I'll close this.
And then on this switch, okay, this FastEthernet 0/1, we need to make this a trunk, right, so that it will allow VLAN traffic.
Okay, because if we do not make this a trunk port, then the VLAN traffic will not go out on this port.
All right, and it is important to create a trunk port because we created VLAN.
All right, let's do that.
I'll click this switch again, space, and then config terminal to go to global config mode, and then interface FastEthernet 0/1.
All right, and then I'll type this switchport mode trunk.
Okay, all right, there you go.
Well, I just hit the tab on the keyboard, and then one more command, switchport trunk allowed VLAN 50 only is allowed on this trunk.
Okay, and I'll hit enter, and then Control C, and then save the configuration, and I'll exit.
All right, and then now let's configure this router.
Okay, well on this router interface, the FastEthernet 0/1, we need to create a sub-interface on this port so that we can enable the encapsulation to allow the VLAN traffic.
Okay, and also we need to register the default gateway of these two IP phones, which is the default gateway should be the first host on the network.
Then what we'll use is 192.168.50.1 as the default gateway.
Okay, let's do that.
I'll click this router command line interface, I'll say no in here, and then hit enter to get started.
Then enable to go to the privilege mode, config terminal to go to the global config mode, and then interface FastEthernet 0/1.
Okay, well to create a sub-interface inside this port, I need to type the interface FastEthernet 0/1 again, and then this time I need to add a dot.
Okay, well you can add any characters in here or any numbers actually.
Okay, but on this tutorial, we'll put 50, okay, because we're working on VLAN 50 as a voice VLAN.
Well, just for us, you know, to make it easy to understand that we are on VLAN 50.
Okay, so let's put 50 in here, hit enter, and then next let's enable the encapsulation to allow the VLAN traffic.
All right, I mean to allow the VLAN traffic, so encapsulation dot 1Q and then the VLAN ID is 50.
Okay, all right, there we go.
And then the default gateway IP address 192.168.50.1 space 255.255.255.0.
Okay, there you go.
And then I'll type exit in here.
Okay, and let's turn on the interface 0/1.
Okay, so I'll go again to the interface FastEthernet 0/1 because as you can see in here, it's still red.
Okay, all right, so we need to turn this on.
I'll hit enter and then no shutdown.
There you go, and now it's on.
Okay, and then now let's hit Control C on the keyboard.
I'll type here show run.
Okay, I'll show you the configuration that we made.
All right, well on this FastEthernet 0/1, well we did not configure any IP address.
All right, what we did is that we created a sub-interface, which is FastEthernet 0/1.50.
Okay, we enabled the encapsulation dot 1Q space VLAN 50.
This is the VLAN ID, okay, and then the default gateway is 192.168.50.1.
Okay, there you go.
And then next we need to enable or create a DHCP, all right, so that these two IP phones can get automatic registration on the IP addresses.
Okay, so let's enable the DHCP, then config terminal to go to the global config mode, and then IP DHCP pool.
Then the name of the pool would be, let's say, Voice.
Okay, hit enter, and then I'll type here question mark.
Okay, and I want all of the IP phones to get the default gateway.
Okay, so default router, let's say I want them to have the default gateway 192.168.50.1.
Okay, and also this should be on the network 192.168.50.0, space 255.255.255.0.
Okay, and then also let's use this command option.
Okay, and then let's put question mark in here, right?
So it says in here, well, we can put in here either 43 or 150.
Okay, so let's use the 150.
Well, it's a special code though.
All right, so 150 is space and then IP.
Okay, and then space the, I'm not sure if I need to put IP in here.
Let's type question mark.
Okay, there you go.
So we need to put the IP address of the router, the default gateway 192.168.50.1.
Okay, and then space, let's type question mark again like the command is complete.
All right, so I'll hit enter.
Okay, and then Control C to go back to the privilege mode.
And next that we need to configure is the telephony service.
Okay, so to do that, I'll type here config terminal to go to the global config mode.
All right, and then I'll type question mark in here, and we'll be using this telephony service.
Okay, so I'll type this under the global config mode, just hit the tab on the keyboard and then hit enter.
And I'll type question mark in here for you to see what are the available commands.
All right, so under this config telephony, all right, we'll be using this auto.
All right, so I'll type here auto.
All right, and then space assign.
All right, so this should be 1 to 10.
Okay, well if you're not sure of the command that you can use though, well you can, like for example here, so auto, I'll type question mark.
And then, well I need to type the assign.
Okay, define the DN range for auto assignment.
All right, so I'll just have to type here assign and then question mark again.
And start DN tag, I would say from 1.
Okay, then space question mark and then 2, space question mark again, and then stop DN tag, so up to 10.
All right, then space question mark again.
As you see, there are no available commands to put down, so this command is already complete.
All right, so auto, let's execute this.
Okay, and then next let's use this IP.
Okay, define IP address and port for telephony.
All right, that is important.
Okay, so I'll type here IP and then space question mark.
So let's use this source.
Okay, tab source address and then question mark again.
We need to input the IP address of the gateway, so 192.168.50.1.
Okay, and then space, let's type question mark.
Let's pretend that we don't know the next command, right, for the sake of this tutorial.
So I need to type a port, okay, space, and then question mark again.
All right, so specify the port 2000 to 9999, so let's put that 2000.
Okay, all right, and then next.
All right, we're done with the auto, we're done with the IP.
Next would be this max DN and then the max phones.
Okay, so let's go first in this.
So max DN, all right, space question mark.
Right, so maximum directory number supported, let's say 10.
Okay, and then next, max phones, question mark.
Max phones to support, let's say 10.
Okay, all right, and then we're done with the telephony service.
I'll press Control C on the keyboard, and then one last thing that we need to configure.
All right, let's go back to global config mode and type question mark.
And we need to use this ephone-dn.
Okay, we'll do that.
So ephone-dn, so this is for the first phone.
Okay, so I put 1, and I'll hit enter.
All right, there you go.
Interface ephone-dn 1, change state to up, that's good.
I'll hit enter, and I'll give it a number 1001.
So this is the telephone number that I want this first phone to have.
Right, and then for the second phone, I'll type exit, and then I'll just change this to number 2.
Okay, and then it's up, hit enter, and then telephone number I want it to have 1002.
Okay, there you go.
So Control C, all right, and then let's type show run in here just to double-check all of the configuration.
Okay, so let's start from the top.
Okay, so this is the last command that we executed, show run, and then scroll down.
We created a DHCP, we gave it a name Voice.
All right, so the network is 192.168.50.0.
Okay, and this is the subnet mask, the default router.
So all of the ephones should get this default gateway IP address, the 50.1.
Okay, and next, the option 150, so IP, this is the router's IP address, okay, the default gateway.
All right, that's good.
And let me minimize this first.
All right, well, let's turn on the two phones.
Okay, all right, well to turn them on, I'll click this one ephone in here, and then I just need to, you know, grab this power adapter, hold it, okay, and I'm going to drag it here.
All right, there we go.
And you notice that it turns green, right?
Next, ephone 2, let me grab this and drag it over here to turn it on.
Okay, there you go.
All right, and let's go back to the router while waiting for them to, you know, synchronize.
All right, so I'll open up again the router.
So where are we?
So, all right, so in the DHCP, we're done creating it, right?
And then scroll down.
All right, and then on this FastEthernet 0/1, well, we did not input any IP address though.
What we did in here is we created a sub-interface, right, which is FastEthernet 0/1.50.
All right, and we enabled the encapsulation dot 1Q, well, to allow VLAN traffic, right?
Because we cannot register this encapsulation if we are about to do it.
I'm sorry, let me scroll up again.
If we're going to do it in here, okay, so we need to create a sub-interface, all right, to enable the encapsulation.
All right, okay, so and then next, this is the telephony service.
All right, so max ephones, we did it at 10 even if we only have two, right?
We made it 10.
Okay, so max directory number is 10, and the source IP address, the router's IP address, the gateway, and port 2000, and auto assign from 1 to 10, definitely.
Okay, and ephone, this is the first ephone-dn, and it should get the, you know, this telephone number should be 1001.
Okay, and on this ephone number two, this is the, I'm sorry, ephone number two, this is the 1002.
This is the telephone number that this ephone 2 should have.
Okay, there you go.
So you notice that we keep getting messages a while ago though.
So let's see here.
So it says in here, IP phone 6 registered ephone 1.
Right, there you go, ephone 1, and then 192.168.50.2.
All right, so it got an IP address, and then socket, um, two device type phone is registered.
Okay, that is good.
And for the second phone, you got an IP address, which is here, the 50.3.
All right, and this is a goodness.
All right, so meaning that the IP phones are working.
Right, and let me close this.
All right, and let's see.
So I'll open this one phone, okay, and I need to go to the graphical user interface.
All right, so as you see here, all right, this is the telephone number, right, the 1001.
It was registered in here, right?
And let me make this smaller.
Okay, all right, okay, and let me open the second phone.
Right, I'll go to the graphical user interface.
Let me make this smaller, right, because we're going to try to call.
Okay, all right, and where is it?
Where's the other one?
There you go.
All right, so let's say we want this ephone 1, I'm sorry, yeah, this phone 1 to call the phone 2.
Okay, let's do that.
So I'll dial this one, which has the 1002.
Okay, so 1002, okay, and call.
All right, so you notice that this is blinking, right?
So meaning someone is calling, right?
And then if I want to answer, I just need to hold this, and there you go, see here, it's connected.
All right, and if I want to, let's say, hang up, all right, I'll just put it here.
Okay, and there you go, and it's working.
All right, let me drag it here.
Okay, all good.
If you like this video, please do subscribe to my YouTube channel, Dance IT Network, to get more updates about Cisco CCNA.
And if you have any requests for video tutorials, then you can post it in the comment section below.
Thanks, bye!