I. Lab Objectives
Master the configuration and management of basic vswitch Information
Ii. Technical Principles
Vswitches can be managed in two ways: in-band management and out-of-band management.
- Using the Console port of a vswitch to manage vswitches is out-of-band management: This management mode does not occupy the network port of the vswitch. The first time you configure a vswitch, you must use the Console port for configuration.
- In-band management by means of remote telnet and dialing.
Iii. Switch Command Line Operation Mode
It mainly includes:
User mode switch>
Privileged mode switch #
Global configuration mode switch (config )#
Port mode switch (config-If )#
Iv. Experiment steps
1. Experiment Topology
2. Basic vswitch configuration commands
A. Enter privileged Mode
Switch> enable // en = Enable
Switch #
B. Enter the global configuration mode.
Switch # configure terminal // conf T = configure Terminal
Enter configuration commands, one per line. End with cntl/Z.
C. Enter the vswitch port view mode
Switch (config )#Interface fastethernet 0/1 // int F0/1 = interface fastethernet 0/1
Switch (config-If )# D. Configure the switch port speed
Switch (config-If) # speed?
10 force 10 Mbps operation100 force 100 Mbps operationauto enable auto speed configuration
Switch (config-If) # speed100
E. Configure the switch port duplex mode.
Switch (config-If) # duplex?
Auto enable auto duplex configurationfull force full duplex operationhalf force half-duplex operation
Switch (config-If) # duplex full
F. Return to the upper-level mode.
Switch (config-If) # exit
Switch (config )#
G. directly return to privileged Mode
Switch (config-If) # End
Switch #
% SYS-5-CONFIG_ I: configured from console by the Console
Switch #
H. View vswitch version information
Switch # Show version
Cisco IOS software, c2960 software (C2960-LANBASE-M), version 12.2 ( 25 ) FX, release software (FC1) Copyright (c) 1986 - 2005 By Cisco Systems, Inc. Compiled wed 12 -Oct- 05 22 : 05 By pt_teamrom: c2960 Boot Loader (c2960 -HBOOT-M) version12.2 (25r) FX, release software (FC4) system returned to Rom by power - Oncisco WS -C2960- 24tt (rc32300) processor (Revision C0) with 21039 K bytes of memory. 24 Fastethernet/IEEE 802.3 Interface (S) 2 Gigabit Ethernet/IEEE 802.3 Interface (S) 63488 K bytes of Flash -Simulated non-Volatile Configuration memory. Base Ethernet MAC address: 0040 . 0b69. 8831 Motherboard assembly Number: 73 - 9832 - 06 Power supply part number: 341 - 0097 - 02 Motherboard serial number: foc103248mjpower supply serial number: dca104153jamodel revision number: b0motherboard revision number: c0model number: WS -C2960- 24 ttsystem serial number: foc1033z1ey -- More -- ... Configuration register Is 0xf
I. view the configuration currently in effect
Switch # Show running-config
Building configuration... current configuration: 1033 Bytes !Version 12.2 No service timestamps log datetime msecno service timestamps debug datetime msecno service Password - Encryption ! Hostname Switch !!! Interface Fastethernet0/ 1 Duplex full speed 100 ! Interface Fastethernet0/ 2 ! Interface Fastethernet0/3 ! Interface Fastethernet0/ 4 ! Interface Fastethernet0/ 5 -- More --...!! End
J. Help Information
① Switch #?
Exec commands: < 1-99 > Session number to resume Clear Reset Functions clock manage the system clock configure enter configuration mode connect open a terminal connection 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 an existing network connection enable turn on privileged commands erase a filesystem 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 an active network connection setup run the setup command facility -- more --
② Switch # CO?
Configure connect copy
③ Switch # copy?
Flash: copy from FLASH: File System ftp: copy from ftp: file system running-config copy from current system configuration startup-config copy from startup configuration TFTP: copy from TFTP: File System
Packet tracer 5.0 series experiments are organized according to the 5ijsj experiment. For more information, visit http://hi.baidu.com/new/5ijsj.