Command:

switchport nonegotiate


Mode:

Switch(config-if)#


Syntax:

switchport nonegotiate

no switchport nonegotiate

 

Syntax Description:

This command has no arguments or keywords.

 

Command Description:

Use the switchport nonegotiate interface configuration command to specify that Dynamic Trunking Protocol (DTP) negotiation packets are not sent on the Layer 2 interface. The switch does not engage in DTP negotiation on this interface. Use the no form of this command to return to the default setting.

The no form of the switchport nonegotiate command removes nonegotiate status.

This command is valid only when the interface switchport mode is access or trunk (configured by using the switchport mode access or the switchport mode trunk interface configuration command). This command returns an error if you attempt to execute it in dynamic (auto or desirable) mode.

Internetworking devices that do not support DTP might forward DTP frames improperly and cause misconfigurations. To avoid this, you should turn off DTP by using the switchport nonegotiate command to configure the interfaces connected to devices that do not support DTP to not forward DTP frames.

When you enter the switchport nonegotiate command, DTP negotiation packets are not sent on the interface. The device does or does not trunk according to the mode parameter given: access or trunk.

If you do not intend to trunk across those links, use the switchport mode access interface configuration command to disable trunking.

To enable trunking ona device that does not support DTP, use the switchport mode trunk and switchport nonegotiate interface configuration commands to cause the interface to become a trunk but to not generate DTP frames.


Example:

This example shows how to cause an interface to refrain from negotiating trunking mode and to act as a trunk or access port (depending on the mode set):

Switch(config-if)# switchport nonegotiate


Misconceptions:

On GigaStack GBICs, dynamic trunking is supported only when one port of a GigaStack GBIC is being used. If trunking is required on a GigaStack GBIC where both ports are in use, use the switchport mode trunk and switchport nonegotiate interface configuration commands on both GBIC interfaces to cause the interfaces to become trunks.


Related Commands:

None.


© Cisco Systems, Inc. 2001, 2002
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)