VLAN, VTP, DTP, Ether channel Cheat Sheet
PAgP
switchport trunk native vlan <number>
Sets the native VLAN
channel-group <number> mode [active |
passive ]
Sets port as active or passive.
VTP Configuration
vtp domain <domain>
Sets VTP domain
vtp password <password>
Sets the password for the VTP
vtp mode [server | client | transparent]
switchport mode dynamic desirable
Creates a dynamic trunk
switchport mode trunk
Creates a static trunk
switchport mode dynamic auto
Makes the interface able to convert the link to a trunk link
switchport nonegotiate
Prevents the interface generating DTP frames
DTP LACP
switchport trunk native vlan <number>
Sets the native VLAN
channel-group <number> mode [active | passive ]
Sets port as active or passive.
vlan <number>
Creates VLAN with the given number
name <name>
Assign a name to the created vlan
switchport mode [ access | trunk]
Sets an interface to access or trunk mode
switchport access vlan <number>
Adds a vlan onto an interface
Vlan Configuration
Verification commands
show ip interface brief
Overview of all interfaces
show ip route
Show all routes
show vlan brief
Overview of all vlans and the ports in it
show interface trunk
Shows all trunks
tracert [ip]
Show if hops to an ip are correct
show vtp status
Verification for VTP
show etherchannel summary
Shows all ethercannels
show interfaces trunk
Verify existing trunks
VLAN, VTP, DTP, Ether channel Cheat Sheet With examples
Extended VLAN
vtp mode transparent switch must be transparent
vlan 2000 any number higher than 1005 is an extended VLAN
VTP Configuration
vtp domain CCNA set the domain as CCNA
vtp mode server set mode (server, client or transparent)
vtp password cisco set password
show vtp status confirm vtp config
interface f0/1 enter interface configuration
mode
switchport mode dynamic desirable set vtp mode (desirable
or auto)
show interfaces trunk confirm trunk configuration
modes: client, trunk, dynamic desirable, dynamic auto
desirable actively tries to create trunk
auto only creates trunk when other side wants a trunk
DTP Confiuration
LACP Configureaton
interface range f0/1-2 configure multiple interfaces at once
switchport mode trunk set as trunk
switchport trunk native vlan 99
channel-group 2 mode active create link aggregation for ports - can be active or passive
no shutdown
active: try to create link aggregation automatically
passive: only create link aggregation when requested by other port
1. interface range f0/3-4 configure multiple interfaces at onc3
2.channel-group 1 mode desirable add ports to etherchannel 1, mode can be auto or desirable
3.no shutdown
4.show run interface f0/3 show configuration of specific interface
5.show interfaces f0/3 switchport see operational mode
6.show etherchannel summary confirm that ehterchannel has been created
7.interface port-channel 1 configure the created etherchannel
8.switchport mode trunk
9.switchport trunk native vlan 99 acts like a normal switchport
desirable: try to create ether channel automatically
auto: only create ether channel when requested by other port
PAgPConfigure
Generic VLAN commands
vlan 10 create vlan with number 10
name Red set the name of the VLAN
switchport mode [access|trunk] configure port as access or trunk port
switchport access vlan 10 configure port as belonging to vlan 10
show vlan brief confirm vlan configuration

VLAN, VTP, DTP, Ether channel Cheat Sheet With examples.pptx

  • 1.
    VLAN, VTP, DTP,Ether channel Cheat Sheet PAgP switchport trunk native vlan <number> Sets the native VLAN channel-group <number> mode [active | passive ] Sets port as active or passive. VTP Configuration vtp domain <domain> Sets VTP domain vtp password <password> Sets the password for the VTP vtp mode [server | client | transparent] switchport mode dynamic desirable Creates a dynamic trunk switchport mode trunk Creates a static trunk switchport mode dynamic auto Makes the interface able to convert the link to a trunk link switchport nonegotiate Prevents the interface generating DTP frames DTP LACP switchport trunk native vlan <number> Sets the native VLAN channel-group <number> mode [active | passive ] Sets port as active or passive. vlan <number> Creates VLAN with the given number name <name> Assign a name to the created vlan switchport mode [ access | trunk] Sets an interface to access or trunk mode switchport access vlan <number> Adds a vlan onto an interface Vlan Configuration Verification commands show ip interface brief Overview of all interfaces show ip route Show all routes show vlan brief Overview of all vlans and the ports in it show interface trunk Shows all trunks tracert [ip] Show if hops to an ip are correct show vtp status Verification for VTP show etherchannel summary Shows all ethercannels show interfaces trunk Verify existing trunks
  • 2.
    VLAN, VTP, DTP,Ether channel Cheat Sheet With examples Extended VLAN vtp mode transparent switch must be transparent vlan 2000 any number higher than 1005 is an extended VLAN VTP Configuration vtp domain CCNA set the domain as CCNA vtp mode server set mode (server, client or transparent) vtp password cisco set password show vtp status confirm vtp config interface f0/1 enter interface configuration mode switchport mode dynamic desirable set vtp mode (desirable or auto) show interfaces trunk confirm trunk configuration modes: client, trunk, dynamic desirable, dynamic auto desirable actively tries to create trunk auto only creates trunk when other side wants a trunk DTP Confiuration LACP Configureaton interface range f0/1-2 configure multiple interfaces at once switchport mode trunk set as trunk switchport trunk native vlan 99 channel-group 2 mode active create link aggregation for ports - can be active or passive no shutdown active: try to create link aggregation automatically passive: only create link aggregation when requested by other port 1. interface range f0/3-4 configure multiple interfaces at onc3 2.channel-group 1 mode desirable add ports to etherchannel 1, mode can be auto or desirable 3.no shutdown 4.show run interface f0/3 show configuration of specific interface 5.show interfaces f0/3 switchport see operational mode 6.show etherchannel summary confirm that ehterchannel has been created 7.interface port-channel 1 configure the created etherchannel 8.switchport mode trunk 9.switchport trunk native vlan 99 acts like a normal switchport desirable: try to create ether channel automatically auto: only create ether channel when requested by other port PAgPConfigure Generic VLAN commands vlan 10 create vlan with number 10 name Red set the name of the VLAN switchport mode [access|trunk] configure port as access or trunk port switchport access vlan 10 configure port as belonging to vlan 10 show vlan brief confirm vlan configuration