cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步

上传人:20****03 文档编号:153329603 上传时间:2020-11-28 格式:DOC 页数:5 大小:30.50KB
返回 下载 相关 举报
cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步_第1页
第1页 / 共5页
cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步_第2页
第2页 / 共5页
cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步_第3页
第3页 / 共5页
cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步_第4页
第4页 / 共5页
cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步》由会员分享,可在线阅读,更多相关《cisco2950-交换机-简单配置-2950-是只支持二层的交换机-支持-VLAN-第-1-步(5页珍藏版)》请在金锄头文库上搜索。

1、cisco2950 交换机 简单配置 2950 是只支持二层的交换机 支持 VLAN 第 1 步:单击“开始”按钮,在“程序”菜单的“附件”选项中单击“超级终端” 第 2 步:在“名称”文本框中键入“Cisco” 第 3 步:在“连接时使用”下拉列表框中选择与交换机相连的计算机的串口。台式机为“com 1”,笔记本为 “com 3 或者 com 5”。 第 4 步:在“波特率”下拉列表框中选择“9600”-确定. 如果通信正常的话就会出现类似于如下所示的主配置界面,并会在这个窗口中就会显示交换机的初始配 置情况。 enter enter enter no! 1)配置交换机姓名 switchen

2、a switch#configure enter switch#configure terminal (进入配置状态) Switch(config)#hostname 配置的交换机姓名 如:30FLoor-2960-1 30FLoor-2960-1(config)#end 30FLoor-2960-1# 2)配置交换机的 ip 30FLoor-2960-1#configure terminal (进入配置状态) 30FLoor-2960-1(config)#interface vlan 1 30FLoor-2960-1(config)#ip address ip 地址 子网掩码 例如:30FL

3、oor-2960-1(config)#ip address 10.11.90.10 255.255.255.0 30FLoor-2960-1(config)#no shutdown 30FLoor-2960-1(config)#end 30FLoor-2960-1# 30FLoor-2960-1# 3)配置交换机的 默认网关 30FLoor-2960-1(config)#ip default-gateway 网关 ip 例如:30FLoor-2960-1(config)#ip default-gateway 10.11.90.254 4)设置路由 30FLoor-2960-1(config)#

4、ip route 0.0.0.0 X.X.X.X 5)设置 console 口密码 30FLoor-2960-1(config)#line console 0 30FLoor-2960-1(config-line)#password 输入密码 30FLoor-2960-1(config-line)#login 30FLoor-2960-1(config-line)#end 6)设置 telnet 的密码 30FLoor-2960-1(config)#line vty 0 10 30FLoor-2960-1(config-line)#password 输入密码(yuxuan) 30FLoor-2

5、960-1(config-line)#login 30FLoor-2960-1(config-line)#end7)设置交换机的 enable 密码 30FLoor-2960-1(config)#enable password 输入密码(xuan) 30FLoor-2960-1(config)#enable secret 输入密码(yuxuan) 30FLoor-2960-1(config)#end 8)将当前配置信息保存到闪存中 30FLoor-2960-1(config)#write 9)查看交换机信息 30FLoor-2960-1# show version 查看交换机版本信息 show

6、 ip interfaces 查看交换机的 ip 地址 show interface vlan 1 验证管理 ip 地址已经配置并开启 show ip redirect 查看交换机的网关 show running-configure 查看交换机当前的配置信息 show configure 查看交换机保存的配置信息 switch#write ; 保存配置信息 switch#show vtp ; 查看 vtp 配置信息 switch#show run ; 查看当前配置信息 switch#show vlan ; 查看 vlan 配置信息 switch#show interface ; 查看端口信息

7、switch#show int f0/0 ; 查看指定端口信息 10)交换机基本配置步骤 1.登陆到交换机 2.进入特权模式 命令:enable 3.进入全局配置模式 命令:configure terminal 4.进入相应的配置子模式 如:接口子模式 命令:interface vlan 1 交换机基本状态: switch: ;ROM 状态, 路由器是 rommon hostname ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态 交换机口令设置: switchenable ;进入特权模式 s

8、witch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设

9、置登录口令 xx switch#exit ;返回命令交换机 VLAN 设置: switch#vlan database ;进入 VLAN 设置 switch(vlan)#vlan 2 ;建 VLAN 2 switch(vlan)#no vlan 2 ;删 vlan 2 switch(config)#int f0/1 ;进入端口 1 switch(config-if)#switchport access vlan 2 ;当前端口加入 vlan 2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport

10、 trunk allowed vlan 1,2 ;设置允许的 vlan switch(config-if)#switchport trunk encap dot1q ;设置 vlan 中继 switch(config)#vtp domain ;设置发 vtp 域名 switch(config)#vtp password ;设置发 vtp 密码 switch(config)#vtp mode server ;设置发 vtp 模式 switch(config)#vtp mode client ;设置发 vtp 模式 交换机设置 IP 地址: switch(config)#interface vla

11、n 1 ;进入 vlan 1 switch(config-if)#ip address ;设置 IP 地址 switch(config)#ip default-gateway ;设置默认网关 switch#dir flash: ;查看闪存 交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看 vtp 配置信息 switch#show run ;查看当前配置信息 switch#show vlan ;查看 vlan 配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息 思科

12、2950 交换机 VLAN 划分 cisco 首先配置一下交换机 SC-2950 SC-2950en SC-2950#conf t Enter configuration commands, one per line. End with CNTL/Z. SC-2950(config)#config-register 0x2102 SC-2950(config)#end 添加三个 VLAN SC-2950#vlan data SC-2950(vlan)#vlan 10 name v1 VLAN 10 added: Name: v1 SC-2950(vlan)#vlan 20 name v2 VL

13、AN 20 added: Name: v2 SC-2950(vlan)#vlan 30 name v3 VLAN 30 added: Name: v3 SC-2950(vlan)#exitAPPLY completed. Exiting. SC-2950# 划分接口到各个 VLAN SC-2950#conf t Enter configuration commands, one per line. End with CNTL/Z. SC-2950(config)#int fa0/1 /留给管理员 SC-2950(config-if)#switchport mode access SC-2950

14、(config-if)#sw acc vlan 10 SC-2950(config-if)#no shutdown SC-2950(config-if)#exit SC-2950(config)#int range f0/2 - 15 SC-2950(config-if-range)#sw mode acc SC-2950(config-if-range)#sw acc vlan 20 SC-2950(config-if-range)#no sh SC-2950(config-if-range)#exit SC-2950(config)#int range f0/16 - 24 SC-2950

15、(config-if-range)#sw mode acc SC-2950(config-if-range)#sw acc vlan 30 SC-2950(config-if-range)#no sh SC-2950(config-if-range)#exit 激活 VLAN,并且给 VLAN 10 加个 IP 以便管理 SC-2950(config)#int vlan 10 SC-2950(config-if)#ip add 192.168.1.1 255.255.255.0 SC-2950(config-if)#no sh SC-2950(config-if)#exit SC-2950(c

16、onfig)#int vlan 20 SC-2950(config-if)#no sh SC-2950(config-if)#exit SC-2950(config)#int vlan 30 SC-2950(config-if)#no sh SC-2950(config-if)#exit 将交换机指向网关 SC-2950(config)#ip default-gateway 192.168.1.254 SC-2950(config)#end SC-2950# 检测配置 SC-2950#sh vlan brief VLAN Name Status Ports - - - -1 default active 10 v1 active Fa0/1 20 v2 active Fa0/2, Fa0/3, Fa0/4,Fa0/5 Fa0/6, Fa0/7, Fa0/8,Fa0/9 Fa0/10, Fa0/11, Fa0/12,

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 教学/培训

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号