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

Next revision
Previous revision
netzwerk:switches:cisco_sg [2021/12/16 19:27] – created stonenetzwerk:switches:cisco_sg [2022/06/29 09:19] (current) stone
Line 1: Line 1:
 ====== Cisco SG ====== ====== Cisco SG ======
 +
 +===== System Setup =====
 +Klassische System Setup Befehel
 +
 +==== Hostname ====
 +
 +<code>
 +hostname <hostname>
 +</code>
 +\\
 +
 +==== Domainname ====
 +<code>
 +ip domain name <domain>
 +</code>
 +\\
 +
 +==== Nameserver ====
 +<code>
 +ip name-server <ip>
 +</code>
 +\\
 +
 +==== Gateway ====
 +<code>
 +ip default-gateway <ip>
 +</code>
 +\\
 +
 +==== NTP ====
 +<code>
 +clock source sntp
 +sntp server <ip>
 +
 +show clock detail
 +</code>
 +\\
 +
 +<code>
 +clock timezone GMT +1
 +</code>
 +\\
 +
 +
 +==== SSH aktivieren ====
 +<code>
 +ip ssh server
 +</code>
 +\\
 +
 +==== User ====
 +<code>
 +show user
 +show run | inc user
 +
 +username <user> password <pw> privilege <lvl>
 +</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.1639682853.txt.gz · Last modified: by stone