cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5445
Views
12
Helpful
10
Replies

Default interface security command

Tom Teunissen
Level 1
Level 1

Hi,

I'm looking for a single interface command that sets several commands at once. And I'm not looking for 'default interface ...' or 'interface range ...' because many people I ask think I am revering to those.

I am looking for the command that sets at least 'switchport mode access', 'switchport nonegotiate' and 'switchport bpdufilter' (I think).

As I heard it during a CCNP training, I learned that Cisco reccoments to apply this on access ports. I can't find my notes on that course anywhere, so please advise.

Thanks, best regards, Tom

1 Accepted Solution

Accepted Solutions

Hi,

I tried to skim through my notes and this is the closest I could find.

The other lines must be added manually. Good luck with CCNP!

Sent from Cisco Technical Support iPhone App

View solution in original post

10 Replies 10

ciscoamit_497
Level 1
Level 1

Hi Tom,

I didn't get you clearly, but on the behalf of my understanding,

Please refer to below links that may be help to u---

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.1/19ew/configuration/guide/port_sec.pdf

http://www.cisco.com/en/US/docs/security/asa/asa70/configuration/guide/intparam.html

Hope, This been informative to u..

Thanks.

Amit

*******Please rate the helpful posts********

Hi Amit,

Thanks for your quick response. Though this is not  quite what I mean. I meant one specific cli command (something like  'switchport interface ...' or vice versa). When applied on a defaulted  interface, at least 'switchport mode access', 'switchport nonegotiate'  and 'spanning-tree bpduguard' are applied. It functions as a kind of  macro, but it is part of IOS.

Thanks, Tom

Sandeep Choudhary
VIP Alumni
VIP Alumni

Hi Tom,

I am not much aware about exact default coammd to configure all security parameter by 1 deafult command:

The default interface command is a great way to reset an interface to its default configuration. You will need to be in configuration mode in order to issue this command. You can combine default interface with the interface range command on Cisco switches to set multiple interfaces to their default configuration with a single command.

i will try to find out more about this coammnd(if this is avilable).

Regards

Thanks Sandeep,

But default interface isn't the command I'm looking for.

Thanks anyway!

Regards, Tom

Hi,

is this what you are looking for ?

http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_22ea/SCG/swmacro.html

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Hi Alain,

Almost, only the 1 command I am looking for is a part of IOS. So you do not have to configure macro's...

Thanks, Tom

hi tom,

as per my SWITCH notes, i'm not sure whether you're referring to the 'switchport host' interface command.

Switch(config-if)#do sh run int f0/24

Building configuration...

Current configuration : 34 bytes

!

interface FastEthernet0/24

end

Switch(config-if)#switchport ?

  access         Set access mode characteristics of the interface

  host           Set port host

  mode           Set trunking mode of the interface

  nonegotiate    Device will not engage in negotiation protocol on this interface

  port-security  Security related command

  priority       Set appliance 802.1p priority

  protected      Configure an interface to be a protected port

  trunk          Set trunking characteristics of the interface

  voice          Voice appliance attributes

Switch(config-if)#switchport host ?

 

Switch(config-if)#switchport host

switchport mode will be set to access

spanning-tree portfast will be enabled

channel group will be disabled

Switch(config-if)#do sh run int f0/24

Building configuration...

Current configuration : 82 bytes

!

interface FastEthernet0/24

switchport mode access

spanning-tree portfast

end

Hi John,

I guess that must be it. As I remember it a couple more settings were modified, but maybe I remember it wrong.

Thanks!

Regards, Tom

Hi,

I tried to skim through my notes and this is the closest I could find.

The other lines must be added manually. Good luck with CCNP!

Sent from Cisco Technical Support iPhone App

Thanks John!

Best regards, Tom