Switchkonfiguration

Aus MeinWiki
Wechseln zu: Navigation, Suche
  • alte Konfiguration löschen.
delete flash:vlan.dat
erase startup-config
reload
  • alte Konfiguration beim Booten löschen
flush_init
dir flash:
delete flash:vlan.dat
delete flash:config.text
boot
  • Imagepararmeter setzen
set BOOT ....
  • Wizard nicht ausführen.
  • Hostname setzen.
hostname ...
  • IP-adresse konfigurieren.
interface vlan1 
ip address ...... 255.255.255.0
no shutdown
ip defaut-gateway .....
  • Passwörter setzen
enable secret ...
enable password ...
line console 0
password ...
login
  • SSH konfigurieren.
ip domain-name ....
crypto key generate rsa (2048)
username "Name" privilege 15 secret "Passwort"
line vty 0 15
passwort ...
login local
transport input ssh
  • Passworter verschlüsseln.
service password-encryption
  • Interface configurieren
interface range Gi0/1-10
switchport mode access
spanning-tree portfast