cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7897
Views
5
Helpful
5
Replies

switchport mode dynamic desirable

rsamuel708
Level 1
Level 1

Are there any pitfalls of having this command on interfaces that will never be used for trunks? i.e. any unneeded traffic etc.

Thanks in advance.

/rls

5 Replies 5

Edison Ortiz
Hall of Fame
Hall of Fame

They can actually become trunking interfaces if connected to another switch with mode desirable or mode auto

If you don't want to ever have those interfaces in trunking mode, change it to mode access

HTH,

__

Edison.

The majority of our switch interfaces are configured as such:

interface FastEthernet1/0/6

switchport access vlan 120

switchport mode dynamic desirable

duplex full

speed 100

spanning-tree portfast

...so in this case, I should just be removing the 'switchport mode dynamic desirable' line, correct?

/rls

Removing the line won't fix the problem.

The switchport needs to have a mode to run on. It depends on the hardware but removing the line may set your switchport to dynamic auto. If you are connecting to hosts, the recommended macro to run is switchport host

http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_46_se/command/reference/cli3.html#wp1948119

HTH,

So just to be clear, the 'switchport host' command will replace the other command in the configuration once I enter it in config mode?

/rls

switchport host is a macro. The command is clearly explained on the link I posted. If the commands that are part of the macro are already under the switchport, they won't be removed. It's like a copy and paste of a template that you may have.

__

Edison.

Review Cisco Networking for a $25 gift card