计算机网络-交换机基本配置

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

理院、系电子科学与技术专业 11 年级 1113 班
试验时间 2013 年 10 月日
姓名林伟雄学号 201111911313
实验名称交换机基本配置
同组同学
实验成绩
一、实验目的
1、了解交换机的作用。

2、掌握交换机的基本配置方法。

3、熟悉Packet Tracer 5.3 交换机模拟软件的使用。

二、实验仪器设备及软件
以太网交换机一台、一台PC、专用配置电缆一根、网线一根。

三、实验步骤
1、在任何模式下,用户在输入命令时,不用全部将其输入,只要前几个字母能够唯一标识该命令便可,在此时按Tab键将显示全称。

2、在任何模式下,输入一个“?”即可显示所有在该模式下的命令。

3、如果不会拼写某个命令,可以键入开始的几个字母,在其后紧跟一个“?”,交换机即显示有什么样的命令与其匹配。

4、如不知道命令后面的参数应是什么,可以在该命令的关键字后加一个空格,键入“?”,交换机即会提示与“?”对应的参数是什么,例如,Switch#show?
5、要删除某条配置命令,在原配置命令前加一个no和空格。

6、了解交换机各种配置模式的功能。

7、修改交换机名称和密码。

退到上一层模式用“exit”,要退到特权模式用“end”。

查看交换机配置文件信息用show startup-config,查看当前所有配置信息用show running-config。

重启交换机用reload命令。

8、将IP地址和telnet配置好。

9、连接登录到真正cisco设备的过程,有以下四种方式:
a、通过Console终端方式;
b、通过telnet远程访问;
c、通过Web管理界面;
d、通过网管软件。

步骤1:要连接一台还没配置的新交换机或者没有管理IP地址的交换机,只能用终端方式访问,利用console线连接设备的console口与PC机的串口。

步骤2:设置好交换机的管理IP地址后,就可以通过telnet登录到交换机,进行管理。

步骤3:PC机telnet到该地址上访问。

四、实验结果及分析
jisuanji:671223>enable 14
Password:
jisuanji:671223#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. jisuanji:671223(config)#interface ?
Aggregateport Aggregate port interface
FastEthernet Fast IEEE 802.3
GigabitEthernet Gigabit Ethernet interface
Loopback Loopback interface
Multilink Multilink-group interface
Virtual-ppp Virtual PPP interface
Virtual-template Virtual Template interface
Vlan Vlan interface
range Interface range command
jisuanji:671223(config)#interface
jisuanji:671223(config)#
jisuanji:671223#*Oct 14 11:03:12: %SYS-5-CONFIG_I: Configured from console by console
jisuanji:671223#
jisuanji:671223#EXIT
jisuanji:671223 CON0 is now available
Press RETURN to get started
jisuanji:671223> ?
Exec commands:
<1-99> Session number to resume
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
exit Exit from the EXEC
help Description of the interactive help system
lock Lock the terminal
ping Send echo messages
show Show running system information
telnet Open a telnet connection
traceroute Trace route to destination
jisuanji:671223>
jisuanji:671223>en<tab>
% Unrecognized host or address.
jisuanji:671223>enable
Password:
% Access denied
jisuanji:671223>configure terminal
jisuanji:671223>enable 14
Password:
jisuanji:671223#con?
configure
jisuanji:671223#con
Enter configuration commands, one per line. End with CNTL/Z. jisuanji:671223(config)#conf t
jisuanji:671223(config)#interface ?
Aggregateport Aggregate port interface
FastEthernet Fast IEEE 802.3
GigabitEthernet Gigabit Ethernet interface
Loopback Loopback interface
Multilink Multilink-group interface
Virtual-ppp Virtual PPP interface
Virtual-template Virtual Template interface
Vlan Vlan interface
range Interface range command
jisuanji:671223(config)#interface
jisuanji:671223#*Oct 14 11:13:21: %SYS-5-CONFIG_I: Configured from console by console
jisuanji:671223#ping 1.1.1.1
Sending 5, 100-byte ICMP Echoes to 1.1.1.1, timeout is 2 seconds:
< press Ctrl+C to break >
.....
Success rate is 0 percent (0/5)
jisuanji:671223#ping 176.13.136.159
Sending 5, 100-byte ICMP Echoes to 176.13.136.159, timeout is 2 seconds: < press Ctrl+C to break >
.....
Success rate is 0 percent (0/5)
jisuanji:671223#176.16.136.100
Trying 176.16.136.100, 23...
% Destination unreachable; gateway or host down
jisuanji:671223#172.16.136.100
Trying 172.16.136.100, 23...
% Destination unreachable; gateway or host down
jisuanji:671223#172..16.136.74
% Unrecognized host or address.
jisuanji:671223#172.16.136.74
Trying 172.16.136.74, 23...
% Destination unreachable; gateway or host down
jisuanji:671223#172.16.136.75
Trying 172.16.136.75, 23...
% Destination unreachable; gateway or host down
jisuanji:671223#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. jisuanji:671223(config)#hostname SW-1
SW-1(config)#
SW-1(config)#banner motd $
Enter TEXT message. End with the character '$'.
Welcome to SW-1,if you are admin,you can config it.
if you are not admin,please EXIT!
$
SW-1(config)#
SW-1(config)#exit
SW-1#*Oct 14 11:23:24: %SYS-5-CONFIG_I: Configured from console by console
SW-1#exit
SW-1 CON0 is now available
Press RETURN to get started
Welcome to SW-1,if you are admin,you can config it.
if you are not admin,please EXIT!
SW-1>enable 14
Password:
SW-1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW-1(config)#show inter
========================== FastEthernet 0/1 ======================== Index(dec):1 (hex):1
FastEthernet 0/1 is UP , line protocol is UP
Hardware is S2600I FastEthernet
Description: "This is a Accessport"
Interface address is: no ip address
MTU 1500 bytes, BW 10000 Kbit
Encapsulation protocol is Bridge, loopback not set
Keepalive interval is 10 sec , set
Carrier delay is 2 sec
Rxload is 1/255, Txload is 1/255
Switchport attributes:
interface's description:""This is a Accessport""
admin medium-type is Copper, oper medium-type is Copper
lastchange time:0 Day: 2 Hour:11 Minute: 3 Second
Priority is 0
admin duplex mode is Force Half Duplex, oper duplex is Half
admin speed is 10M, oper speed is 10M
flow control admin status is OFF, flow control oper status is OFF Storm Control: Broadcast is OFF, Multicast is OFF, Unicast is OFF Port-type: access
Vlan id: 1
5 minutes input rate 93 bits/sec, 0 packets/sec
5 minutes output rate 38 bits/sec, 0 packets/sec
389 packets input, 73373 bytes, 0 no buffer, 0 dropped
Received 231 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort
1665 packets output, 336250 bytes, 0 underruns , 0 dropped
0 output errors, 0 collisions, 0 interface resets
========================== FastEthernet 0/2 ======================== Index(dec):2 (hex):2
FastEthernet 0/2 is DOWN , line protocol is DOWN
Hardware is S2600I FastEthernet
Interface address is: no ip address
MTU 1500 bytes, BW 100000 Kbit
Encapsulation protocol is Bridge, loopback not set
Keepalive interval is 10 sec , set
Carrier delay is 2 sec
Rxload is 1/255, Txload is 1/255
Switchport attributes:
interface's description:""
admin medium-type is Copper, oper medium-type is Copper
SW-1(config)#FastEthernet 0/1
SW-1(config)#interface FastEthernet 0/1
SW-1(config-if-FastEthernet 0/1)#speed 10
SW-1(config-if-FastEthernet 0/1)#duplex half
SW-1(config-if-FastEthernet 0/1)#no shutdown
SW-1(config-if-FastEthernet 0/1)#description "This is an Accessport." SW-1(config-if-FastEthernet 0/1)#end
SW-1#*Oct 14 11:28:10: %SYS-5-CONFIG_I: Configured from console by console
SW-1#show interface FastEthernet 0/1
Index(dec):1 (hex):1
FastEthernet 0/1 is UP , line protocol is UP
Hardware is S2600I FastEthernet
Description: "This is an Accessport."
Interface address is: no ip address
MTU 1500 bytes, BW 10000 Kbit
Encapsulation protocol is Bridge, loopback not set
Keepalive interval is 10 sec , set
Carrier delay is 2 sec
Rxload is 1/255, Txload is 1/255
Switchport attributes:
interface's description:""This is an Accessport.""
admin medium-type is Copper, oper medium-type is Copper
lastchange time:0 Day: 2 Hour:11 Minute: 3 Second
Priority is 0
admin duplex mode is Force Half Duplex, oper duplex is Half
admin speed is 10M, oper speed is 10M
flow control admin status is OFF, flow control oper status is OFF Storm Control: Broadcast is OFF, Multicast is OFF, Unicast is OFF Port-type: access
Vlan id: 1
5 minutes input rate 99 bits/sec, 0 packets/sec
5 minutes output rate 492 bits/sec, 0 packets/sec
397 packets input, 76141 bytes, 0 no buffer, 0 dropped
Received 239 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort
1745 packets output, 353673 bytes, 0 underruns , 0 dropped
0 output errors, 0 collisions, 0 interface resets
SW-1#
SW-1#show version
System description : Ruijie Gigabit Security & Intelligence Access Switch (S2628G-I) By Ruijie Networks
System start time : 2013-10-14 8:10:19
System uptime : 0:3:20:19
System hardware version : 1.01
System software version : RGOS 10.4(3b2)p1 Release(136500)
System BOOT version : 10.4(3b2) Release(136500)
System CTRL version : 10.4(3b2) Release(136500)
System serial number : 9058FMA070341
Device information:
Device-1:
Hardware version : 1.01
Software version : RGOS 10.4(3b2)p1 Release(136500)
BOOT version : 10.4(3b2) Release(136500)
CTRL version : 10.4(3b2) Release(136500)
Serial number : 9058FMA070341
SW-1#show running-config
Building configuration...
Current configuration : 1419 bytes
version RGOS 10.4(3b2)p1 Release(136500)(Tue May 29 14:08:02 CST 2012 -ngcf62)
hostname SW-1
nfpp
vlan 1
service password-encryption
ip http authentication local
enable service web-server http
enable service web-server https
interface FastEthernet 0/1
duplex half
speed 10
description "This is an Accessport."
interface FastEthernet 0/2
interface FastEthernet 0/3
interface FastEthernet 0/4
interface FastEthernet 0/5
interface FastEthernet 0/6
interface FastEthernet 0/7
interface FastEthernet 0/8
interface FastEthernet 0/9
SW-1#copy running-config startup-config
SW-1#write memory
SW-1#write
Translating "write"...
% Unrecognized host or address, or protocol not running.
SW-1#*Oct 14 11:33:57: %LINK-3-UPDOWN: Interface FastEthernet 0/11, changed state to down.
*Oct 14 11:33:57: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/11, changed state to down.
五、实验总结及体会
命令行操作进行自动补齐或命令简写时,要求所简写的字母必须能够惟一区别该命令。

如switch# conf可以代表configure,但switch#co无法代表configure,因为co开头的命令有两个copy和configure,设备无法区别。

注意区别每个操作模式下可执行的命令种类。

交换机不可以跨模式执行命令。

相关文档
最新文档