(a) the enable password (enable password), ws-c2960s-48td-l the password in plaintext displayenable password (enbale secret), the password to the ciphertext display enter privilege mode Switch.# / privileged
mode direct mode prompt Switch.>enable /Switch.> / user (to enter the ciphertext into Switch.#config terminal) / * enterglobal
configuration mode Switch. (config) Switch. # /
* configuration modeprompt (config) # hostname Pconline / * set the hostname Pconline Pconline(config) enable password cisco3560 # /
* set the enable password for pconlinePconline (config) enable secret cisco3560 # / set enable password for networkPconline (config) line vty
015 # / set
the virtual terminal lines Pconline (config-line) login / # set authentication Pconline (config-line) # password cisco3560 / *set the virtual terminal password two, switch
VLAN set the Switch.> /Switch.>enable / user straight line mode prompt enter privilege modeswitch#vlan database; set into the VLAN switch (VLAN) # VLAN
2; VLAN 2
Switch (VLAN) #no VLAN
2 + VLAN 2
switch; #int f0/1; (config) into the network port 1 switch (config) #int giga0/1; 1 switch Gigabit port into
the sink (config-if)duplex {auto full half} # | | set
port --- automatic / full duplex or half
duplex switch (config-if) #switchport mode trunk; the port
is set to sink mouth switch(config-if) #switchport mode access; the port settings for the access mode of switch (config-if) #switchport trunk allowed VLAN 1, 2; group
VLAN switch set 1,2 port allows (config-if) #switchport trunk VLAN 2; 1 is set in the
allowed VLAN switch (config-if) #switchport access VLAN 2 the addition
of VLAN 2; portswitch (config-if) #switchport trunk encap dot1q; set the VLAN relay Cisco network, there are four main types of switches in the LAN interface in the
final steady state: access/ trunk/ multi/ dot1q-tunnel.
1, access: is mainly used toaccess
terminal equipment, such as PC, server, print server.
2, trunk: is mainly used in connection with other switches, to support multiple VLAN in line.Multiple VLAN bearing
3, multi: in a line, but unlike trunk, it does not carry datatagging. Mainly used for access to support multiple VLAN servers or network
analysis apparatus. Now don't use this kind of interface, in the
Cisco network equipment, also does not support this type of interface.
4, dot1q-tunnel: is used in the Q-in-Q tunnel configuration. Switch (config) #vtp domain; set theVTP domain of switch (config) #vtp password; set the VTP password
switch(config) #vtp mode server; VTP switch to set up the model of (config) #vtpmode client;
set up the VTP model three.
The switch IP address switch (config)#interface VLAN 1 to VLAN 1
Switch (config-if) #ip address 132.37.48.3 255.255.255.0; set the switchmanagement IP switch (config) #ip default-gateway 132.37.48.1; set the switchthe default gateway switch (config) #end; exit current mode Switch#conf t enter
privilege mode Switch (config) interface fa0/5 Switch (config-if) # # shutdowncloses the port Switch (config-if) no shutdown # open
port four commandprivilege mode. The switch display: switch#write; save the
configuration information for the switch#show VTP; see VTP configuration information for the
switch# show run; see
the current configuration information
for the switch#show VTP VTP switch#show VLAN information exchange; check; check the VLAN configuration information for the
switch#show interface; Switch#showinterfaces FastEthernet 0/1 view
port information switchport; two layer displayport state, can be used to determine the this is
the mouth of two or three layers of export. Switch#show int f0/0; look at the specified port informationsw1924_b#show IP; see the setting sw1924_b#show versi; check the switchversion information sw1924_b#show running-config; check the switch currentrunning configuration information of all the sw1924_b#show int E0 /1; check
the switch first port information based on MAC address binding port
Switch#config terminal to enter the Switch configuration mode (config) #Interface FastEthernet 0/1 into
the specific interface
configuration mode Switch(config-if) #Switchport port-secruity configure port security model Switch(config-if) switchport port-security mac-address MAC (address
MAC) toconfigure the port to bind the MAC address of host Switch (config-if) noswitchport ws-c3560x-24p-s port-security mac-address MAC (address
MAC). Remove the binding MAC address of the host。
没有评论:
发表评论