User Tools

Site Tools


netzwerk:switches:cisco_sg

This is an old revision of the document!


Cisco SG

System Setup

Klassische System Setup Befehel

Hostname

hostname <hostname>


Domainname

ip domain name <domain>


Nameserver

ip name-server <ip>


Gateway

ip default-gateway <ip>


NTP

clock source sntp <ip>

show clock detail


clock timezone GMT +1


SSH aktivieren

ip ssh server


User

show user
show run | inc user

username <user> password <pw> privilege <lvl>


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> <subnet>


IP auf einem VLAN setzten

int <vlan>
ip address <ip> <subnet>


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 <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


LACP Infos anzeigen

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.1641898365.txt.gz · Last modified: by stone