cisco - router | grundkonfiguration · stp #show spanning-tree (config)#spanning-tree vlan 1...
TRANSCRIPT
Christian Lepuschitz HTL - Villach Basiskonfiguration
CISCO - Router | Grundkonfiguration
Grundkonfigurationen
#erase startup-config löscht NVRAM #reload Reboot #configure terminal (config)#hostname XXX Hostname einstellen (config)#ip host name NAME x.x.x.x Eintrag zur Hosttabelle hinzufügen (config)#no ip domain-lookup DNS-Lookup deaktivieren (config)#enable secret xxxx MD5-Passwort einstellen
KONSOLE ABSICHERN (config)#line console 0 Umschalten in den Konsole-
Konfigurationsmodus (config-line)#password xxxx Passwort vergeben (config-line)#login Benutzer muss sich anmelden
TELNET ABSICHERN (config)#line vty 0 4 Umschalten in Telnet-Konfigurationsmodus (0 -
4)! (config-line)#password xxx Passwort vergeben (config-line)#login Benutzer muss sich anmelden
NÜTZLICHES (config-line)#logging synchronous Logmeldungen in extra Zeile #copy running-config startup-config Aktive Konfiguration in den NVRAM laden
Netzwerkschnittstellen
ETHERNET (config)#interface Ethernet 0/0 Umschalten aus globalen Konfigurationsmodus (config-if)#description xxx Beschreibung (config-if)#ip address x.x.x.x y.y.y.y IP / SM einstellen (config-if)#no shutdown Interface aktivieren
SERIAL (config)#interface Serial 0/0 Umschalten aus globalem Konfigurationsmodus (config-if)#description xxx Beschreibung (config-if)#ip address x.x.x.x y.y.y.y IP / SM einstellen (config-if)#clock rate 56000 Clockrate einstellen (DCE) (config-if)#no shutdown Interface aktivieren
LOOPBACK (config)#interface lookback 0 Umschalten aus globalem Konfigurationsmodus (config-if)#ip address x.x.x.x y.y.y.y IP / SM einstellen
Christian Lepuschitz HTL - Villach Basiskonfiguration
OSPF
(config)#router ospf 1 (config-router)#network x.x.x.x 0.0.0.0 area 20 Alle Netzwerke 0.0.0.0 255.255.255.255
default-information originate //default route mitschicken
(config-router)#auto-cost reference-bandwith 10 10^10 (config-if)#bandwith 64 Bandbreite auf 64KBit/s setzen (config-if)#ip ospf priority <num> Priorität setzen (config-if)#ip ospf cost <num> Kosten setzen
VLAN - VTP #delete flash:vlan.dat Alte VLAN Konfiguration löschen #vlan database (vlan)#vlan 2 name kueche VLAN 2 mit bestimmtem Namen erstellen (vlan)#end (config)#interface vlan 2 (config-if)#ip address x.x.x.x y.y.y.y Nur beim Management VLAN! (config-if)#no shutdown VLAN - Interface aktivieren
PORTZUORDNUNG (ACCESS) (config)#int range fa0/1 - 11 (ab bestimmter IOS Version) (config-if)#switchport mode access (config-if)#switchport access vlan 2 (config-if)#no shutdown
VLAN NATIV (config)#interface Fa0/1 (config)#switchport trunk native vlan 3
TRUNK LINKS (config)#interface fa0/23 (config-if)#switchport mode trunk (config-if)#no shutdown
VTP MODES (config)#vtp mode server/client/transparent VTP - Modus einstellen (config)#vtp version 2 VTP - Version festlegen (config)#vtp domain xxx Domainnamen festlegen (config)#vtp password xxx VTP - Passwort einstellen
RIPv2
(config)#router rip (config-router)#version 2 RIP - Version einstellen (config-router)#network 192.168.1.0 Netzwerk hinzufügen (config-router)#no auto-summary (config-router)#passive-interface Fa0/1 Fa0/1 in den passiven Modus schalten #show rip database Zeigt den Inhalt der RIP-Routing-Table
Etherchannel
(config)#interface range gi0/4 - 5 (config-if-range)#switchport mode access
Christian Lepuschitz HTL - Villach Basiskonfiguration
(config-if-range)#switchport access vlan 10 (config-if-range)#channel-group 5 mode desireable
(config-if-range)#exit
Router on a Stick (config)#int fa0/0 (config-if)#no shutdown (config-if)#exit (config)#int fa0/0.1 (config-subif)#encapsulation dot1Q 1 native (config-subif)#encapsulation dot1Q 10 VLAN 10 (config-subif)#ip address x.x.x.x y.y.y.y
STP
#show spanning-tree (config)#spanning-tree vlan 1 priority 4096 STP - Priotität setzen
Inter VLAN Routing
(config)#ip routing (config)#interface vlan 2 (config-if)ip address x.x.x.x y.y.y.y Default-Gateway für das VLAN (config-if)#no shutdown
Port Security - Switch
mac-address-table static <mac> vlan 1 int fa0/2 Statischer Eintrag switchport port-security mac-address <mac> Port-Security switchport port-security mac-address sticky Sticky
VLSM
Anzahl der Hosts Subnetzmaske CIDR - Nummer 2 255.255.255.252 30 6 255.255.255.248 29 14 255.255.255.240 28 30 255.255.255.224 27 62 255.255.255.192 26 126 255.255.255.128 25 254 255.255.255.0 24 510 255.255.254.0 23 1022 255.255.252.0 22 2046 255.255.248.0 21 4094 255.255.240.0 20 8190 255.255.224.0 19 16383 255.255.192.0 18 32767 255.255.128.0 17 65535 255.255.0.0 16
Christian Lepuschitz HTL - Villach Basiskonfiguration