Overzicht van commando's voor Packet Tracer: Switches configureren, VLANs, Trunk Ports, etc.
Switch> enable
Switch# configure terminal
Switch(config)# hostname Switch1
Switch1(config)#
Switch(config)# enable secret wachtwoord
Switch(config)# line console 0
Switch(config-line)# password wachtwoord
Switch(config-line)# login
Switch(config)# line vty 0 15
Switch(config-line)# password wachtwoord
Switch(config-line)# login
Switch(config)# interface fastEthernet 0/1
Switch(config-if)# description Beschrijving
Switch(config-if)# no shutdown
Switch(config)# vlan 10
Switch(config-vlan)# name VLAN10
Switch(config-vlan)# exit
Switch(config)# interface fastEthernet 0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch# show vlan brief
Switch(config)# no vlan 10
Switch(config)# interface fastEthernet 0/24
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan 1
Switch(config-if)# switchport trunk allowed vlan 10,20,30
Switch# show interfaces trunk
R1> Enable
R1# Conf t
R1(config)# interface G0/0
R1(config-if)# no shut
R1(config-if)# interface G0/0.13
R1(config-subif)# ip address 10.0.0.1 255.255.255.128
R1(config-subif)# encapsulation dot1Q 13
R1(config-subif)# ip address 10.0.0.1 255.255.255.128
R1(config-subif)# interface G0/0.24
R1(config-subif)# encapsulation dot1Q 24
R1(config-subif)# ip address 10.0.0.129 255.255.255.128
Switch(config)# interface fastEthernet 0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security maximum 1
Switch(config-if)# switchport port-security violation shutdown
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.1.1 255.255.255.0
Switch(config-if)# no shutdown
Switch(config)# ip default-gateway 192.168.1.254
Switch# show ip interface brief
Switch# show mac address-table
Switch# show interfaces
Switch# show running-config
Switch# copy running-config startup-config
Switch# erase startup-config
Switch# reload
Switch(config)# spanning-tree mode pvst
Switch(config)# spanning-tree vlan 10 root primary
Switch# show spanning-tree
Switch# show vlan brief
Switch# show interfaces switchport
Switch# show interfaces trunk
Switch# show running-config
Switch# show interfaces switchport
Switch# ipconfig
R1# show ip interface brief
R1# show interfaces
Switch(config)# ip dhcp pool VLAN10
Switch(dhcp-config)# network 192.168.10.0 255.255.255.0
Switch(dhcp-config)# default-router 192.168.10.1
Switch(dhcp-config)# dns-server 8.8.8.8
Switch(config)# interface range fastEthernet 0/1 - 2
Switch(config-if-range)# channel-group 1 mode on
Switch(config-if-range)# exit
Switch(config)# interface port-channel 1
Switch(config-if)# switchport mode trunk
Switch(config)# vtp mode server
Switch(config)# vtp domain mijnDomein
Switch(config)# vtp password wachtwoord
Switch# show cdp neighbors
Switch(config)# lldp run
Switch# show lldp neighbors
Switch(config)# monitor session 1 source interface fastEthernet 0/1
Switch(config)# monitor session 1 destination interface fastEthernet 0/2