cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
594
Views
0
Helpful
1
Replies

VLAN Trunk port

chris.lau
Level 1
Level 1

Can anyone explain to me what is this config means?

interface GigabitEthernet0/4

switchport access vlan 912

switchport trunk allowed vlan 915-917

switchport mode trunk

no mdix auto

no cdp enable

spanning-tree portfast trunk

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

Hi Chris,

That configuration is a configuration of a trunk port.

The first command, "switchport access vlan 912", is currently ignored, because it applies only if the port is in access mode, which is not the case right now.

The second command defines which VLANs are transported over this trunk. Currently, only VLANs in the range from 915 to 917 are transported over it. Frames from any other VLANs are not allowed on it - they will never be sent out and they will be dropped if received.

The third command sets this port unconditionally to the trunking mode.

The fourth command, "no mdix auto", turns off the automatic crossover capability on this port. With this setting, you have always to use the proper type of cable (straight-through, crossover) when connecting to another device.

The fifth command turns off the Cisco Discovery Protocol on this port.

Lastly, the sixth command allows this port to rapidly transition to the Forwarding state in the Spanning Tree Protocol, even if it is in trunking mode.

I hope this helps.

Best regards,

Peter

View solution in original post

1 Reply 1

Peter Paluch
Cisco Employee
Cisco Employee

Hi Chris,

That configuration is a configuration of a trunk port.

The first command, "switchport access vlan 912", is currently ignored, because it applies only if the port is in access mode, which is not the case right now.

The second command defines which VLANs are transported over this trunk. Currently, only VLANs in the range from 915 to 917 are transported over it. Frames from any other VLANs are not allowed on it - they will never be sent out and they will be dropped if received.

The third command sets this port unconditionally to the trunking mode.

The fourth command, "no mdix auto", turns off the automatic crossover capability on this port. With this setting, you have always to use the proper type of cable (straight-through, crossover) when connecting to another device.

The fifth command turns off the Cisco Discovery Protocol on this port.

Lastly, the sixth command allows this port to rapidly transition to the Forwarding state in the Spanning Tree Protocol, even if it is in trunking mode.

I hope this helps.

Best regards,

Peter

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