= Installierte Switche = == Internetzugang (TGS-Heizungskeller) == || Versorungskanal unter TGS-!KiGa || TGS-Heizungskeller || || KabelBW-Modem -> Allied GBit-Medienkonverter || Allied GBit-Medienkonverter -> Cisco 1941-Router || [[BR]] || KHWRS Server || KG Serverraum || TGS Heizungskeller || TGS Lehrerzimmer || TGS Musikzimmer || TGS Computerraum || ||server <- || 100MBit Switch (rot) <- || Cisco 1941 (BelWUE, rotes Netz) || -- || -- ||--|| || server <- || Lehrernetz (grau) || -> Allied Switch || -> GBit Switch || -- || -- || || -- || Orange (Mensa) <- || Allied Switch (orange) || -- || -- || -- || || || || TGS grün || -> Switch || -> 48 Port DLINK Switch [[BR]] -> Verteilung auf Klassenzimmer || -> 48 Port Cisco 3548 Switch || == Backbone / Netzstruktur == Als Backbone dient ein Cisco Catalyst 4506/Sup V-10GE (4516-10GE / 12.2(31r)SG3 12.2(54)SG) [172.16.0.1], sowie der Backbone der KWRS: Cisco Catalyst 4506/Sup V-10GE [172.16.0.2]. Die Stützpunkte sind mit - 5.09 (118): 2x1000TX (Kupfer)[[BR]] auf Cisco 4003 [cisco509 / 172.16.0.6] - (126) 4x1000FX (Glasfaser)[[BR]] auf DLINK 24Port 100TX 2PÜort GB-TX - 5.36 (138): 1000FX (Glasfaser) angebunden - zu 5.27 (128) 2x 1000TX[[BR]] auf Cisco 4003 [cisco527 / 172.16.0.10] - 5.47 (145): 4x 1000FX (Glasfaser)[[BR]] auf Cisco 4506 / Sup IV (4515 / 12.1(20r)EW1 12.2(20)EWA) [cisco547 / 172.16.0.8] - NwT Raum (001) - NwT Vorbereitung (V001) - NwT Raum (002) - NwT Vorbereitung (V002) - BK Vorbereitung Cisco 4006 / Sup IV (4515 / 12.1(11br)EW 12.1(20)E, EARLY) [ciscoBK / 172.16.0.12] - Bücherkeller 1.26: 2x 1000TX [[BR]] auf cisco 4003 [cisco126 / 172.16.0.11] Die TGS (Heizraum) wird über Glasfaser angesteuert: - 6x 1000 FX (Trunk) - cisco 4006 [ciscoTGS / 172.16.0.3] Der Haupt-Internetzugang (KabelBW/UnityMedia) ist vom TGS (Heizraum) angebunden: - 2x 1000 FX (Trunk) - cisco 3550 [ciscoKBW / 172.16.0.4] Weitere Internetzugänge (T@school) hängen - am cisco0027 (T@school KGy / fritz!box) - am ciscoKHWRS (T@school KHWRS / fritz!box) - am ciscoTGS (T@school TGS / fritz!box) TGS-Verwaltung, Hausmeister und Ganztag sind direkt am ciscoTGS angebunden, die Klassenzimmer sind über das Musikzimmer (DLink 100MBit, leise) von dort aus auch der PCRaum über einen eigenen Switch angebunden. Die Technik der KHWRS im Keller der TGS ist vom TGS (Heizraum) angebunden: - 2x 1000 FX (Trunk) - cisco 4003 [ciscoKHWRST / 172.16.0.5] Die Mensa hängt am cisco0027: - 2x 1000 FX (Trunk) - cisco 3550 [ciscoMensa / 172.16.0.7] = Betriebssysteme = * Cisco iOS * läuft auch auf Routern * verbindet Layer 2 - Switchingtechnik mit Layer 3 Routingtechnik * bei uns auf * Cat XL3548EN (obsolet, weil 10/100-!FastEthernet) * Cat XL3524EN (obsolet, weil 10/100-!FastEthernet) * 3550 (Mensa und KabelBW-Zugang) * Cat 4006 mit Sup II (x4013 30Gbps), II+ (x4013+ 48/64Gbps), III (x4014 64Gbps) * Cat 4006/4506 mit Sup IV (x4015 48Gbps) * Cat 4006/4506 mit Sup V (x4516 96Gbps) * Cat 4506 mit Sup V-10GE (x4516-10GE 136Gbps) * Cisco CatOS * älter, als iOS * läuft auf den Cat 4003 (drei Höheneinheiten) mit Sup I (x4012 12Gbps) = Cisco WS-X Einschubmodule für die Cisco 4000 bzw 4500 Switch-Chassis = Chassis || Bezeichnung || Beschreibung || Supervisor Engine || || WS-C4003 || 3x HE, 2x PS || WS-X4012 || || WS-C4006 || 6x HE, 3x PS || WS-X4013 / WS-X4013+ / WS-X4014 || || WS-C4506 || 6x HE, 2x PS || WS-X4015 / WS-X4016 / WS-X4016-10GE || Supervisor - Engines || Bezeichnung || Beschreibung || Betriebssystem || Speed || !BootImages || || WS-X4012 || Supervisor-Engine I || CatOS || 15/32 || cat4000-k8.8-4-11-GLX.bin || || WS-X4013 || Supervisor-Engine II || CatOS || 30/18 || || WS-X4013+ || Supervisor-Engine II+ || iOS || 48/64 || || WS-X4014 || Supervisor-Engine III || iOS || || WS-X4015 || Supervisor-Engine IV || iOS || 48/64 || \ {{{ #!td * 12.1.8a: cat4000-is-mz.121-8a.EW1.bin * 12.1.12c: cat4000-is-mz.121-12c.EW1.bin * 12.1.20: cat4000-is-mz.121-20.E.bin * 12.2.20: cat4000-i9k91s-mz.122-20.EWA.bin }}} || || WS-X4016 || Supervisor-Engine V || iOS || || WS-X4016-10GE || Supervisor-Engine V-10GE || iOS || 136/102 || \ {{{ #!td * 12.1.13: cat4000-is-mz.121-13.EW.bin * 12.2.25: cat4000-i9s-mz.122-25.EWA9.bin * 12.2.54: cat4500-entservicesk9-mz.122-54.SG.bin }}} || Infos zum Booten: [[BR]] [[https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/supcfg.html|Bootregister]] [[BR]] [[https://www.cisco.com/c/en/us/support/docs/switches/catalyst-4000-series-switches/24061-149.html|Setzen der Bootvariablen]] [[BR]] [[https://en.wikipedia.org/wiki/Supervisor_Engine_(Cisco)|Übersicht Supervisor Engines]] Module || Bezeichnung || Beschreibung || || WS-X4306 GB || 6 Port GBIC || || WS-X4418 GB || 18 Port GBIC || |||| || WS-X4232 GB RJ || 2 Port GBic, 32 Port 100MBit || |||| || X4148 RJ45 || 48 Port 10/100 TX || |||| || X4424-GB RJ45 || 24 Port 10/100/1000 TX || || X4448-GB RJ45 || 48 Port 10/100/1000 TX || [[BR]][[BR]][[BR]] = Zugang = * per Console direkt am Switch (Cisco-Kabel / minicom - 9600 8 N 1) * per LAN im VLAN 999 (cisco_management) * IP aus 172.16.0.X / 24 (Maske 255.255.255.0) * telnet IP * wechseln in den Administrations-Modus mit enable = Software = Die Dateien lagern alle auf dem TFTP-Server (172.16.0.253). Ein Restore ist auch im ROMMON möglich ([[https://www.cisco.com/c/en/us/support/docs/switches/catalyst-4000-series-switches/24061-149.html|Restore from ROMMON]]) Hinweis zu Cisco 4003 mit Supervisor Engine I (x4012) aus dem ROMMON: * [[http://blog.mdda.net/oss/2009/07/31/cisco-4000-series-back-from-the-dead|Recover from dead]] * set interface me1 172.16.0.199 255.255.255.0 * tftpserver=172.16.0.253 * ping 172.16.0.253 * boot cat4000-k8.8-4-11-GLX.bin * anschließend im catOS 8.4: * ping 172.16.0.253 * copy tftp flash[[BR]] IP: 172.16.0.253[[BR]] Name: cat4000-k8.8-4-11-GLX.bin * set boot system flash bootflash:cat4000-k8.8-4-11-GLX.bin prepend * set boot config-register 0x2 * show boot: {{{ BOOT variable = bootflash:cat4000-k8.8-4-11-GLX.bin,1; CONFIG_FILE variable = Configuration register is 0x2 ignore-config: disabled auto-config: non-recurring console baud: 9600 boot: image specified by the boot system commands }}} * cisco 4506-10GE (sup V-10GE, cisco0027) - IOS 12.2(54)SG (cat4500-entservicesk9-mz.122-54.SG.bin) * cisco 4506 (sup V, ciscoKHWRS) - IOS 12.1(13)EW (cat4000-is-mz.121-13.EW.bin) * cisco 4006 (sup II+, ciscoTGS) - IOS 12.2(31)SG (cat4500-ipbasek9-mz.122-31.SG.bin) * cisco 4006 (sup II+, cisco527) - IOS 12.2(31)SGA (cat4500-ipbasek9-mz.122-31.SGA.bin) * cisco 4003 (sup I, cisco509,527,536,547,KHWRST) - catOS 8.4(11)GLX (cat4000-k8.8-4-11-GLX.bin) * cisco 3550 (ciscoMensa, ciscoKBW) - IOS 12.0(5)WC5 (c3500xl-c3h2s-mz.120-5.WC5.bin) = Cisco 4006 mit Sup II,II+ oder III und Cisco 4506 mit Sup IV/V/V-10GE (iOS) = * hostname [Name] * Telnet-Zugang einrichten: {{{ line vty 0 password [password] login }}} * VLAN 999 - Interface {{{ int vlan 999 ip address 172.16.0.X 255.255.255.0 }}} * Etherchannel * interface range !GigabitEthernet [Modul]/[!PortVon] - [!PortBis] * channel-group [Portchannel-Nr] mode desirable [[BR]] switchport-Interface [Port-chanbel] wird automatisch angelegt * no interface port-channel [Nr] [[BR]] löscht das Port-Channel-Interface wieder [[BR]][[BR]] * Infos über Etherchannels anzeigen (iOS) * show etherchannel * show lacp neighbor * show pagp neighbor * show interfaces port-channel [Nr] [[BR]][[BR]] * Load balance ist normalerweise XOR * show etherchannel load-balance * setzen mit port-channel load-balance ? [[BR]][[BR]] * Trunk (über einen Port oder Etherchannel legen!) * switchport trunk encapsulation dot1q * switchport mode trunk * show interfaces port-channel 1 trunk [[BR]] ebenso mit einem Interface wie gigabitethernet 6/47 * show interfaces port-channel 1 switchport * show interfaces etherchannel * show interfaces trunk * show interfaces status // Gibt auch die Trunks aus! [[BR]][[BR]] * VTP (es muss zwischen den Switchen ein Trunk definiert sein!) * vtp domain Kepler * vtp password [password] * vtp mode server/client * show vtp status * eventuell muss vorher der vtp-mode kurz als server laufen, pruning und vtp-version 2 eingeschaltet werden, um dann wieder in den Mode client zu gehen, damit vtp funktioniert [[BR]][[BR]] * Sicherung / TFTP Im VLAN 999 hängt der TFTP-Server 172.16.0.253 (proxmoxls/tftp-hpa).[[BR]] Sicherung per {{{ copy running-config tftp: }}} [[BR]][[BR]] * Restart vom ROMMON Wenn der Cisco garnichts mehr drauf hat: [[https://www.cisco.com/c/en/us/support/docs/switches/catalyst-4000-series-switches/24061-149.html|Restore from ROMMON]] * Update des !BootImages {{{ copy tftp:cat4500-entservicesk9-mz.122-54.SG.bin bootflash: conf t no boot system flash bootflash:XYZ boot system flash bootflash:cat4500-entservicesk9-mz.122-54.SG.bin config register 0x2102 }}} ([[http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25sg/command/reference/cmdref/ch2a_ins.html#wp1301253|Link zu Cisco 4500-Configuration]]) = Cisco CatOS / Cat 4003 mit Sup I = Anleitung in Cisco4000_Manual (s.u.) Etherchannel Seite 6-4 (S83) und dann VLAN Trunk S11ff (S177) / VTP: Seite 9-1ff (S153) / VLAN Seite 10-1ff (S166) * set port channel [Liste der Ports] [on|off|desirable|auto] [silent|non silent] * VTP * set vtp domain [name] * set vtp mode [server|client] * set vtp password [password] * show vtp domain * eventuell set vtp v2 enable * eventuell set vtp pruning enable // monitoring: show vtp statistics * VLAN Trunk (vorher etherchannel einrichten s.o.) * set trunk 2/45 desirable dot1q (bei einem der Ports des Etherchannels, alle anderen folgen automatisch) * VLAN * set vlan [ID] name [Name] -- Obsolet, wir nutzen vtp * clear vlan [ID] -- Obsolet, wir nutzen vtp * set vlan [ID] 2/45 * ganzer Range: set vlan [ID] 3/1-48 * normale Ports: * set spantree portfast 3/1-48 enable * set port channel 3/1-48 mode off * set trunk 3/1-48 off * Sicherung / TFTP Im VLAN 999 hängt der TFTP-Server 172.16.0.253 (proxmoxls/tftp-hpa).[[BR]] Sicherung per {{{ copy config tftp }}} == Cisco CatOS == * set * set password [[BR]] Loginpasswort setzen * set enablepass [[BR]] Passwort für enable setzen * set port name 2/45 [Name] * set port priority [normal|high] * set port flowcontrol [receive|send] 2/45 [on|off|desired] [[BR]] KG wegen LTSP wurde das mal auf off gesetzt! * set interface sc0 999 172.16.0.X 255.255.255.0[[BR]] Setzt die IP des Switches (nur ein VLAN-Interface pro Switch möglich) * set vlan [Nr] [!Module/Port] also z.B. set vlan 6 2/7[[BR]] Setzt das VLAn eines Ports * show * show authentication * show port 2/45 * show port 2 * show port capabilities // Zeig mal, was der Port kann * show version * show config * show flash/bootflash * show system * show environment all = Was ist bei uns zu tun? = * Die Switche über mehrere Leitungen verbinden und zu einem Etherchannel zusammenfassen * Auf dem zentralen cisco0027: * interface range !GigabitEthernet [Modul]/[!PortVon] - [!PortBis] * show etherchannel[[BR]] gibt alle Etherchannel mit ihren Daten und Nummern aus - freie Nummer wählen * channel-group [Nr] mode on [[BR]] wenn ein XL 3548EN oder XL 3524 dranhängt * channel-group [Nr] mode desirable [[BR]] wenn ein CatOS oder 4006 oder 4506 mit iOS dranhängt [[BR]][[BR]] * interface port-channel [Nr] * switchport trunk encapsulation dot1q * switchport mode trunk [[BR]][[BR]] * Auf einem Cisco4003 mit CatOS * set vtp domain Kepler * set vtp passwd [pwd] * set vtp mode client * set port channel [Modul]/[!PortVon]-[!PortBis] * set port channel [Modul]/[!PortVon]-[!PortBis] mode desirable * show port channel * set trunk [Modul]/[!PortVon] desirable dot1q [[BR]] die restlichen Ports folgen automatisch * CatOS nur mit PAgP möglich [[BR]][[BR]] [[BR]][[BR]] * **(obsolet, nicht mehr eingebunden)** Auf einem XL 3548EN oder XL 3524EN * ACHTUNG: die 3500 unterstützen kein PAgP, die channel-group muss also mode on haben! * interface !GigabitEthernet 0/1 [Danach auch für 0/2] * port group [NR] * switchport trunk encapsulation dot1q * switchport mode trunk [[BR]][[BR]] * verify (bei enable): show cdp neighbors [[BR]][[BR]] * vlan database * vtp mode 2 * vtp password [pwd] * vtp domain Kepler * vtp pruning * vtp client = Cisco XL 3548EN und XL3524EN (obsolet, da 10/100 !FastEthernet) = * Passwörter setzen * vty (telnet): [[BR]] line vty 0[[BR]] password [password] * enable password [password] * IP Adresse setzen * interface vlan 999 * ip address 172.16.0.X 255.255.255.0 * Ports zu VLAN zuweisen * switchport acces vlan [Nr] Stichworte sind * Negotiation [[http://de.wikipedia.org/wiki/Autonegotiation|Aushandeln von verbindungsparameterm]] * Etherchannel ([[http://de.wikipedia.org/wiki/Etherchannel|Etherchannel]]) * PAgP (Cisco-Proprietär [[http://de.wikipedia.org/wiki/PAgP| Port Aggregation Protocol ]]) * LACP ([[http://de.wikipedia.org/wiki/LACP|Link Aggregation Control Protocol]]) * VLAN, VTP [,VMPS] ([[http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25sg/configuration/guide/conf/vlans.html|Understanding and Configuring VLANs, VTP, and VMPS]]) * VLAN = [[http://de.wikipedia.org/wiki/VLAN|Virtual Local Area Network]] * VTP = [[http://de.wikipedia.org/wiki/VTP|VLAN Trunking Protocol]] * VTP pruning verhindert unnötigen Traffic (nur anschalten, wenn alle Switche prning unterstützen) * Spanning Tree (siehe Cisco4000-Manual Seite 7-1 ff): set spantree portfast 2/45 enable und show spantree 2/45 Links: * Konfiguration zwischen iOS und CatOS-Switchen [[http://www.cisco.com/c/en/us/support/docs/lan-switching/etherchannel/14974-44.html]] * Konfiguration zwischen zwei CatOS-Switchen [[http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25sg/configuration/guide/conf/channel.html]] * [[http://www.manualslib.com/manual/398682/Cisco-Ws-C4003-Catalyst-4000-Chassis-Switch.html|Cisco 4000-Manual]]