Sei sulla pagina 1di 28

CCNP COMMANDS

DTP
S(config-if)#switchport mode dynamic desirable Makes the interface actively attempt to convert the link to a trunk link. (To become a trunk the neighboring device must be a trunk, desirable, or auto.) Enables the interface to convert into a trunk link. (To become a trunk the neighboring device must be trunk or desirable.) Prevents the interface from generating DTP frames. (Only use when the interface mode is access or trunk.) Puts the interface into permanent trunking mode and negotiates to convert the link into a trunk link. (Will become a trunk no matter what the neighboring device has.)

S(config-if)#switchport mode dynamic auto S(config-if)#switchport noegotiate S(config-if)#switchport mode trunk

SETTING THE ENCAPSULATION TYPE


S(config-if)#switchport trunk encapsulation isl S(config-if)#switchport trunk encapsulation dot1q S(config-if)#switchport trunk encapsulation negotiate ISL is used on the trunk link. 802.1q is used on the trunk link. Negotiates with the neighboring device on what protocol to use.

VERIFYING VLAN INFORMATION


S#sh vlan S#sh vlan id 2 S#sh vlan name marketing S#sh interface vlan x Displays VLAN info. Displays information of VLAN 2 only. Displays information of VLAN named marketing only. Displays interface characteristics for the specified VLAN.

ERASING VLAN CONFIGURATIONS


S(config-if)#no switchport access vlan 5 S(config-if)#no vlan 5 Removes port from VLAN 5 and reassigns it to VLAN 1. Removes VLAN 5 from the database.

VERIFYING VLAN TRUNKING


S#sh interface fa0/1 switchport S#sh int trunk Displays the admin and peratioal status of a trunking port. Displays all ports that are trunking

CONFIGURING ETHERCHANNEL

S(config-if)#channel protocol pagp S(config-if)#channel protocol lacp S(config-if)#channel-group 1 mode {desirable | auto | on | passive | active }

Says the PagP protocol will be used in this channel. Says the LACP protocol will be used in this channel. Creates channel group 1 and assigns the interface as part of it. Use what ever mode is necessary depending on what protocol you use.

VERIFYING ETHERCHANNEL s#sh run s#sh interface fa0/1 etherchannel S#sh etherchannel S#sh etherchannel 1 port-channel S#sh etherchannel summary S#sh pagp neighbor S#clear pagp 1 counters What is currently running on the device Displays interface etherchannel information Displays all EtherChannel information Displays port-channel information Displays a summary of etherCHANNEL information Shows PagP neighbor information Clears

VTP PRUNING S(config)#vtp pruning S(config-if)#switchport trunk pruning vlan remove 4, 20-30 S(config-if)#switchport trunk pruning vlan except 40-50

Enables VTP pruning.


Removesvlans 4 and 20-30 All vlans are pruning except 40-50

VERIFYING VTP S#show vtp status S#sh vtp counters General information about VTP configuration VTP counters for the switch

PRIVATE VLANS

Potrebbero piacerti anche