netzwerk:switches:cisco_sg
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| netzwerk:switches:cisco_sg [2021/12/16 19:27] – created stone | netzwerk: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 ==== | ||
| + | |||
| + | < | ||
| + | hostname < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Domainname ==== | ||
| + | < | ||
| + | ip domain name < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Nameserver ==== | ||
| + | < | ||
| + | ip name-server <ip> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Gateway ==== | ||
| + | < | ||
| + | ip default-gateway <ip> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== NTP ==== | ||
| + | < | ||
| + | clock source sntp | ||
| + | sntp server <ip> | ||
| + | |||
| + | show clock detail | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | < | ||
| + | clock timezone GMT +1 | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | ==== SSH aktivieren ==== | ||
| + | < | ||
| + | ip ssh server | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== User ==== | ||
| + | < | ||
| + | show user | ||
| + | show run | inc user | ||
| + | |||
| + | username < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== SNMP ==== | ||
| + | SNMP Server aktivieren | ||
| + | < | ||
| + | snmp-server server | ||
| + | snmp-community <com> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | SNMP Community setzten | ||
| + | < | ||
| + | snmp-server community <com> ro | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | ===== Interfaces ===== | ||
| + | IP auf einem Interface setzen | ||
| + | < | ||
| + | int <int> | ||
| + | ip address <ip> < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== IP auf einem VLAN setzten ==== | ||
| + | < | ||
| + | int < | ||
| + | ip address <ip> < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== IP einem Interface / VLAN entfernen ==== | ||
| + | < | ||
| + | int <int> | ||
| + | no ip address | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== IP anzeigen ==== | ||
| + | < | ||
| + | show ip interface <int> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Interface Stats ==== | ||
| + | < | ||
| + | show interface <int> | ||
| + | show interface status | ||
| + | show interface counters protocol status | ||
| + | show interface counters port-channel <id> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Access Port ==== | ||
| + | < | ||
| + | int <int> | ||
| + | switchport mode access vlan <id> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Trunk Port ==== | ||
| + | < | ||
| + | switchport trunk allowed vlan <id> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | ==== 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 <id> name < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== VLAN löschen ==== | ||
| + | < | ||
| + | vlan database | ||
| + | no vlan <id> | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | ===== Port-Channel ===== | ||
| + | ==== Port-Channel erstellen ==== | ||
| + | < | ||
| + | int <po#> | ||
| + | .... 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 | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
netzwerk/switches/cisco_sg.1639682853.txt.gz · Last modified: by stone
