Basic configuration and management of switches in Cisco PT simulation experiment, ciscopt
Basic configuration and management of switches in Cisco PT Simulation Experiment
Objective: To understand the basic configurations and management of a vswitch and the basic commands of the vswitch configuration.
Tutorial Background: A company has a new batch of L2 switches, which should be initialized and managed before they are officially put into use for future maintenance.
Technical Principles:
Vswitches can be managed in two ways: in-band management and out-of-band management.
The Console port of the vswitch is used to manage the vswitch. This mode does not occupy the network port of the vswitch. The Console port must be used to configure the vswitch for the first time.
Using Telnet, dialing, and other methods (TCP/IP Protocol) is in-band management.
The command line operation modes of vswitches include:
User mode Switch>
Privileged mode Switch #
Global configuration mode Switch (config )#
Port mode Switch (config-if )#
Lab device: One Switch_2960 device, one PC device, and one configuration line.
Tutorial topology:
Tutorial steps:
Enter privileged mode (en)
Enter the global configuration mode (conft)
Switch Port view mode (int f0/1)
Return to the upper-level mode (exit)
Return from global mode to privileged mode (end)
Help information (such? Co? , Copy ?)
Command shorthand (such as conft)
Command auto-completion (Tab)
Interrupt Test (Ctrl + c)
Return to privileged mode (Ctrl + z)
Restart the switch (Reload) in privileged Mode)
Modify the vswitch name (hostname X)
PC0 (under a Super Terminal)
Switch> enable // enter privileged Mode
Switch # configterminal // enter the Configuration Mode
Switch (config) # enablepasswordcisco1 // set the plaintext password to cisco1
Switch (config) # enablesecretcisco2 // set the encryption password to cisco1
Switch (config) # hostnameS2960 // set the host name to S2960
S2960 (config) # interfacefastEthernet0/1 // enter the Configuration Mode
S2960 (config-if) # exit // return to the upper-level Mode
S2960 (config) # ipaddress192.168.1.1255.255.255.0 // you can specify the IP address of a vswitch.
S2960 (config) # ipdefault-gateway192.168.1.254 // set the Default Gateway
S2960 (config) # ipdomain-namecisco.com//set Domain Name
S2960 (config) # ipname-server200.0.0.1 // set Domain Name Server
S2960 (config) # noipdomain-lookup // disable domain name resolution
S2960 (config) # end // return to privileged Mode
S2960 # enable
S2960 (config) # show? // HELP command prompt
S2960 (config) # showrunning-config // display the current configuration information
S2960 (config) # showmac-address-table // display the MAC address table
S2960 (config) # writememory // Save the current configuration to the storage