1. Different VLANs
Different VLANs require routing
Set multiple IP segments on the routed port
Switch Simulator Experiment Six
2. View the port name
Swa#shvlan
Default Active F0/1, F0/2, F0/3, F0/4, F0/5, F0/6,F0/7, F0/8
F is the port name
Default Active gi/1, GI0/2, GI0/3, GI0/4, GI0/5,GI0/6, GI0/7, GI0/8
GI is the port name
3. Create dynamic Link Aggregation
Switch (config) #interfacerange g0/21-22
Switch (Config-if-range) #channel-group 1 mode active
Switch (Config-if-range) #exit
4. Create a link type for a port
The Ethernet port has three types of links: Access, Hybrid, Trunk. A port of type access can only belong to 1 VLANs, which is typically used to connect to a computer's port, a Trunk-type port that belongs to multiple VLANs, a message that can receive and send multiple VLANs, and a port that is typically used for connections between switches; The port of type hybrid can belong to more than one VLAN. Messages that can receive and send multiple VLANs can be used for connections between switches, and can also be used to connect users ' computers. The difference between the hybrid port and the trunk port is that the hybrid port can allow multiple VLAN messages to be sent without tagging, while the trunk port allows only the default VLAN messages to be sent without tagging.
Table 1-9 Setting the link type of the Ethernet port
Operation
Command
Set Port to access port
Switch (config) #interface range g0/21-22
Switch (config) #switchport mode access
Set Port to hybrid port
Switch (config) #interface range g0/21-22
Switch (config) #switchport mode hybrid
Set Port to trunk port
Switch (config) #interface range g0/21-22
Switch (config) #switchport mode trunk
The link type of the recovery port is the default access port
Undo Port Link-type
There are three types of ports that can coexist on one Ethernet switch, but the trunk port and the hybrid port cannot be switched directly, and can only be set to an access port and then to another type of port. For example, the trunk port cannot be set directly to the hybrid port, and can be set to an access port first and then to the hybrid port.
By default, the port is an access port.
It is important to note that the VLAN that the access port joins must already exist and cannot be the default Vlan;hybrid port join VLAN must already exist, the VLAN joined by the trunk port cannot be the default VLAN.
With this configuration, the current Ethernet port can forward messages for the specified VLAN. The hybrid port and trunk ports can be added to multiple VLANs, enabling interoperability of the VLAN on the switch with the same VLAN on the peer switch. The hybrid port can also set which VLAN messages are labeled and which do not tag, laying the groundwork for implementing different processing processes for different VLAN messages
5. Switch Display command
The switch displays the command:
Switch#write; Saving configuration information
Switch#show VTP; View VTP configuration information
Switch#show run; View current configuration information
Switch#show VLAN; View VLAN configuration information
Switch#show interface; viewing port information
switch#show int f0/0; View specified port information
#show IP int bir view port VLAN IP Open Status overview
#show int Status View Port status overview
#show Inventory View Optical Module display letter
#sh int EtherChannel sum view "Port aggregation/link Bundle #sh int port-channel View" Port aggregation/link Bundle #show spanning-tree view spanning tree status
#show access-list View rule status
#show History View Historical input commands
#show errdisable Recovery see which protections can be automatically recovered after a timeout
#showerrdisable Detect ? View err-disabled reason for the state
6. Configure the IP of the VLAN
S (config) #int VLAN 6
S (Config-vlan) #no Shu
S (Config-vlan) #ip add 10.2.20.1 255.255.255.254
Swa#wr
7. Configure the IP and gateway for the switch
Configure Switch Gateway: Switch (config) #ipdefault-gateway Gateway
Switch (config) #intvlan 1
Set the IP address and mask:
Switch (config-if) #ip address 10.65.1.3 255.255.0.0
To set the gateway for switch:
Switch (config) #ip Defaule-gateway 10.65.1.9
To view the current configuration:
Switch#sh Run
8. Clear all Cisco Configurations
Swa#delvlan.dat
Swa#reload
9. Delete dynamic Links
Switch (config) #interfacerange g0/21-22
Switch (Config-if-range) #no Channel-group 1
Switch (Config-if-range) #exit
10. Setting up a VTP
Switch (config) #vtpdomain; set the VTP domain name
Switch (config) #vtp password; set the VTP password
Switch (config) #vtp mode server, setting the VTP pattern
Switch (config) #vtp mode client, setting the VTP pattern
11. Set the IP and subnet mask for the Cisco switch
Switch#conft
Enter the default VLAN status:
Switch (config) #int vlan 1
Set the IP address and mask:
Switch (config-if) #ip address 10.65.1.3 255.255.0.0
To set the gateway for switch:
Switch (config) #ip Defaule-gateway 10.65.1.9
To view the current configuration:
Switch#sh Run
Swa#write
12. Cisco Telnet Login method
Start--cmd---telnet
13. Cisco Save method
In global configuration mode
Router#copy running-config startup-config//Save current configuration
Or
Router#write
Also OK
14. Cisco View VLAN
Swa#sh VLAN
15. Cisco View current Configuration
To view the current configuration:
Switch#sh Run
Cisco factory Reset
Switch#erase Startup-config
Switch#reload
You are prompted to save the configuration, select No
17. Cisco joins the port to the VLAN
SWA (config) #intf0/5 (f is the port number SH VLAN can look at the port number, the port number is not the same as ours is GI)
SWA (config-if) #switchport Access VLAN 2
SWA (config-if) #int F0/6
SWA (config-if) #switchport Access VLAN 2
SWA (config-if) #int F0/7
SWA (config-if) #switchport Access VLAN 2
SWA (config-if) # End
Swa#sh VLAN
SWA#WR (Save)
18. Cisco and PC Connection method
First, the software cannot connect to the real device:
Select a PC, one device (switch, router is OK)
Connect PC and device, cable choose blue Cable, English should be console---console meaning. Connect Yes, select the RS232 interface on the PC, select the console interface on the device
After connecting, double-click the PC icon, open a window, click Desktop, then select Terminal (Terminal), click OK, you can!
19. Cisco enters
Switch>enable
switch#
20. Cisco mode
Hehe finally found a question about Cisco.
Hello friends, I use my own language expression ha, a bit long ha, but will help you learn to understand Kazakhstan. Cisco's routers have the following user interface:
1. User EXEC Mode
2. Privileged execution modes (privileged EXEC mode)
3. Global configuration mode
4. Monitor mode (ROM Monitor-mode) CTRL + BREAK
5. Setup mode to enter the privileged mode on the setup line
6.Boot modes (rxboot mode)
Commonly used are 1, 2, and 3. I'll take the formal answer to your question.
When the router is on, the interface prompt is ">", like this, "router>" This is the user execution mode, is also the lowest level mode, it only allows a limited number of basic monitoring commands, which do not allow any changes in the configuration of the router command.
So what happens when we configure the router, then we have to go to the "Privileged execution mode" (that is, enter the "Enable" command in user execution mode). A prompt such as "#" appears, such as "router#". It provides more commands and permissions than the user execution mode, such as debug commands, and more granular testing.
As for the "Global configuration Mode", is the configuration (global) system and the corresponding specific details configuration (such as interface IP, routing protocol These) entered the interface, in this configuration of the east is the impact of the global. The global configuration mode prompt is such a "(config) #", such as the example I'm going to cite here is "Router (config) #".
In order to configure the specific things you have to go from the global configuration mode into the corresponding sub-configuration mode. Like what:
Router (CONFIG-IF) #//Specific interface configuration
Router (config-line) #//line mode configuration, such as console and vty these ha
Router (Config-router) #//router mode, such as when configuring the routing protocol
Baidu know can't reply function is not strong enough, otherwise I can re-more beautiful typesetting and marking, so that friends easier to understand.
A simple summary of your problem is that the privileged execution mode is mainly used for debugging, and the global configuration mode is used for configuration. And their relationship, to get to the global configuration mode, you have to be in the privileged execution mode first.
and the corresponding commands see the following ha:
Router>
Router>enable//will enter into privileged execution mode from user execution mode
Password://If you set a password for the privileged execution mode, you must enter the password when entering
router#
Router#exit//will be returned from privileged execution mode to user execution mode
Router>
I'll show you how to get to global configuration mode from user execution mode in the next step:
Router>enable
router#
Router#configure Terminal
Router (config) #
21. Cisco configures the VLAN and saves
Swa#vlandatabase
SWA (VLAN) #vlan 2
SWA (VLAN) #vlan 3
SWA (VLAN) #exit
Swa#write
22. Cisco Configuration Remote Login
111 (config) #line vty 0 4 into the virtual thread configuration mode, in this mode can be
The Telnet feature is configured
111 (config-line) # Login
111 (config-line) # password XXX Configure Telnet password, the default network device Telnet function is
Closed, with a password will automatically open
111 (config) # enable password XXX configuration Enter the password in enable mode, case sensitive
111 (config) # enable secret XXX configuration into enable mode password, is encrypted password, show
Run is invisible.
111 (config) # line console 0
111 (config-line) # Login
111 (config-line) # Password XXX Configure password to enter user mode
111 (config-line) # Logging Synchronous input Sync
111 (config-line) # exec-timeout 0 0 Forbidden to jump out for a period of time without input
111#swa#write Save Configuration
23. Cisco Batch Login
Off
Echo Set Sh=wscript.createobject ("Wscript.Shell") >telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Open your network device telnet login IP" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "{ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Your user name {ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Your password {ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Conf{enter}" >>telnet_tmp.vbs
Start Telnet
cscript//nologo Telnet_tmp.vbs
Del Telnet_tmp.vbs
24. Cisco Delete VLAN
Jjf{cinfig} #novlan 10 Delete vlan10
Jjf{cinfig} #end back to privileged mode
Jjf{cinfig}sh VLAN View VLAN
Swa#write
25. Cisco Setup Trunk Trunk
Set Trunk Trunk
Set the port that connects the two switches to trunk.
SWA (config) #int F0/8
SWA (config-if) #switchport mode trunk
SWA (config-if) #switchport trunk allowed VLAN-A-line (VLAN 1 2 3 only allowed on this trunk link, this is VLAN pruning. )
SWA (config-if) #switchport trunk encap dot1q (can not dot1q is VLAN trunking Protocol (802.1Q) general switches are self-bringing)
SWA (config-if) #end
Swa#sh Run
SWB (config) #intf0/1
SWB (config-if) #switchport mode trunk
SWB (config-if) #switchport trunk allowed VLAN
SWB (config-if) #switchport trunk encap dot1q
SWB (config-if) #end
Swb#sh Run
26. Cisco Models
Ciscocatalyst 2960g-24tc-l 24 Ethernet/LAN ports, of which 4 are dual-use ports
26. Cisco Remote login PINGIP address (can do batch processing)
Off
Echo Set Sh=wscript.createobject ("Wscript.Shell") >telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Open login switch IP address" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "{ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "user name {ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Login Password {ENTER}" >>telnet_tmp.vbs
Echo Sh. SendKeys "Ping 192.168.0.2{enter}" >>telnet_tmp.vbs
Start Telnet
cscript//nologo Telnet_tmp.vbs
Echo del Telnet_tmp.vbs
27. Cisco Remote Switch Login configuration
1. Enter VLAN 1 interface mode
Switch (config) #interface vlan 1
2. Open VLAN 1 port
Switch (config-if) #no shutdown
3. Configure the IP address of VLAN 1
Switch (config-if) #ip address 172.16.10.99 255.255.255.0
Third, configure the switch telnet login
1. Setting the privileged mode password in global configuration mode
Switch (config) #enable password Cisco
2. Set the line number of the virtual terminal (Vsan terminal) in global configuration mode
Switch (config) #line vty 0 4
Switch (config-line) #
3. Set the user password to log on through the virtual terminal in line configuration mode net (password must be set to use the management IP telnet switch)
Switch (config-line) #password net
4. Use the login command in line configuration mode to test if you can Telnet
Switch (config-line) #login
Switch (config-line) #
If the prompt does not appear, the setting is successful, and if a five-clue hint appears, the setting is incorrect.
Iv. using the PC1 machine telnet switch
1. Connect the PC1 with a straight line to the FASTETHERNET0/3 port of the switch.
2. Open IP configuration on the desktop of PC1, select the static configuration, set the IP address to 172.16.10.100, the subnet mask is 255.255.255.0.
3. Open the "command Prompt" on the PC1 's "desktop".
4. Remotely log on to the switch using the telnet command at the command prompt (switch management IP address is 172.16.10.99)
Pc>telnet 172.16.10.99
Trying 172.16.10.99 ...
User Access Verification
Password:
Enter the user configuration mode of the switch by entering the telnet login password net (which will not display any symbols when the password is entered) after the password prompt text that appears next.
5. Enter the privileged mode password into global configuration mode
Enter the Enable command in User Configuration mode, and then enter the configured privileged mode password Cisco (which does not display any symbols when the password is entered) to enter global configuration mode for subsequent network settings.
Switch>enable
Password:
28. Cisco Restart
Cisco all reboot commands are reload.
29. Remote Login switch can do batch processing
Off
Echo Set Sh=wscript.createobject ("Wscript.Shell") >telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Open 192.168.6.100" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "{Enter}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Root{enter}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "Jjf1{enter}" >>telnet_tmp.vbs
Starttelnet
cscript//nologo Telnet_tmp.vbs
Echo del Telnet_tmp.vbs
Translating "ENB" ... domain server (255.255.255.255) shortcut keys
CTRL SHIFT + 6 no IP domain
Basic commands for Cisco switch configuration