ā12-26-2018 12:45 AM - edited ā03-08-2019 04:53 PM
Hi Guys,
Greetings,
I am trying to configure the switch in a way that Voice VLAN and Data VLAN can be assigned to different set of interface ranges. Below is the config that i have attempted but interface range 11-20 did not move to Voice VLAN 20. Is it possible to achieve this without assigning the switchport to access and voice under the above interface ranges.
Thanks in advance
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name DATA
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name VOICE
Switch(config-vlan)#exit
Switch(config)#interface range fa0/1-10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#interface range fa0/11-20
Switch(config-if-range)#switchport voice vlan 20
Switch(config-if-range)#end
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig0/1, Gig0/2
10 DATA active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10
20 VOICE active
ā12-26-2018 02:19 AM
command should work, what is the IOS Code and device model you implementing this ?
can you check show run interace fas 0/11 <-- do you see voice vlan config ?
ā12-26-2018 02:40 PM
Hi Balaji,
Thanks for your response.
I am currently practicing for CCNA R&S. Doing Voice scenario for the first time.
I do see switchport voice vlan 20 against the interfaces in question under running config. Any reason why it is not reflecting in show vlan brief. I am using 2960 IOS 12.2 in packet tracer. PC's are getting IP addresses via DHCP.
I am having trouble with the IP phone. It will be great help if you can add 2 IP phone and obtain IP address via DHCP.
Everything is configured except need to plug 2 IP phones and tested. Attached is the above topology. Please let me know where I am going wrong.
ā12-27-2018 12:37 AM
I do not a packet tracer user. may be some limitation.
can you manually add configuration to interface and check(instead of range command)
config t
!
interface fas 0/11
switchport voice vlan 20
!
end
!
wr
show interface fas 0/11 -- you see vlan 20, then you good to test.
ā12-27-2018 02:19 AM - edited ā12-27-2018 02:36 AM
It already shows, switchport voice vlan 20 under show run and show interfaces switchport.
After creating manual config for fa0/21, it shows under show interfaces fa0/21 switchport as well.
However, it still does not show under show vlan brief. Maybe it is packet tracer limitation.
I could not test the DHCP IP assignment to IP phone as I need to action the below. This part appears to be beyond CCNA R&S realm. Hence I will leave it at that.
Router(config)#license boot module c800 technology-package uck9 (Upgrade) **Please research before running it**
Router(dhcp-config)#option 150 ip 192.168.2.1
Router(config)#telephony-service
Router(config-telephony)#max-ephone 5
Router(config-telephony)#ip source 192.168.2.1 port 2000
Router(config-telephony)#auto assign 4 to 6
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#exit
Router(config)#ephone-dn 1
Router(config-ephone-dn)#number 0001
Router(config-ephone-dn)#ephone-dn 2
Router(config-ephone-dn)#number 0002
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide