EasyManua.ls Logo

Cisco Catalyst 4500 Series - Macro Apply Cisco-Phone

Cisco Catalyst 4500 Series
1230 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-426
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
macro apply cisco-phone
macro apply cisco-phone
To enable the Cisco-recommended features and settings that are suitable for connecting a switch port to
a standard desktop and a Cisco IP phone, use the macro apply cisco-phone command.
macro apply cisco-phone $AVID access_vlanid $VVID voice_vlanid
Syntax Description
Defaults This command has no default settings.
Command Modes Interface configuration mode
Command History
Usage Guidelines This command can only be viewed and applied; it cannot be modified.
Ensure that the existing configuration on the interface does not conflict with the intended macro
configuration. Before you apply the macro, clear the configuration on the interface with the default
interface command.
Examples This example shows how to enable the Cisco-recommended features and settings on port fa2/1:
Switch(config)# interface FastEthernet2/1
Switch(config-if)# macro apply cisco-phone $AVID 10 $VVID 50
Switch(config-if)#
The contents of this macro are as follows:
# VoIP enabled interface - Enable data VLAN
# and voice VLAN (VVID)
# Recommended value for access vlan (AVID) should not be 1\
switchport access vlan $AVID [access_vlan_id]
switchport mode access
# Update the Voice VLAN (VVID) value which should be
# different from data VLAN
# Recommended value for voice vlan (VVID) should not be 1
switchport voice vlan $VVID [voice_vlan_id]
# Enable port security limiting port to a 3 MAC
# addressees -- One for desktop and two for phone
switchport port-security
switchport port-security maximum 3
# Ensure port-security age is greater than one minute
# and use inactivity timer
switchport port-security violation restrict
switchport port-security aging time 2
$AVID access_vlanid Specifies an access VLAN ID.
$VVID voice_vlanid Specifies a voice VLAN ID.
Release Modification
12.2(18)EW Support for this command was introduced on the Catalyst 4500 series switch.

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Related product manuals