Sie sind auf Seite 1von 3

SWITCHES

Standard Commands
Set hostname
conf t
hostname “naam”
Save configuration to NVRAM
copy run start
enter
Clock settings
sh clock
clock set hh:mm:ss dd Mnd yyyy
Display OS version
sh version
Display running configuration
sh running-config
Display connected interfaces switch
sh ip interface br
Display VLANs
sh flash
Display VLAN configuration
sh vlan br / sh int vlan
See which ports belong to VLAN
sh vlan id “nummer”
Display configured trunks VLAN
sh interface trunk
Delete VLAN.dat file
delete vlan.dat
enter
Erase startup configuration
erase startup-config
Remove old configuration from RAM-memory
reload
enter
no
Verify communication between switches
ping “IP-adres andere switch”

Switches 1
Security
Prevent unauthorized access to console line
conf t
line console 0
password “paswoord”
login
end
Prevent unauthorized access to switch
conf t
enable password “paswoord”
end
Prevent unauthorized access to switch (encrypted)
conf t
enable secret “paswoord” (overschrijft enable password)
end
Prevent unauthorized access to VTY line (Telnet access)
conf t
line vty 0 15
password “paswoord”
login
end
Encrypt enable en console passwords
conf t
service password-encryption
Message of the day banner
conf t
banner motd “Authorized Access Only!”
Prevent unwanted DNS lookups
no ip domain-lookup
Reset password
 verbind pc met console poort (trek daarna stroomstekker switch uit)
 hou “mode”-knop ingedrukt + steek stekker opnieuw in
=> switch:
flash_init
dir flash:
rename flash:config.txt flash:config.old
boot
enter
en
delete flash:config.old
copy run start
reload

Switches 2
Configuration
Clear existing port configurations
conf t
int range fa0/1-24
shutdown
int range gi0/1-2
shutdown
Enable user-ports
conf t
int range fa0/1-20
switchport mode access
no shut
Create VLAN
conf t
vlan “nummer”
name “naam”
end
Delete VLAN
conf t
no vlan “nummer”
end
Assign ports to VLAN
conf t
int range fa0/6-10
switchport access vlan “nummer”
end
Assign managment VLAN (voor elk IP-adres in deze VLAN doen)
conf t
int vlan 99
ip addr “ip-adres” “netmask”
end
Configure trunking
conf t
int range fa0/1-5
switchport mode trunk (sometimes: switchport trunk encapsulation dot1q)
switchport trunk native vlan 99
no shut
Disassociate port from VLAN
conf t
int fa0/15
no switchport access vlan “nummer”
end

Switches 3

Das könnte Ihnen auch gefallen