0% found this document useful (0 votes)
90 views3 pages

Switch Commands

This document provides standard commands and configuration procedures for switches, including: 1. Setting the hostname, saving configurations, displaying versions and configurations, checking interfaces and VLANs. 2. Securing the switch by setting passwords on console, enable, and VTY lines, adding a banner, and preventing DNS lookups. 3. Configuring ports and VLANs by clearing port configurations, enabling user ports, creating/deleting VLANs, assigning ports to VLANs, and configuring trunking.

Uploaded by

Bart De Zaeytydt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views3 pages

Switch Commands

This document provides standard commands and configuration procedures for switches, including: 1. Setting the hostname, saving configurations, displaying versions and configurations, checking interfaces and VLANs. 2. Securing the switch by setting passwords on console, enable, and VTY lines, adding a banner, and preventing DNS lookups. 3. Configuring ports and VLANs by clearing port configurations, enabling user ports, creating/deleting VLANs, assigning ports to VLANs, and configuring trunking.

Uploaded by

Bart De Zaeytydt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy