10-10-2007 10:54 AM - edited 03-05-2019 07:00 PM
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?
Solved! Go to Solution.
10-10-2007 11:41 AM
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:
Leo
10-10-2007 10:59 AM
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
10-10-2007 11:08 AM
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?
10-10-2007 11:19 AM
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
10-10-2007 11:33 AM
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"?
10-10-2007 11:41 AM
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:
Leo
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: