Ccna Commande 2
Ccna Commande 2
Configuring VLANs:
Create a new VLAN and give it a name:
SW1(config)# vlan 10
SW1(config-vlan)# name SALES
Configuring Trunks:
SW1(config)# interface fastEthernet 0/1
SW1(config-if)# switchport mode trunk ! options: access, trunk, dynamic auto,
dynamic desirable
SW1(config-if)# switchport trunk allowed vlan add 10 ! options: add, remove,
all, except
Configuring VTP:
Configure VTP mode:
The transparent VTP mode is used when an engineer wants to deactivate VTP on a particular switch
SW1(config)# vtp mode server ! options: server, client, transparent
Lists all the trunk ports on a switch including the trunk allowed VLANs:
SW1# show interfaces trunk
Lists information about the VLANs:
SW1# show vlan {brief | id | name | summary}
Lists VTP configuration (mode, domain-name, version, etc) and revision number:
SW1# show vtp status
STP optimization:
Hard coding the root bridge (changing bridge priority):
SW1(config)# spanning-tree vlan 1 root primary
SW1(config)# spanning-tree vlan 1 root secondary
! Priority must be a multiply of 4096
SW1(config)# spanning-tree [vlan 1]priority 8192
Shows information about the directly connected cisco devices including interfaces names
capabilities:
SW1# show cdp neighbors
Shows detailed information about the neighboring cisco devices including device address
and version of IOS they run:
SW1# show cdp neighbors detail
! OR
SW1# show cdp entry *