Die ganze Cisco Befehlsliste gibt es als Excel-File HIER zum download.
Hier ein paar Befehle für CISCO Router bzw. Switches:
Allgemein
1. Passwort erstellen und verschlüsseln
enable
configure terminal
enable secret "WERT"
service password-encryption
2. Password setzen
enable
configure terminal
enable password "PW"
3. Domain-lookup deaktivieren
enable
configure terminal
no ip domain-lookup
4. Hostname ändern
enable
configure terminal
hostname "WERT"
5. Speichern der Konfiguration
copy running-config startup-config
6. Speichern der Konfiguration
enable
write memory
7. Löschen des Switsches
erase startup-config (oder write erase)
8. Auslesen der aktuellen Konfiguration
enable
show running-config
9. Interfaces auflisten
show ip interface brief
10. Version anzeigen
show version
0×2102 MIT startup-config
0×2142 OHNE startup-config
11. MIT startup-config ändern
configure terminal
config-register 0×2102
12. Aktivieren von Telnet access
configure terminal
line vty 0 4
password "WERT"
login
13. Password vergessen?
Router ausschalten und mit Strg+[PAUSE] neustarten
confreg 0×2142
Switch neustarten
enable
copy startup-config running-config
configure terminal
enable password cisco (oder no enable password)
config-register 0×2102
exit
write memory
14. Flash iOS kopieren
enable
copy flash:c1841-advsecurityk9-mz.124-19.bin tftp:
Address or name of remote host []? 192.168.1.1
15. Flash iOS löschen
delete flash:c1841-advsecurityk9-mz.124-19.bin
Switch neustarten
16. Flash iOS download
tftpdnld
"IP_ADDRESS=192.168.1.254"
"IP_SUBNET_MASK=255.255.255.0"
"DEFAULT_GATEWAY=192.168.1.1"
"TFTP_SERVER=192.168.1.1"
"TFTP_FILE=c1841-advsecurityk9-mz.124-19.bin"
Tftpdnld
Werte kontrollieren und mit "Y" bestätigen.
Interface konfigurieren
1. Öffnen eines Interfaces
enable
configure terminal
interface (fa/gig/vlan) 0/0
2. Öffnen eines Sub-Interfaces
enable
configure terminal
interface (fa/gig/vlan) 0/0."ZAHL"
3. Einstellen einer IP Adresse
Interface …
ip address 192.168.10.10 255.255.255.0
no shutdown
4. Interface zu einem VLAN Zuweisen
interface fa "ZAHL"
switchport access vlan "ZAHL"
interface Serial 0/1/0
no ip address
no shutdown
no fair queue
clock rate 64000 (Default: 200000000)
Routen
1. Statisch
configure terminal
ip route "NW-Adresse Ziel" "SubNet Ziel" "Gateway"
2. Dynamisch (RIP)
configure terminal
router rip
Version 2
network "NW Adresse"
3. OSPF
configure terminal
router ospf "ZAHL"
network "NW Adresse" "Wildcard SUB" area "ID"
redistribute connected subnets
Wildcard Beispiele:
255.255.255.0 = 0.0.0.255
255.255.255.252 = 0.0.0.3
VLAN Konfigurieren
1. VLAN in Database hinzufügen
vlan database
vlan "ZAHL"
2. Alle VLANs anzeigen
show vlans
3. Alle VLANs löschen
delete flash:vlan.dat
Trunk Konfigurieren
1. Zuweisen eines Interfaces
configure terminal
interface fa "ZAHL"
switchport trunk allowed vlan "ZAHL" "ALL"
2. Zuweisen von VLANs
configure terminal
interface fa "ZAHL"
switchport mode trunk
3. Konfigurieren des dot1q
configure terminal
interface fa "ZAHL".SUBNET
encapsulation dot1q "ZAHL" (VLAN)
DHCP Konfigurieren
1. DHCP für VLAN aktivieren
ip dhcp pool vlan12
default-router 192.168.12.1
network 192.168.12.0 255.255.255.0
exit
2. IP Adresse aus DHCP exkludieren
ip dhcp excluded-address 192.168.111.2


Letzte Kommentare