Bedienung von Cisco IOS Software Allgemeine Kommandos

Transcription

Bedienung von Cisco IOS Software Allgemeine Kommandos
Bedienung von Cisco IOS Software
Betriebssystembefehle IOS für Cisco Router
Index
Router Kommandos
1.
2.
3.
4.
5.
6.
7.
Usermode-Kommandos
Privilegemode Kommandos
Global configuration mode Kommandos
Interface subconfiguration mode Kommandos
Line subconfiguration mode Kommandos
Subnterface subconfiguration mode Kommandos
IP routing protocol subconfiguration mode Kommandos
Allgemeine Kommandos
Usermode
Sl. No.
Befehle
1
disconnect
2
enable
3
ping <host-name | ip-address>
4
traceroute <hostname | ip-address >
Beschreibung
Loggt den Benutzer aus und
trennt Telnet-Season
Überprüft physikalische
Verbindung mit
Standardpaketen. Extended
Ping ohne Parameter mgl.
Erweiterter Ping mit
Rückmeldung aller Router
Sl. No.
1
Privilegemode - Kommandos
Befehl
clear arp-cache
2
configure terminal
3
copy running-config startup-config
4
copy startup-config running-config
5
debug ip packet
6
disable
7
disconnect <TELNET_ID>
8
erase startup-config
9
logout
10
ping <host-name>
11
ping <ip-address>
12
reload
13
resume <TELNET_ID>
14
show access-list
15
show banner
16
show cdp
17
show cdp interface
18
show cdp neighbor
19
show cdp traffic
20
show clock
21
show flash
22
show frame-relay lmi
23
show frame-relay map
24
show frame-relay pvc <dlci_num>
25
show history
26
show hosts
27
show interfaces
28
show interfaces ethernet 0
29
show interfaces loopback <port-number>
30
show interfaces serial 0
31
show ip arp
Beschreibung
Löscht den Arp-Cache
Wechselt in
Konfigurationsmodus, Befehle
zum Ändern der Konfiguration
möglich
Speichert aktuelle Konfiguration
Sprint in den UserEXEC Modus
zurück
Löscht alle
Konfigurationsdateien
Verlässt Konfigurationsmodus
Überprüft physikalische
Verbindung mit
Standardpaketen. Extended
Ping ohne Parameter mgl.
Accessliste von allen
eingestellten Protokollen
Status von CDP wie Holdtime
Value oder Pakete/60s
CDP Konfiguration auf
Interface-by-Interface-Basis.
Zeigt IOS-Images im
Flashspeicher
Genaue Statistik von LMI aus.
Zeigt alle geendeten FrameRelais PVCs und ihre Statistiken
an einem spezifizierten Router
Letzte 10 ausgeführten Befehle
Zeigt die Interface-Status und
Statistiken, ideal zur
Fehlersuche
Gibt den genutzten LMI Typ und
zusätzliche Statistiken aus
32
show ip eigrp neighbors
33
show ip eigrp neighbors detail
34
show ip eigrp topology
35
36
37
38
39
40
show
show
show
show
show
show
41
show ip route
42
show protocols
43
44
45
show running-config
show sessions
show startup-config
46
show version
47
48
49
telnet <host-name>
telnet <IP-address>
traceroute <hostname>
ip
ip
ip
ip
ip
ip
eigrp traffic
interface
interface brief
ospf database
ospf interface
ospf neighbor detail
50
traceroute <ip-address>
51
vlan database
52
53
write erase
write memory
54
write terminal
Zeigt Liste von der
benachbarten eigrp-Router
Zeigt eine Topologie vom
Netzwerk sowie andere Wege
an
Trafiic-Statistics für eigrp
Prüft IP-Konfiguration
Zeigt die Konfiguration der
statischen Routen und der
Standard-Gateways
Zeigt Informationen zu den
Schnittstellen
Listet aktuelle Telnet-Sessions
Versionsinformation für Hardund Firmware
Beginnt Telnet-Session
Erweiterter Ping mit
Rückmeldung aller Router,
ideal zum Aufspüren von
Routingproblemen
Zugriff auf VLAN- und VTPKonfiguration gestatten
Konfiguration löschen
Konfiguration festschreiben
Sl. No.
1
2
3
4
5
6
7
8
9
Global configuration Mode - Kommandos
Befehl
Beschreibung
Ausschließlich definierten IPs
access-list <list-num> {permit | deny} <sourceZugriff gestatten bzw.
ip-address>
verweigern
access-list <list-num> {permit | deny} <any>
access-list <list-num> {permit | deny} <ipaddress> <ip-address>
access-list <list-num> {permit | deny} <hostname> <ip-address>
Erstellt Login-Banner auf dem
banner motd <banner>
Router
cdp advertise-v2
cdp holdtime <seconds>
cdp run
cdp timer <seconds>
10
config-register <value>
11
12
dialer-list<list-num>protocol ip permit
enable password <password>
13
enable secret <password>
14
15
end
hostname <host-name>
16
interface ethernet 0
17
interface fastethernet <pnum>
18
interface loopback <port-number>
19
20
interface serial 0
interface vlan <vlan_num>
21
ip default-gateway <ip-address>
22
23
ip default-network <ip-address>
ip domain-lookup
24
ip host <name> <ip-address>
25
ip name-server <ip-address>
26
ip route <quelle> <subnetz> {ziel | interface}
Hexadezimaler oder dezimaler
Wert, der die 16-bit
Konfiguration im Register
darstellt. Das Register wird zum
Starten des Routers verwendet.
Der Wertebereich kann von 0x0
bis 0xFFFF (0 bis 65535 im
Dezimalbereich) liegen.
Normalerweise ist der
Standard-Wert 0x2102
Passwort vergeben
Verschlüssle Passwort nach
deren Festlegung
Zugang zum Ethernet-Interface
dem Subkonfigurations-Modus
Erstelle eigene LoopbackAdresse. Die Port können
zwischen 0 to 2147483647
liegen
Standard-Gateway festlegen.
Wird genutzt, wenn Router eine
Anforderung mit eingetragenen
Routen nicht bedienen kann
Kompletter Befehl:
ip host name [tcp-port]
address1 [address2...address8]
DNS-Server zur
Namenauflösung eintragen
Definiert Routingeinträge
27
ip route 0.0.0.0 0.0.0.0 <ip-address>
28
ip route <ip-address> <ip-address> <ip-address>
29
ip route <ip-address> <ip-address> serial 0
30
ip routing
31
ipx routing
32
isdn switch-type <switch_type>
33
line aux
34
line console 0
35
line vty
36
no banner motd
37
no cdp run
38
39
40
41
42
43
44
no ip domain-lookup
no ip routing
no router eigrp
no router ospf
no router rip
no vlan <vlan_num>
router eigrp <aut_sys>
45
router ospf <proc_id>
46
router rip
47
48
snmp-server enable traps vtp
username <name> password <password>
Zugang zu Konsolen-Interface,
hier Konsolenpart 0
Unterstützt werden 16
simultane Telnet-Verbindungen,
Nummerierung von 0-15.
cdp am Router kann explizit
aktiviert/deaktiviert werden
Deaktiviert alle DNS-Lookups
Process_id is locally significant
and is used to differentiate
different ospf processes running
on a router.
Startet den
Konfigurationsmodus für das
RIP-Routing
Benutzer anlegen
Sl. No.
1
2
Interface subconfiguration Mode - Kommandos
Befehl
Beschreibung
Festlegung der Bandbreite
bandwidth <kilobits>
(Geschwindigkeit) in
kb/Sekunde.
cdp enable
Desired clock rate in bits per
second: 1200, 2400, 4800,
9600, 19200, 38400, 56000,
64000 etc.
3
clock rate <bps>
4
compress stac <num> in
5
description <string>
6
dialer-group<dialer_list_#>
7
dialer map ip <ip-address> <des-phone>
dialer map ip <ip-address> name <hostname>
<des-phone>
dialer string< phone_#> <class map_name>
8
9
Beschreibung (1 bis 80 Zeichen)
10
encapsulation
11
encapsulation framerelay<num> in
12
<encapsulation-type>
frame-relay lmi-type <lmi_type>
19
frame-relay map<protocol-name>
<dlci_num>
frame-relay map<protocol-name>
<dlci_num> broadcast
frame-relay map<protocol-name>
<dlci_num> broadcast cisco
frame-relay map<protocol-name>
<dlci_num> broadcast ietf
frame-relay map<protocol-name>
<dlci_num> cisco
frame-relay map<protocol-name>
<dlci_num> ietf
ip access-group <num> in
20
ip access-group <num> out
21
ip address <ip-address> <sub-net mask>
13
14
15
16
17
18
22
isdn spid1<spid_num>
23
isdn spid2<spid_num>
24
keepalive <seconds>
25
login
26
no bandwidth
27
no cdp enable
<ip-address>
Verkapselung folgender Typen
(zum Beispiel PPP/HDLC)
Festlegen des LMI-Typs,
welcher zur Kommunikation
zwischen Router und
Transportswitchs genutzt wird.
LMI Typ ist festgelegt am
kompletten Interface, nicht
ausschließlich am VC.
Konfiguriert die manuelle
resolution of PVC's.
<ip-address>
<ip-address>
<ip-address>
<ip-address>
<ip-address>
Defines the spid's that are used
to authenticate call
requests.Used only on local
connection between router and
isdn switch.
28
33
no clock rate
no frame map <protocol name> <ip-address>
<dlci_num>
no frame map<protocol-name> <ip-address>
<dlci_num> broadcast
no frame map<protocol-name> <ip-address>
<dlci_num> cisco
no frame map<protocol-name> <ip-address>
<dlci_num> ietf
no ip address
34
no shutdown
35
shutdown
36
shutdown switchport
37
speed
38
switchport access vlan <vlan_num>
switchport port-security mac-address
sticky<mac_addr>
switchport port-security maximum <max_macadd>
switchport port-security violation
<violat_mode>
29
30
31
32
39
40
41
Deaktiviert laufende Interfaces
Bestimmtes Interface
deaktivieren
2
Line subconfiguration mode Kommandos
Befehl
Beschreibung
Festlegen des Timeout für
exec-timeout <minuten> [sekunden]
Ausführungen
[Sekunden sind optional]
logging synchronous
3
password <password>
Sl. No.
1
Passwort festlegen
9
10
Subinterface Subconfiguration Mode - Kommandos
Befehl
Beschreibung
Benutzerdefinierter Hilfetext zu
description <string>
einem Interface, z.B.
„eth0: Verbindung Internet“
Man kann DLCI konfigurieren,
wenn man Datenverbindungen
bestimmten Nummern zuordnen
frame-relay interface-dlci <dlci_num>
will. Einfaches Switchen ist
dann möglich, da sich Router
nach DLCI-Nummer verbinden
frame-relay map <protocol-name> <ip-address>
<dlci_num>
frame-relay map <protocol-name> <ip-address>
<dlci_num> broadcast
frame-relay map <protocol-name> <ip-address>
<dlci_num> broadcast cisco
frame-relay map <protocol-name> <ip-address>
<dlci_num> broadcast ietf
frame-relay map <protocol-name> <ip-address>
<dlci_num> cisco
frame-relay map <protocol-name> <ip-address>
<dlci_num> ietf
ip address <ip-address> <subnet-mask>
no ip address
11
no shutdown [int]
12
shutdown [int]
Sl. No.
1
2
3
4
5
6
7
8
Sl. No.
1
2
Aktivieren von deaktivierten
Interfaces
Deaktivieren bestimmter
Interfaces
IP Routing Protocol Subconfiguration Mode - Kommandos
Befehl
Beschreibung
Mit dem Router verbundene
network <ip-address>
Netzwerke
Entfernen von
no network <ip-address>
Netzwerkeinträgen
Basierend auf der Dokumentation von
Cisco Systems, Inc. „Cisco IOS Software Command Summary Cisco IOS Release 11.1”,
die auch im Internet unter verfügbar ist:
http://www.cisco.com/univercd/home/home.htm
© Copyright 2005 Martin Heidenreich.
http://www.martin-heidenreich.com
Fehler oder Hinweise bitte per Mail an [email protected] unter Angabe der SI-Nummer!