Switch# %SYS-5-CONFIG_I: Configured fromconsole by console configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#do show vlan
VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 10 VLAN0010 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
Ping statistics for192.168.1.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 22ms, Average = 5ms
C:\>
配置成功
其他
输错指令进入域名解析
按 Ctrl+Shift+6 快捷键取消操作
Preparation
First, let’s put two PCs and two switches(non-nintendo) in the Cisco Packet Tracer. The Cisco Packet Tracer can be downloaded here. Then connect two PCs with their own switch by Copper Straight-Through Line. It is important to note that you should use Copper Cross-over Line to connect two switches. We use the switch model 2950-24 here. Connect FastEthernet 0/1 of the switch with the port of the PC, and then connect FastEthernet 0/24 of the two switches to each other.
Configuration of Interface and VLAN
View the information about VLAN
Double Click one of the switches and switch to the tab of CLI. The default mode is User Mode. You should type “enable” to enter the privilege mode. You can type “show vlan” to view the situation of VLAN. By default, all interfaces are on vlan1.
Primary Secondary Type Ports ------- --------- ----------------- ------------------------------------------ Switch#
To view the information of the current interface, type “show running-config”. To view the history of command execution, type “show history”.
Divide the interface into a custom vlan
First, type “configure terminal” to enter the global configuration mode. Then type “vlan 10” to create a new vlan. Type “do show vlan” after that, you will find an additional vlan.
Switch# %SYS-5-CONFIG_I: Configured fromconsole by console configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#do show vlan
VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 10 VLAN0010 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
Switch(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
Set IP Address for PCs
Set the IP of PC1 to 192.168.1.1, then set the IP of PC2 to 192.168.1.2. Then close the window to save the configuration. Open the Command Prompt. Try to ping PC2 from PC1. When you find a reply from PC2, you have done a good job.
Ping statistics for192.168.1.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 22ms, Average = 5ms
C:\\>
Other Problem
Incorrectly Entered Command and Go to Resolving Domain
Press Ctrl+Shift+6 to cancel the operation.
At the End
From now on, I will try to use Chinese and English in each post. I want to improve my English by doing this. So if you find a mistake in the post, or even a grammatical mistake, please leave a message below the article. It is my pleasure to listen to your criticisms and suggestions!