Cisco switch: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 13: Zeile 13:
 
=Webinterface=
 
=Webinterface=
 
*[[Cisco Webinterface]]
 
*[[Cisco Webinterface]]
Als Passwort strenggeheim eingeben kein Username
+
=Flash=
[[Datei:cisco-switch1.png]]
+
*[[Cisco Switch Flash]]
 +
 
 
=Dateisystem anzeigen=
 
=Dateisystem anzeigen=
 
*c3750g#show file systems
 
*c3750g#show file systems

Version vom 28. Januar 2016, 14:21 Uhr

Grundlegendes

Configuration dialog

Grundkonfiguration

Interface Konfiguration

Show Befehle

Webinterface

Flash

Dateisystem anzeigen

  • c3750g#show file systems

Inhalt von einer Datei anzeigen

  • c3750g#more config.text

Anzeige Flash

  • Switch#show flash
Directory of flash:/

    2  -rwx        3096  Jan 26 2016 15:22:16 +00:00  multiple-fs
    3  -rwx        1590   Mar 1 1993 00:44:44 +00:00  config.old
  457  drwx         192   Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6
   84  -rwx        1940  Jan 26 2016 15:22:16 +00:00  private-config.text
   85  -rwx        3021  Jan 26 2016 15:22:16 +00:00  config.text

Anzeige Flash mit dir

  • Switch#dir flash:
Directory of flash:/

    2  -rwx        3096  Jan 26 2016 15:22:16 +00:00  multiple-fs
    3  -rwx        1590   Mar 1 1993 00:44:44 +00:00  config.old
  457  drwx         192   Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6
   84  -rwx        1940  Jan 26 2016 15:22:16 +00:00  private-config.text
   85  -rwx        3021  Jan 26 2016 15:22:16 +00:00  config.text

Anzeige Directory

  • Switch#dir c3750-ipbasek9-mz.122-55.SE6
 
 Directory of flash:/c3750-ipbasek9-mz.122-55.SE6/  

    4  drwx        1792   Mar 1 1993 00:28:51 +00:00  html
   82  -rwx    12098384   Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6.bin
   83  -rwx         681   Mar 1 1993 00:35:33 +00:00  info

Ios sichern

  • Switch#copy flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin tftp://192.168.240.200/cisco/
Address or name of remote host [192.168.240.200]? 
Destination filename [cisco/c3750-ipbasek9-mz.122-55.SE6.bin]? 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Konfig sichern

  • Switch#copy running-config tftp://192.168.240.200/cisco/c3750g.conf
Address or name of remote host [192.168.240.200]? 
Destination filename [cisco/c3750g.conf]? 
!!
4356 bytes copied in 1.409 secs (3092 bytes/sec

Telnet aktivieren

  • Switch#configure terminal
  • Switch(config)#aaa new-model
  • Switch(config)#username admin password 0 geheim
  • Switch(config)#line vty 0 4
  • Switch(config-line)#transport input telnet

SSH aktivieren

  • Switch(config)#ip domain-name xinux.org
  • Switch(config)#hos
  • Switch(config)#hostname c3750g
  • c3750g(config)#
  • c3750g(config)#crypto key generate rsa
The name for the keys will be: c3750g.xinux.org
Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.

How many bits in the modulus [512]: 
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]
  • c3750g(config)#ip ssh time-out 60
  • c3750g(config)#ip ssh authentication-retries 2

Abschalten von telnet

  • c3750g#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
  • c3750g(config)#line vty 0 4
  • c3750g(config-line)#transport input ssh

Switche anzeigen

  • c3750g#show switch
Switch/Stack Mac Address : 0012.d9a3.4400
                                          H/W   Current
Switch#  Role   Mac Address     Priority Version  State 
----------------------------------------------------------
*1       Master 0012.d9a3.4400     1      0       Ready               
 3       Member 0000.0000.0000     0      0       Provisioned

Löschen von Dateien

  • c3750g#dir flash:
Directory of flash:/

    2  -rwx        4501  Jan 26 2016 18:03:22 +00:00  c3750g.conf
    3  -rwx        1590   Mar 1 1993 00:44:44 +00:00  config.old
  457  drwx         192   Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6
   84  -rwx        3096  Jan 26 2016 16:40:08 +00:00  multiple-fs
   85  -rwx        3019  Jan 26 2016 16:40:08 +00:00  private-config.text
   86  -rwx        3166  Jan 26 2016 16:40:08 +00:00  config.text
   87  -rwx        4501  Jan 26 2016 18:06:51 +00:00  c3750g.cfg
   88  -rwx     1556480  Jan 26 2016 18:08:11 +00:00  ccpexpressAdmin27.tar

15998976 bytes total (1767936 bytes free)
  • c3750g#delete flash:/c3750g.conf
Delete filename [c3750g.conf]?  
Delete flash:/c3750g.conf? [confirm]

md5 verifizieren

  • c3750g#verify /md5 flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin

Modify Switch Boot path-list testen

  • c3750g#boot system switch all flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin

Boot konfig anzeigen

  • c3750g#show boot
BOOT path-list      : flash:c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    : 
Auto upgrade        : yes
Auto upgrade path   : 
NVRAM/Config file
      buffer size:   524288
Timeout for Config
          Download:    0 seconds
Config Download 
       via DHCP:       disabled (next boot: disabled)

Vlans

Links