Re: bpduguard question

From: Joe Astorino <jastorino_at_ipexpert.com>
Date: Thu, 10 Sep 2009 16:12:28 -0400

I believe you could do it with a built in macro as well.

Cat2#show parser macro name cisco-desktop
Macro name : cisco-desktop
Macro type : default interface
# macro keywords $access_vlan
# Basic interface - Enable data VLAN only
# Recommended value for access vlan should not be 1
switchport access vlan $access_vlan
switchport mode access

# Enable port security limiting port to a single
# MAC address -- that of desktop
switchport port-security
switchport port-security maximum 1

# Ensure port-security age is greater than one minute
# and use inactivity timer
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity

# Configure port as an edge network port
spanning-tree portfast
spanning-tree bpduguard enable

On Thu, Sep 10, 2009 at 2:56 PM, Mohamed El Henawy <m.henawy_at_link.net>wrote:

> perhaps he was asking for switchport with host keyword..one command will
> put these 2 commands. but for this one I tried to find out how anyone would
> see if I put this command or not but couldn't find way
>
>
>
> ----- Original Message ----- From: "Erik Witkop" <ewitkop_at_gmail.com>
> To: "Mark Matters" <markccie_at_gmail.com>
> Cc: "Cisco certification" <ccielab_at_groupstudy.com>
> Sent: Thursday, September 10, 2009 10:45 PM
> Subject: Re: bpduguard question
>
>
>
> Right on. Narbik's lab asked for the fewest amount of commands to turn
>> on portfast and bpduguard. So the global command in conjunction with the
>> interface command, met the requirement.
>>
>> Thanks all for your feedback.
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --------------------------------------------------------------------------------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.409 / Virus Database: 270.13.89/2360 - Release Date: 09/10/09
> 11:29:00
>
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Regards,
Joe Astorino - CCIE #24347 R&S
Technical Instructor - IPexpert, Inc.
Cell: +1.586.212.6107
Fax: +1.810.454.0130
Mailto:  jastorino_at_ipexpert.com
Blogs and organic groups at http://www.ccie.net
Received on Thu Sep 10 2009 - 16:12:28 ART

This archive was generated by hypermail 2.2.0 : Sun Oct 04 2009 - 07:42:03 ART