The following
example shows how to configure voice VLAN and verify
Device1> enable
Device1# configure terminal
Device1(config)# interface GigabitEthernet0/1/7
Device1(config-if)# switchport voice vlan 10
Device1(config-if)# no ip address
Device1(config-if)# end
The following
example displays the updated running configuration on Device 2. LLDP is enabled
with hold time, timer, and TLV options configured.
Device1# show lldp neighbors detail
Local Intf: Gi0/1/7
Chassis id: 10.10.0.1
Port id: C8F9F9D61BC2:P1
Port Description: SW PORT
System Name: SEPC8F9F9D61BC2
System Description:
Cisco IP Phone 7962G,V12, SCCP42.9-3-1ES27S
Time remaining: 127 seconds
System Capabilities: B,T
Enabled Capabilities: B,T
Management Addresses:
IP: 10.10.0.1
Auto Negotiation - supported, enabled
Physical media capabilities:
1000baseT(HD)
1000baseX(FD)
Symm, Asym Pause(FD)
Symm Pause(FD)
Media Attachment Unit type: 16
Vlan ID: - not advertised
MED Information:
MED Codes:
(NP) Network Policy, (LI) Location Identification
(PS) Power Source Entity, (PD) Power Device
(IN) Inventory
H/W revision: 12
F/W revision: tnp62.8-3-1-21a.bin
S/W revision: SCCP42.9-3-1ES27S
Serial number: FCH1610A5S5
Manufacturer: Cisco Systems, Inc.
Model: CP-7962G
Capabilities: NP, PD, IN
Device type: Endpoint Class III
Network Policy(Voice): VLAN 10, tagged, Layer-2 priority: 5, DSCP: 46
Network Policy(Voice Signal): VLAN 10, tagged, Layer-2 priority: 4, DSCP: 32
PD device, Power source: Unknown, Power Priority: Unknown, Wattage: 6.3
Location - not advertised
The following
example shows how to configure LLDP timer, hold time, and TLVs options on
Device 2.
Device> enable
Device# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Device(config)# lldp run
Device(config)# lldp holdtime 150
Device(config)# lldp timer 15
Device(config)# lldp tlv-select port-vlan
Device(config)# lldp tlv-select mac-phy-cfg
Device2(config)# interface ethernet 0/0
Device2(config-if)# lldp transmit
Device2(config-if)# end
00:08:32: %SYS-5-CONFIG_I: Configured from console by console
The following
example shows that voice vlan has been configured on the IP phone.
Device1# show lldp traffic
LLDP traffic statistics:
Total frames out: 20
Total entries aged: 0
Total frames in: 15
Total frames received in error: 0
Total frames discarded: 0
Total TLVs unrecognized: 0
Device1# show lldp neighbors
Capability codes:
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID Local Intf Hold-time Capability Port ID
Device2 Et0/0 150 R Et0/0
Total entries displayed: 1
Device2# show lldp traffic
LLDP traffic statistics:
Total frames out: 15
Total entries aged: 0
Total frames in: 17
Total frames received in error: 0
Total frames discarded: 2
Total TLVs unrecognized: 0
Device2# show lldp neighbors
Capability codes:
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID Local Intf Hold-time Capability Port ID
Device1 Et0/0 150 R Et0/0
Total entries displayed: 1