当前位置:首页 > 新《计算机网络》实验-8-2015 - 图文
据包未发出5个之前通过执行快捷键“Ctrl+C”终止当前操作。 第三步:配置交换机的名称和每日提示信息
Switch(config)#hostname SW-1
!使用hostname命令更改交换机的名称 SW-1(config)#banner motd $
!使用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#Nov 25 22:04:01 %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>
第四步:配置接口状态
锐捷全系列交换机Fastethernet接口默认情况下是10M/100Mbit/s自适应端口,双工模式也为自适应(端口速率、双工模式可配置)。默认情况下,所有交换机端口均开启。
如果网络中存在一些型号比较旧的主机,还在使用10Mbit/s半双工的网卡,此时为了能够实现主机之间的正常访问,应当在交换机上进行相应的配置,把连接这些主机的交换机端口速率设为10Mbit/s,传输模式设为半双工。
SW-1(config)#interface fastEthernet 0/1 !进入端口F0/1的配置模式 SW-1(config-if)#speed 10 !配置端口速率为10M
SW-1(config-if)#duplex half !配置端口的双工模式为半双工
SW-1(config-if)#no shutdown
!开启端口,使端口转发数据。交换机端口默认已经开启。 SW-1(config-if)#description \ !配置端口的描述信息,可作为提示。 SW-1(config-if)#end
SW-1#Nov 25 22:06:37 %SYS-5-CONFIG_I: Configured from console by console SW-1#
SW-1#show interface fastEthernet 0/1 Index(dec):1 (hex):1
FastEthernet 0/1 is UP , line protocol is UP Hardware is marvell FastEthernet
Description: \ 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 ,Txload is 1 Queueing strategy: WFQ Switchport attributes:
interface's description:\ medium-type is copper
lastchange time:329 Day:22 Hour: 5 Minute: 2 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
broadcast Storm Control is OFF,multicast Storm Control is OFF,unicast Storm Control is OFF
5 minutes input rate 0 bits/sec, 0 packets/sec 5 minutes output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer, 0 dropped Received 0 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort 0 packets output, 0 bytes, 0 underruns , 0 dropped 0 output errors, 0 collisions, 0 interface resets SW-1#
如果需要将交换机端口的配置恢复默认值,可以使用default命令。 SW-1(config)#interface fastEthernet 0/1 SW-1(config-if)#default bandwidth !恢复端口默认的带宽设置
SW-1(config-if)#default description !取消端口的描述信息
SW-1(config-if)#default duplex !恢复端口默认的双工设置 SW-1(config-if)#end
SW-1#Nov 25 22:11:13 %SYS-5-CONFIG_I: Configured from console by console SW-1#
SW-1#show interface fastEthernet 0/1 Index(dec):1 (hex):1
FastEthernet 0/1 is UP , line protocol is UP Hardware is marvell 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 ,Txload is 1 Queueing strategy: WFQ Switchport attributes:
interface's description:\ medium-type is copper
lastchange time:329 Day:22 Hour:11 Minute:13 Second Priority is 0
admin duplex mode is AUTO, oper duplex is Full admin speed is AUTO, oper speed is 100M
flow control admin status is OFF,flow control oper status is ON
broadcast Storm Control is OFF,multicast Storm Control is OFF,unicast Storm Control is OFF
5 minutes input rate 0 bits/sec, 0 packets/sec 5 minutes output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer, 0 dropped Received 0 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort 0 packets output, 0 bytes, 0 underruns , 0 dropped 0 output errors, 0 collisions, 0 interface resets SW-1#
第五步:查看交换机的系统和配置信息
SW-1#show version !查看交换机的系统信息
System description : Ruijie Dual Stack Multi-Layer Switch(S3760-24) By Ruijie Network
!交换机的描述信息(型号等)
System start time : 2008-11-25 21:58:44 System hardware version : 1.0 !设备的硬件版本信息
System software version : RGNOS 10.2.00(2), Release(27932)
!操作系统版本信息
System boot version : 10.2.27014 System CTRL version : 10.2.24136
System serial number : 0000000000000 SW-1#
SW-1#show running-config !查看交换机的配置信息 Building configuration...
Current configuration : 1279 bytes !
version RGNOS 10.2.00(2), Release(27932)(Thu Dec 13 10:31:41 CST 2007 -ngcf32)
hostname SW-1 !
vlan 1 !
no service password-encryption !
interface FastEthernet 0/1 !
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 !
interface FastEthernet 0/10 !
interface FastEthernet 0/11 !
interface FastEthernet 0/12 !
interface FastEthernet 0/13 !
共分享92篇相关文档