User Tools

Site Tools


netzwerk:switches:cisco_sg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
netzwerk:switches:cisco_sg [2021/12/16 20:02] stonenetzwerk:switches:cisco_sg [2022/06/29 09:19] (current) stone
Line 31: Line 31:
 ==== NTP ==== ==== NTP ====
 <code> <code>
-clock source sntp <ip>+clock source sntp 
 +sntp server <ip>
  
 show clock detail show clock detail
Line 43: Line 44:
  
  
-SSH aktivieren+==== SSH aktivieren ====
 <code> <code>
 ip ssh server ip ssh server
Line 57: Line 58:
 </code> </code>
 \\ \\
 +
 +==== SNMP ====
 +SNMP Server aktivieren
 +<code>
 +snmp-server server
 +snmp-community <com>
 +</code>
 +\\
 +
 +SNMP Community setzten
 +<code>
 +snmp-server community <com> ro
 +</code>
 +\\
 +\\
 +
 +===== Interfaces =====
 +IP auf einem Interface setzen
 +<code>
 +int <int>
 +ip address <ip> <subnet>
 +</code>
 +\\
 +
 +==== IP auf einem VLAN setzten ====
 +<code>
 +int <vlan>
 +ip address <ip> <subnet>
 +</code>
 +\\
 +
 +==== IP einem Interface / VLAN entfernen ====
 +<code>
 +int <int>
 +no ip address
 +</code>
 +\\
 +
 +==== IP anzeigen ====
 +<code>
 +show ip interface <int>
 +</code>
 +\\
 +
 +==== Interface Stats ====
 +<code>
 +show interface <int>
 +show interface status
 +show interface counters protocol status
 +show interface counters port-channel <id>
 +</code>
 +\\
 +
 +==== Access Port ====
 +<code>
 +int <int>
 +switchport mode access vlan <id>
 +</code>
 +\\
 +
 +==== Trunk Port ====
 +<code>
 +switchport trunk allowed vlan <id>
 +</code>
 +\\
 +
 +
 +==== Interface Range bearbeiten ====
 +<code>
 +int range gi1/0/1-20
 +</code>
 +\\
 +
 +==== Mac Adressen Tabelle anzeigen ====
 +Anzeigen der Mac's die am Port / Interface angesteckt sind
 +<code>
 +show mac address-table 
 +</code>
 +\\
 +\\
 +
 +===== VLANs =====
 +==== VLAN anlegen ====
 +<code>
 +vlan database
 +vlan <id> name <name>
 +</code>
 +\\
 +
 +==== VLAN löschen ====
 +<code>
 +vlan database
 +no vlan <id>
 +</code>
 +\\
 +\\
 +
 +
 +===== Port-Channel =====
 +==== Port-Channel erstellen ====
 +<code>
 +int <po#>
 +.... Port Config ...
 +</code>
 +\\
 +
 +==== Interface einem LACP Portchannel hinzufügen ====
 +<code>
 +channe-group <#> mode auto
 +</code>
 +\\
 +
 +
 +===== POE =====
 +==== POE Infos anzeigen ====
 +Man sieht das Budget vom Switch und die Infos aller Interfaces
 +<code>
 +show power inline
 +</code>
 +\\
 +
 +==== POE auf Port aktivieren ====
 +<code>
 +conf t
 +interface gi1/0/1
 +power inline auto
 +</code>
 +\\
 +
 +==== POE auf Port deaktivieren ====
 +<code>
 +conf t
 +interface gi1/0/1
 +no power inline
 +power inline never
 +</code>
 +\\
 +
 +==== POE Prio auf Port ====
 +<code>
 +conf t
 +interface gi1/0/1
 +power inline priority <critical|high|low>
 +</code>
 +\\
 +
 +
 +===== LACP  =====
 +<code>
 +show lacp port-channel <#>
 +</code>
 +\\
 +\\
 +
 +
 +===== CDP =====
 +==== CDP Nachbarn anzeigen ====
 +<code>
 +show cdp neighbors
 +</code>
 +\\
 +\\
 +
 +===== Stacking =====
 +==== Stacking Nodes anzeigen ====
 +<code>
 +show stack
 +
 +show stack 1
 +show stack 2
 +</code>
 +\\
 +
 +==== Stacking konfigurieren ====
 +Ein Reboot von jedem Member ist nötig. \\
 +
 +**Node1**
 +<code>
 +conf t
 +stack unit 1
 +stack configuration links te3-4 unit-id 1
 +end
 +wr
 +reload
 +</code>
 +\\
 +
 +**Node2**
 +<code>
 +conf t
 +stack unit 1
 +stack configuration links te3-4 unit-id 2
 +end
 +wr
 +reload
 +</code>
 +
 +\\
 +
 +
 +==== Stack auflösen ====
 +<code>
 +conf t
 +stack unit 1
 +no stack configuration
 +end
 +wr
 +reload
 +</code>
 +\\
 +\\
 +
 +
 +===== Monitoring =====
 +Hardware Infos
 +<code>
 +show inventory
 +</code>
 +
 +
 +
 +
 +
netzwerk/switches/cisco_sg.1639684949.txt.gz · Last modified: by stone