From: Roberts, Larry (Larry.Roberts@expanets.com)
Date: Tue Sep 02 2003 - 15:13:07 GMT-3
The switchport trunk voice vlan 101 is used to pass the voice vlan onto a
Cisco phone. If your using a non-cisco IP phone you will need to manually
tell the phone what the voice vlan is, and this is assuming that the phone
is trunking.
The switchport trunk native vlan 102 is not needed below, because your port
is hard-coded for access mode, not trunk mode. Native VLAN really only
applies to trunk ports
A typical voice port, with a cisco IP phone migth look like this ( and Im
doing this for memory so pardon any typos )
Interface f0/16
Description IP Phone
Switchport mode trunk
Switchport trunk encapsulation dot1q
Switchport trunk native vlan 102
Switchport voice vlan 101
Spanning-tree portfast
Here is a breakdown of what each command doesn:
Interface f0/16 = go into the F0/16 interface and apply the configuration
there
Description IP Phone = adds a description to the port so you can look though
the config and figure out what it is used by
Switchport mode trunk = force the port to be a trunk port
Switchport trunk encapsulation dot1q = use 802.1q packet tagging ( as
opposed to ISL )
Switchport trunk native vlan 102 = Any untagged packets are considered to be
in this VLAN. On cisco Phones, the ethernet port would be in this VLAN
Switchport voice vlan 101 = used to tell a cisco IP Phone how to tag voice
packets, ie tag voice packets in vlan 101 ( I believe that CDP passes this
info along to the phone )
Spanning-tree portfast = skip the normal stp startup procedure, and
immediately start forwarding packets.
If your using a phone that can't do trunking, you can just hard code the
port to access mode and set the access vlan to what you need
Interface f0/16
Description Hard-coded IP Phone
Switchport mode access
Switchport access vlan 101
This just tells the switch that don't vlan tag packets and just put all
traffic you receive into vlan 101.
Does this help ?
Thanks
Larry
-----Original Message-----
From: navaid@rogers.com [mailto:navaid@rogers.com]
Sent: Tuesday, September 02, 2003 12:38 PM
To: ccielab@groupstudy.com
Subject: Re: native vlan and port config for IP phone.
What if we have following config ?
interface FastEthernet0/16
switchport access vlan 40
switchport trunk encapsulation dot1q
switchport trunk native vlan 102
switchport voice vlan 101
no ip address
spanning-tree portfast
end
>
> From: <navaid@rogers.com>
> Date: 2003/09/02 Tue PM 01:31:05 EDT
> To: <ccielab@groupstudy.com>
> Subject: native vlan and port config for IP phone.
>
> What is the correct method of configuring native vlan ? Fa0/15 is
> using "switchport access vlan" command. fa0/16 is using "switchport
> trunk native vlan" command.
>
> interface FastEthernet0/15
> switchport access vlan 102
> switchport trunk encapsulation dot1q
> switchport voice vlan 101
> no ip address
> spanning-tree portfast
> interface FastEthernet0/16
> switchport trunk encapsulation dot1q
> switchport trunk native vlan 102
> switchport voice vlan 101
> no ip address
> spanning-tree portfast
>
> Thanks,
>
> Navaid
>
>
1
This archive was generated by hypermail 2.1.4 : Wed Oct 01 2003 - 07:24:21 GMT-3