====== Cisco SG ====== ===== System Setup ===== Klassische System Setup Befehel ==== Hostname ==== hostname \\ ==== Domainname ==== ip domain name \\ ==== Nameserver ==== ip name-server \\ ==== Gateway ==== ip default-gateway \\ ==== NTP ==== clock source sntp sntp server show clock detail \\ clock timezone GMT +1 \\ ==== SSH aktivieren ==== ip ssh server \\ ==== User ==== show user show run | inc user username password privilege \\ ==== SNMP ==== SNMP Server aktivieren snmp-server server snmp-community \\ SNMP Community setzten snmp-server community ro \\ \\ ===== Interfaces ===== IP auf einem Interface setzen int ip address \\ ==== IP auf einem VLAN setzten ==== int ip address \\ ==== IP einem Interface / VLAN entfernen ==== int no ip address \\ ==== IP anzeigen ==== show ip interface \\ ==== Interface Stats ==== show interface show interface status show interface counters protocol status show interface counters port-channel \\ ==== Access Port ==== int switchport mode access vlan \\ ==== Trunk Port ==== switchport trunk allowed vlan \\ ==== Interface Range bearbeiten ==== int range gi1/0/1-20 \\ ==== Mac Adressen Tabelle anzeigen ==== Anzeigen der Mac's die am Port / Interface angesteckt sind show mac address-table \\ \\ ===== VLANs ===== ==== VLAN anlegen ==== vlan database vlan name \\ ==== VLAN löschen ==== vlan database no vlan \\ \\ ===== Port-Channel ===== ==== Port-Channel erstellen ==== int .... Port Config ... \\ ==== Interface einem LACP Portchannel hinzufügen ==== channe-group <#> mode auto \\ ===== POE ===== ==== POE Infos anzeigen ==== Man sieht das Budget vom Switch und die Infos aller Interfaces show power inline \\ ==== POE auf Port aktivieren ==== conf t interface gi1/0/1 power inline auto \\ ==== POE auf Port deaktivieren ==== conf t interface gi1/0/1 no power inline power inline never \\ ==== POE Prio auf Port ==== conf t interface gi1/0/1 power inline priority \\ ===== LACP ===== show lacp port-channel <#> \\ \\ ===== CDP ===== ==== CDP Nachbarn anzeigen ==== show cdp neighbors \\ \\ ===== Stacking ===== ==== Stacking Nodes anzeigen ==== show stack show stack 1 show stack 2 \\ ==== Stacking konfigurieren ==== Ein Reboot von jedem Member ist nötig. \\ **Node1** conf t stack unit 1 stack configuration links te3-4 unit-id 1 end wr reload \\ **Node2** conf t stack unit 1 stack configuration links te3-4 unit-id 2 end wr reload \\ ==== Stack auflösen ==== conf t stack unit 1 no stack configuration end wr reload \\ \\ ===== Monitoring ===== Hardware Infos show inventory