netzwerk:switches:cisco_sg
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| netzwerk:switches:cisco_sg [2021/12/16 20:02] – stone | netzwerk:switches:cisco_sg [2022/06/29 09:19] (current) – stone | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| ==== NTP ==== | ==== NTP ==== | ||
| < | < | ||
| - | clock source sntp <ip> | + | clock source sntp |
| + | sntp server | ||
| show clock detail | show clock detail | ||
| Line 43: | Line 44: | ||
| - | SSH aktivieren | + | ==== SSH aktivieren |
| < | < | ||
| ip ssh server | ip ssh server | ||
| Line 57: | Line 58: | ||
| </ | </ | ||
| \\ | \\ | ||
| + | |||
| + | ==== 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.1639684949.txt.gz · Last modified: by stone
