Cisco Switch Grundkonfiguration

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Gerätenamen festlegen

  • Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
  • Switch(config)#hostname c3750
  • c3750(config)#

Enable Secret setzen

  • c3750(config)#enable secret suxer
  • c3750(config)#username admin privilege 15 secret sysadm
  • c750(config)#username xinux privilege 1 secret oimel

Passwort verschlüsselung unnötig wenn Funktion secret verfügbar ist

  • c3750(config)#service password-encryption

Interface VLAN1 konfigurieren

  • c3750(config)#interface vlan 1
  • c3750(config-if)#ip address 192.168.240.154 255.255.248.0
  • c3750(config-if)#no shutdown
  • c3750(config-if)#do show ip int vlan1
Vlan1 is up, line protocol is up
  Internet address is 192.168.240.154/21
  Broadcast address is 255.255.255.255
  Address determined by setup command from host 192.168.240.200
  MTU is 1500 bytes

Default Gateway einstellen

  • c3750(config)#ip default-gateway 192.168.240.100

Konnectivitäts Test

  • c3750#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 17/20/25 ms

Localer Admin einrichten

Passwort verschlüsselung

NTP-Server festlegen

DNS-Lookup festlegen oder deaktivieren

Line con 0 konfigurieren

Passwort oder Username/Passwort-Abfrage

Synchrones Logging aktivieren

Timeout-Werte anpassen

Lines VTY 0 15