This is my first answer to this forum: The difference you are seeing in the configuration of the 3750 switch and the ESW module installed in the router is the difference in the method of separating voice and data VLANs on an access port in newer Catalyst IOS versions vs older Catalyst IOS versions. I cannot tell you off the top of my head when this change happened, but I know for a fact that in 3500 switches (3524, 3548, etc.), the only way you can configure voice and data VLANs on the same switchport is by configuring the trunk on it, just like it is done on the ESW module. When you configure a trunk on a switch port and enter the "switchport voice vlan XX" statement, you convert this trunk into a two-VLAN trunk. The voice VLAN is tagged by the phone with the number you specify in the "switchport voice vlan XX" command on the switchport of the Catalyst switch (or the ESW module), and the data is passed through the phone untagged and is tagged by the Catalyst switch when it arrives in the switchport, according to the "switchport trunk native vlan YY" command. The reason that the ESW module is configured the same way as the older Catalyst switches is probably because the ESW code lags behind the rest of the ISR router's IOS code (Cisco re- uses older sections of the code for non-routing modules like ESW, Wi- Fi, etc, but uses newer code for the routing function). The switching portion of the IOS code in these routers will eventually catch up with the more modern Catalyst IOS versions. By the way, when configuring a switchport as trunk for this purpose, you do not have to use the "switchport access vlan YY" command, but you do have to use the "switchport trunk native vlan YY" command.
In the more modern Catalyst IOS versions, the separation between voice and data VLANs is done via a different kind of configuration, which does not require a trunk port. However, when you issue the "switchport voice vlan XX" command in this scenario, the port becomes a two-VLAN trunk port, just the same way it happened in the older Catalyst IOS versions. Data traffic is sent by the data hosts untagged, and it passes through the phone untagged. When data arrives in the switchport of the Catalyst switch, it is tagged with the VLAN number specified in the "switchport access vlan YY" command. Another scenario is to configure the "switchport voice vlan dot1p" command. This command is very poorly documented (or at least this was the case a few years ago). When this command is issued, the Catalyst switch creates a pseudo VLAN (VLAN 0) between the switchport and the IP Phone, and the IP phone tags voice traffic with VLAN 0. When the traffic arrives in the Catalyst switch, the VLAN 0 tag is removed and the traffic is placed in the same VLAN as the data traffic. If you are wondering about the purpose of this, it allows the IP phone to mark the voice traffic with 802.1p (Layer 2) QoS markings using the 802.1q header in the Ethernet header. The only way to have the 802.1q header is to tag an Ethernet frame with a VLAN tag. Depending on the switch model, this Layer-2 QoS markings can either be mapped into Layer-3 IP Precedence/DSCP markings or carried to another Layer-2 device across a trunk. So, even though in this scenario voice and data will reside on the same VLAN, the 802.1p QoS markings on data packets will differ from those on voice packets. Regards, Jesse _______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com
