博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
NA-NP-IE系列实验43:交换机基本配置
阅读量:7208 次
发布时间:2019-06-29

本文共 5088 字,大约阅读时间需要 16 分钟。

实验43:交换机基本配置
1. 
实验目的
通过本实验,读者可以掌握如下技能:
(1) 熟悉交换机的基本配置
2. 
实验拓扑
 
拓扑图
 
3. 
实验步骤
 
注:默认时交换机的以太网接口是开启的。对于交换机的以太网口可以配置其双工模式、速
率等。
用CONSOLE线连接好PC和交换机后,打开PC的开始--所有程序--附件--通讯--超级终端--
 
 
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by miwang
Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
2950T-24 starting...
Base ethernet MAC Address: 0090.0C1D.7B74
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 1 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 3058048
flashfs[0]: Bytes available: 60958336
flashfs[0]: flashfs fsck took 1 seconds.
...done Initializing Flash.
 
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
 
 
Loading "flash:/c2950-i6q4l2-mz.121-22.EA4.bin"...
########################################################################## [OK]
              Restricted Rights Legend
 
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
 
           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba
 
Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
Processor board ID FHK0610Z0WC
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
 
63488K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 0090.0C1D.7B74
Motherboard assembly number: 73-5781-09
Power supply part number: 34-0965-01
Motherboard serial number: FOC061004SZ
Power supply serial number: DAB0609127D
Model revision number: C0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FHK0610Z0WC
 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba
 
Press RETURN to get started!
 
 
 
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname sw2950
sw2950(config)#enable secret cisco
配置进入特权模式的密码
sw2950(config)#line vty 0 15
sw2950(config-line)#password cisco
设置
VTY
密码
sw2950(config-line)#login
sw2950(config-line)#no ip domain-lookup
sw2950(config)#line console 0
sw2950(config-line)#loggin synchronous 
同步
sw2950(config-line)#exec-timeout 00 
设置超时
sw2950(config-line)#exit
sw2950(config)#do sh ip int
sw2950(config)#do sh ip int
sw2950(config)#do sh ip inter
sw2950(config)#do sh ip interface brief
查看所有接口的情况
Interface              IP-Address      OK? Method Status                Protocol
 
FastEthernet0/1        unassigned      YES manual down                  down
 
FastEthernet0/2        unassigned      YES manual down                  down
 
FastEthernet0/3        unassigned      YES manual down                  down
 
FastEthernet0/4        unassigned      YES manual down                  down
 
FastEthernet0/5        unassigned      YES manual down                  down
 
FastEthernet0/6        unassigned      YES manual down                  down
 
FastEthernet0/7        unassigned      YES manual down                  down
 
FastEthernet0/8        unassigned      YES manual down                  down
 
FastEthernet0/9        unassigned      YES manual down                  down
 
FastEthernet0/10       unassigned      YES manual down                  down
 
FastEthernet0/11       unassigned      YES manual down                  down
 
FastEthernet0/12       unassigned      YES manual down                  down
 
FastEthernet0/13       unassigned      YES manual down                  down
 
FastEthernet0/14       unassigned      YES manual down                  down
 
FastEthernet0/15       unassigned      YES manual down                  down
 
FastEthernet0/16       unassigned      YES manual down                  down
 
FastEthernet0/17       unassigned      YES manual down                  down
 
FastEthernet0/18       unassigned      YES manual down                  down
 
FastEthernet0/19       unassigned      YES manual down                  down
 
FastEthernet0/20       unassigned      YES manual down                  down
 
FastEthernet0/21       unassigned      YES manual down                  down
 
FastEthernet0/22       unassigned      YES manual down                  down
 
FastEthernet0/23       unassigned      YES manual down                  down
 
FastEthernet0/24       unassigned      YES manual down                  down
 
GigabitEthernet1/1     unassigned      YES manual down                  down
 
GigabitEthernet1/2     unassigned      YES manual down                  down
 
Vlan1                  unassigned      YES manual administratively down down
sw2950(config)#
sw2950(config)#
sw2950(config)#int f0/1
sw2950(config-if)#duplex full
//duplex 
用来配置接口的双工模式,full——全双工
sw2950(config-if)#speed 100
设置速度为
100M
sw2950(config-if)#exit
sw2950(config)#int vlan 1
sw2950(config-if)#ip address 172.16.1.1 255.255.255.0
交换机也允许被telnet,这时需要在交换机上配置一个IP 地址,这个地址是在VLAN 接
口上配置的。
sw2950(config-if)#no sh
%LINK-5-CHANGED: Interface Vlan1, changed state to upsw2950sw2950(config-if)#exit
sw2950(config)#ip default-gateway 172.16.1.254
//
以上在VLAN 1 接口上配置了管理地址,接在VLAN 1 上的计算机可以直接进行telnet 
地址。为了其他网段的计算机也可以telnet 交换机,我们在交换机上配置了缺省网关。
 
sw2950(config)#do copy running startup
保存配置
本文转自gauyanm 51CTO博客,原文链接:http://blog.51cto.com/gauyanm/241946,如需转载请自行联系原作者
你可能感兴趣的文章
Android应用目录结构分析
查看>>
动画总结(UIView的动画)
查看>>
顶点着色器和片断着色器
查看>>
vc++实现禁用按钮
查看>>
flask with gae开发小结
查看>>
以打字形式展示placeholder的插件
查看>>
http文件导出写文件
查看>>
Globus的简单介绍
查看>>
[LeetCode] Search Insert Position 解题报告
查看>>
c# 的传递参数值传递与传递引用的区别,ref与out区别
查看>>
win7+vs2008+cuda5.x 环境配置二
查看>>
PHP5.5安装PHPRedis扩展
查看>>
c#Socket Tcp服务端编程
查看>>
java构造函数注意点
查看>>
Asp.net 中配置 CKEditor和CKFinder
查看>>
Use dynamic type in Entity Framework 4.1 SqlQuery() method
查看>>
《Python CookBook2》 第四章 Python技巧 - 若列表中某元素存在则返回之 && 在无须共享引用的条件下创建列表的列表...
查看>>
redhat网卡设置
查看>>
javascript 的作用域
查看>>
JFinal极速开发框架使用笔记(二) 两个问题,一个发现
查看>>