11-06-2019 09:04 PM
Hi,
I am very confused with voice vlan config and its impact under interface cfg. Considering the 3 cfg below, with data and voice vlan present, which shld be the correct one?
Also I understood tht voice devices like cisco/avaya voip phone tagged its voice traffic in certain voice vlan ID.
Another issue is i am really not sure wht is the impact with/without "switchport voice vlan"?
1)"switchport mode trunk" with "switchport voice vlan" under interface config.
2)Some switches only has "switchport mode trunk" but no "switchport voice vlan" cfg.
3)Some switches only has "switchport mode access" with "switchport voice vlan".
11-06-2019 11:32 PM
Hi there,
You shouldn't need to make it a trunk port, Option3 is the valid configuration:
! int gix/x/x switchport mode access switchport access vlan xx switchport voice vlan xx spanning-tree portfast !
The switch will use CDP/ LLDP by the switch to determine if a VOIP handset is connected and will place the applicable frames in the voice VLAN.
As you point out, VOIP frames are always tagged, as such with older switches/ handsets it is necessary to configure switchport mode trunk to ensure the tagged frames are handled correctly.
cheers,
Seb.
11-07-2019 06:23 AM
Hi,
I have some switches still running the config 1) & 2) below.
I heard avaya and cisco Voip phones has tagged voice vlan with a VLAN ID (for e,g 100) & data goes to vlan 1
Wht exactly will happen to voice traffic especially when no "switchport voice vlan 100" present? wht exactly is the difference and implications will it caused?
1)"switchport mode trunk" with "switchport voice vlan 100" .
switchport allowed vlan 1,100
2)"switchport mode trunk" but no "switchport voice vlan 100".
switchport allowed vlan 1,100
11-07-2019 07:25 AM
Hi the,
The VLAN ID specified by the command switchport voice vlan xxx is used by CDP to inform the IP phone what VLAN ID to tag voice traffic with.
If switchport voice vlan xxx is missing from the switchport config then this information cannot be relayed to the phone. I guess this would rely on the phone to have a default, VLAN ID 100 as you suggest....I have never configured it this way so cannot confirm.
cheers,
Seb.
11-07-2019 07:54 AM
Hi,
If i change switchport mode trunk to access (with voice vlan 100), can it integrate with tagged voice vlan 100 from cisco voip phones ?
It means tagged voice(vlan 100)+untagged data(vlan 1) frm Voip phones------->swithport(access vlan 1, voice vlan 100)
Can still works?
btw , wt happens to those switches with switchport mode trunk? Does tagged voice(vlan 100)+untagged data(vlan 1) frm Voip phones------->swithport(access vlan 1, voice vlan 100). End result still the same?
11-07-2019 01:44 PM
The first config you describe would fit the standard setup. Although the switchport is not explicitly configured for handling tagged frames (ie mode trunk), the switchport voice vlan xx command will correctly handle VOIP frames which match the voice VLAN ID.
The second description will work assuming the IP phone is preset to tag voice traffic with VLAN ID 100. It is worth noting that on a trunk port the default native VLAN is 1, so this will pickup and place the untagged DATA traffic in VLAN 1.
cheers,
Seb.
11-07-2019 08:57 PM
Hi Seb,
Many thanks for yr kind reply!!!
May I know further, the difference between switch1-'switchport mode trunk' with 'switchport voice vlan 100' AND switch2-'switchport mode trunk' when it comes to NAC auth?
The reason was because when i checked under sh mac address-table, the mac addresses for VoIP phones shown in switch1 are STATIC (all ALLOW access)whilst the mac addresses for VoIP phones shown in switch2 are all dynamic(all DENY access).
There must be something set by this simple command considering it affect NAC auth.Can you enligthen me?
11-08-2019 01:29 AM
The use of the switchport voice vlan xxx, as well as informing a Cisco phone which VLAN to tag voice frames with via CDP, also instructs the switchport to allow the traffic on the voice VLAN to work independently of 802.1x authentication.
In your scenario of using switchport mode trunk and NAC you will probably need to configure MAB (MAC Address Bypass) for the IP phone.
I say probably as I don't have much experience of using non-cisco IP phones in 802.1x setups.
cheers,
Seb.
11-08-2019 07:47 PM
Hi,
When sh mac address-table, it shows static or dynamic, wht does it means?
This happens when switchport voice vlan XX is configured. In terms of networking, wht static and dynamic means?
11-19-2019 12:39 AM
Dynamic MAC addresses are learnt by the switch as ethernet frames are received. The source MAC address is gleaned from the frame and used to populate the MAC address table. Each dynamic entry has a timer against to age out old addresses. Each time a MAC address is seen again the timer is reset.
Static MAC addresses are either manually configured by an administrator or are hardcoded by the switch itself.
there is also a third type, 'sticky' which is encountered when using certain port-security configuration.
cheers,
Seb.
11-07-2019 09:47 AM
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