[Cisco Packet Tracer| 1. Konfigurationsmodus wechseln und grundlegende Parameterkonfiguration]

Cisco-Simulationssoftware: Cisco Packet Tracer-Student

1. Mehrere Modi und Umschalten von Schaltern

1. So rufen Sie die Befehlszeilen-Benutzeroberfläche (Command Line Interface) der Switch-Konfiguration auf

Bild-20230416212529563

enter进入到普通用户模式

2.Normaler Modus

普通用户模式下的
命令提示符:>
Switch>?
Exec commands:
  connect     Open a terminal connection
  disable     Turn off privileged commands
  disconnect  Disconnect an existing network connection
  enable      Turn on privileged commands
  exit        Exit from the EXEC
  logout      Exit from the EXEC
  ping        Send echo messages
  resume      Resume an active network connection
  show        Show running system information
  telnet      Open a telnet connection
  terminal    Set terminal line parameters
  traceroute  Trace route to destination

Kopieren und über die Befehlszeile einfügen:

Umschalt+Einfügen: Kopieren Sie den Inhalt in die Befehlszeile

Umschalt+Löschen: Den neuesten Inhalt der Zwischenablage in die Befehlszeile einfügen

Konvertieren Sie den normalen Benutzermodus in den privilegierten Benutzermodus:

Switch>enable
Switch#

3. Privilegierter Benutzermodus

特权用户模式下的命令提示符:#
Switch#?
Exec commands:
  clear       Reset functions
  clock       Manage the system clock
  configure   Enter configuration mode
  connect     Open a terminal connection
  copy        Copy from one file to another
  debug       Debugging functions (see also 'undebug')
  delete      Delete a file
  dir         List files on a filesystem
  disable     Turn off privileged commands
  disconnect  Disconnect an existing network connection
  enable      Turn on privileged commands
  erase       Erase a filesystem
  exit        Exit from the EXEC
  logout      Exit from the EXEC
  more        Display the contents of a file
  no          Disable debugging informations
  ping        Send echo messages
  reload      Halt and perform a cold restart
  resume      Resume an active network connection
  setup       Run the SETUP command facility
  show        Show running system information
  ssh         Open a secure shell client connection
  --More--

mehr bedeutet, dass aufgrund der Bildschirmgröße einige Inhalte nicht angezeigt werden:

  1. Eingabetaste: Zeile für Zeile nach unten anzeigen
  2. Leertaste: Zeigt jeweils einen Bildschirm nach unten an

Konvertieren Sie den privilegierten Benutzermodus in den globalen Konfigurationsmodus:

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

PS:

„Terminal konfigurieren“ bedeutet, das Terminal zu konfigurieren. Das Wort ist lang. Folgende Lösungen können verwendet werden:

  1. Automatische Vervollständigung der Tabulatortaste
  2. Abgekürzt als conf t

4. Globaler Konfigurationsmodus

特权用户模式下的命令提示符:(configure)+#
Switch(config)#?
Configure commands:
  access-list        Add an access list entry
  banner             Define a login banner
  boot               Boot Commands
  cdp                Global CDP configuration subcommands
  clock              Configure time-of-day clock
  crypto             Encryption module
  do                 To run exec commands in config mode
  enable             Modify enable password parameters
  end                Exit from configure mode
  exit               Exit from configure mode
  hostname           Set system's network name
  interface          Select an interface to configure
  ip                 Global IP configuration subcommands
  line               Configure a terminal line
  logging            Modify message logging facilities
  mac                MAC configuration
  mac-address-table  Configure the MAC address table
  no                 Negate a command or set its defaults
  port-channel       EtherChannel configuration
  privilege          Command privilege parameters
  service            Modify use of network based services
  snmp-server        Modify SNMP engine parameters
 --More-- 

Sehen Sie sich die 24 Ports im Konfigurationsmodus an:

Bild-20230416214633387

ps: Das Wort FastEthernet0/1 bedeutet Fast Ethernet 0/1

Konvertieren Sie den globalen Konfigurationsmodus in den Schnittstellenkonfigurationsmodus:

Switch(config-if)#interface f0/1
Switch(config-if)#

Konvertieren Sie den globalen Konfigurationsmodus in den VLAN-Konfigurationsmodus:

Switch(config)#vlan 4
Switch(config-vlan)#

5. Diagramm zur Modusumschaltung

Bild-20230416220005597

2. Ändern Sie Name, Passwort und andere Einstellungen

1. Benennen Sie den Switch im globalen Modus um

Im globalen Modus:

Switch(config)#hostname song
song(config)#

2. Im Schnittstellenmodus – Portgeschwindigkeit und Arbeitsmodus konfigurieren

2.1 Portgeschwindigkeit konfigurieren

Bild-20230416220444311

song(config-if)#speed ?
  10    Force 10 Mbps operation
  100   Force 100 Mbps operation
  auto  Enable AUTO speed configuration

ps: Standardmäßig werden automatisch 10 Mbit/s oder 100 Mbit/s angepasst

Bild-20230416220645831

song(config-if)#speed 10
song(config-if)#speed 100
song(config-if)#speed auto
song(config-if)#

2.2 Arbeitsmodus konfigurieren

Bild-20230416220912436

song(config-if)#duplex ?
  auto  Enable AUTO duplex configuration
  full  Force full duplex operation
  half  Force half-duplex operation

Bild-20230416220956648

3. Im privilegierten Modus – Switch-Verlaufsbefehle anzeigen

Im Prinzip können Sie nach oben scrollen, um alle historischen Befehle einzeln zu finden, aber das ist unpraktisch.

song#show running-conf
Building configuration...

Current configuration : 975 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname song
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
 --More-- 

4. Widerruf der Bestellung

Einige Befehle können überschrieben werden, um den Zweck des Rückgängigmachens und erneuten Schreibens zu erreichen. Einige Befehle können jedoch nur durch Rückgängigmachen und erneutes Schreiben abgeschlossen werden.

song(config-if)#speed 100
song(config-if)#no speed 100
song(config-if)#

Ich denke du magst

Origin blog.csdn.net/qq_64428099/article/details/130189766
Empfohlen
Rangfolge