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

Change switchport mode automatically?

jackawang
Level 5
Level 5

How do I configure a CAT2900 switch port to automatically change between access mode and trunk mode by detecting the client plugged into it?

Normally the port will stay in trunk mode. My client wants to utilize the same switch port to install/access servers when needed. In that case, the switch port needs to be reconfigured to access mode. Is there a way to have the switch port change its mode adaptive to the client automatically?

1 Accepted Solution

Accepted Solutions

You come up with more questions than I can answer by head! ;-)

Here's some reading on the subject, I believe you will find the answers in there:

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/configuration/guide/layer2.html

Leo

View solution in original post

5 Replies 5

lgijssel
Level 9
Level 9

Is your switch a 2900XL or do you mean a 2950?

If your software supports it, you may also use "switchport mode dynamic". You will have to test it.

I cannot confirm that a 2900 is capable of this.

regards,

Leo

2950. It is a pretty new one.

Once done "switchport mode dynamic", how does the switchport know

In access mode:

Which VLAN to forward if I have multiple VLANS configured?

In trunk mode:

How do I have it trunk selected VLANS instead of all?

You will configure that using: "switchport access vlan xx", defaults to vlan1.

In trunk mode: How do I have it trunk selected VLANS instead of all?

You can configure that using: "switchport trunk allowed vlan "

Another useful command to see what is happening: "sh int fa0/.xx switchport"

This will give you all info on the subject.

regards,

Leo

Here is the configuration I made:

interface GigabitEthernet0/1

switchport access vlan 10

switchport trunk allowed vlan 2-5,10

switchport mode dynamic auto

!

I'll need to verify if it works as expected. In what case should I use "switchport mode dynamic desirable"?

You come up with more questions than I can answer by head! ;-)

Here's some reading on the subject, I believe you will find the answers in there:

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/configuration/guide/layer2.html

Leo

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card