项目一: 交换机的基本配置与管理 (2).doc_第1页
项目一: 交换机的基本配置与管理 (2).doc_第2页
项目一: 交换机的基本配置与管理 (2).doc_第3页
项目一: 交换机的基本配置与管理 (2).doc_第4页
项目一: 交换机的基本配置与管理 (2).doc_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

项目一: 交换机的基本配置与管理任务1 交换机的基本配置一、 工作目的:熟悉配置环境,学会交换机的基本配置方法。二、 工作情景:你是一名新上任的网管,必须要求先熟悉网络产品,公司首先要求登录交换机,掌握交换机的命令行操作。三、 技术知识:1、对交换机的访问主要有两种方式:带外(out-of-band)访问方式和带内(in-band)访问方式。带外指的是在对交换机配置时不占用交换机带宽的一种方式,在首次访问交换机时一般都采用此方式。带外管理的核心理念在于通过不同的物理通道传送管理控制信息和数据信息,两者完全独立,互不影响 ;带内是指在对交换机配置时需要占用部分交换机的带宽,即通过网络来访问交换机,如Telnet、Web和SNMP这三种方式都是属于带内访问。带内管理即管理控制信息与数据信息使用统一物理通道进行传送。2、交换机的各种命令行操作模式: User Exec(用户模式) 刚开始登录到交换机时Switch执行logout或quit命令改变终端设置、执行基本的测试命令、显示系统信息,该模式是只读模式,提示符为Switch (Switch为交换机名,以下同) Privileged Exec(特权模式) 在用户模式下执行enable命令,提示符为Switch# Switch#执行disable或exit命令回到用户模式,访问此模式时可使用密码保护 Global Configuration(全局配置模式) 在特权模式下执行configure命令,提示符为Switch(config)# Switch(config)#执行exit或end命令或按下Ctrl+Z将配置的参数应用到整个交换机 Config-vlan(全局配置下的Vlan模式) 在全局配置模式中执行vlan vlan-id命令,提示符为Switch(config-vlan)# Switch(config-vlan)#执行exit命令退回全局配置模式,执行end命令或按下Ctrl+Z退回特权模式配置VLAN参数。当VTP模式处于透明模式时,创建扩展序列的VLAN(Vlan id大于1005),并将配置文件保存至启动文件 VLAN Configuration(Vlan配置模式) 在特权模式下,执行vlan database命令,提示符为Switch(vlan)# Switch(vlan)#执行exit命令退回特权模式在Vlan database中为Vlan11005配置Vlan参数 Interface Configuration(端口配置模式) 在全局配置模式下执行interface 命令,提示符为Switch(config-if)# Switch(config-if)#执行exit命令退回全局配置模式,执行end命令或按下Ctrl+Z退回特权模式为以太网端口配置(Ethernet interfaces)参数 line Configuration(线路配置模式) 在全局配置模式下执行line vty或line console命令,提示符为Switch(config-line)# Switch(config-line)#执行exit命令退回全局配置模式,执行end命令或按下Ctrl+Z退回特权模式为终端线路(terminal line)配置参数四、实现过程1)Boson软件实现实验拓扑结构及设备清单:交换机2950一台,PC1台,连交换机Fa0/1端口。实验步骤:1. 使用模拟软件构建如上拓扑结构图。直连线2.交换机配置:SwitchAenable进入特权模式:SwitchA#config terminalEnter configuration commands, one per line. End with CNTL/Z.设置主机名:SwitchA(config)#hostname switchA在全局模式下设置密码:switchA(config)#enable secret 123456 /*设置特权使能密码SwitchA(config)#line vty 0 4 /*进入虚拟终端SwitchA(config-line)#password 12345 /*设置telnet登录密码SwitchA(config-line)#login /*设置vty登录用户需要检查口令SwitchA(config-line)#exec-timeout 10 /*设置telnet登录超时间为10分钟,超时断开SwitchA(config-line)#exitswitchA(config)#int vlan 1switchA(config-if)#ip address 192.168.1.1 255.255.255.0 /*设置交换机管理用IPswitchA(config-if)#no shutdownSwitchA(config-if)#exit 图1 交换机基本配置3.配置PC:Ip:192.168.1.2 子网掩码:255.255.255.0 图2 PC机Ip设置4.验证网络是否连通C:telnet 192.168.1.1 图3 测试网络是否连通5.在Pc机上验证telnet 登录密码及加密使能口令: 输入Telnet登录密码:12345, 连到交换机上,出现Switch提示。输入en,提示输入密码Password:输入特权模式下的加密时能密码口令:123456,进入特权模式。 图4 远程登录密码及口令switchA#show running-configSystem software version : 1.61(2) Build Aug 31 2005 ReleaseBuilding configuration.Current configuration : 453 bytes!version 1.0!enable services web-serverhostname switchAvlan 1!vlan 2!enable secret level 15 5 $2,1u_;C3&-8U0H!interface fastEthernet 0/1 speed 100 duplex full!interface vlan 1 no shutdown ip address 192.168.1.1 255.255.255.0!interface vlan 2!ip default-gateway 192.168.1.254snmp-server community public roline vtyexec-timeout 1000!line console 0exec-timeout 30!endswitchA#switchA#show interface vlan 1Interface : Vlan 1Description :AdminStatus : upOperStatus : downHardware : -Mtu : 1500LastChange : 0d:0h:0m:0sARP Timeout : 3600 secPhysAddress : 00d0.f8db.b176ManagementStatus:EnabledPrimary Internet address: 192.168.1.1/24Broadcast address : 255.255.255.255switchA#show interface fa 0/1Interface : FastEthernet100BaseTX 0/1Description :AdminStatus : upOperStatus : downHardware : 10/100BaseTXMtu : 1500LastChange : 0d:0h:0m:0sAdminDuplex : FullOperDuplex : UnknownAdminSpeed : 100OperSpeed : UnknownFlowControlAdminStatus : OffFlowControlOperStatus : OffPriority : 0Broadcast blocked :DISABLEUnknown multicast blocked :DISABLEUnknown unicast blocked :DISABLEswitchA#SwitchA#show mac-address-table Mac Address Table-Vlan Mac Address Type Ports- - - - 1 0000.0ca8.2d8a DYNAMIC Fa0/1switchA#switchA#show versionSystem description : Red-Giant Gigabit Intelligent Switch(S2126G) By Ruijie NetworkSystem uptime : 0d:3h:44m:25sSystem hardware version : 3.3System software version : 1.61(2) Build Aug 31 2005 ReleaseSystem BOOT version : RG-S2126G-BOOT 03-02-02System CTRL version : RG-S2126G-CTRL 03-08-02Running Switching Image : Layer22)锐捷设备实现实验步骤:1.开始/程序/附件/通讯/超级终端/连接时使用:TCP/IP/主机地址:172.16.5.1/d6/password:star2.开始/运行/telnet 172.16.5.1/enable/password:starPassword: starD63.命令: SwitchAenablePassword:SwitchA#config terminalEnter configuration commands, one per line. End with CNTL/Z.SwitchA(config)#hostname switchA2005-02-20 16:59:05 5-CONFIG:Configured from outbandswitchA(config)#enable secret 5 s12005-02-20 16:59:24 5-CONFIG:Configured from outband% ERROR: The secret you entered is not a valid encrypted secret.To enter an UNENCRYPTED secret, do not specify type 5 encryption.When you properly enter an UNENCRYPTED secret, it will be encrypted.switchA(config)#SwitchA(config)#line vty2005-02-20 16:55:29 5-CONFIG:Configured from outbandSwitchA(config-line)#exec-timeout 10002005-02-20 16:55:47 5-CONFIG:Configured from outbandSwitchA(config-line)#exit2005-02-20 16:55:55 5-CONFIG:Configured from outbandSwitchA(config)#switchA#config terminalEnter configuration commands, one per line. End with CNTL/Z.switchA(config)#no ip domain-lookup2005-02-20 17:02:54 5-CONFIG:Configured from outbandswitchA(config)#int fa 0/12005-02-20 17:03:47 5-CONFIG:Configured from outbandswitchA(config-if)#speed 1002005-02-20 17:04:00 5-CONFIG:Configured from outbandswitchA(config-if)#duplex full2005-02-20 17:04:09 5-CONFIG:Configured from outbandswitchA(config-if)#switchA(config)#int vlan 12005-02-20 17:18:16 5-CONFIG:Configured from outbandswitchA(config-if)#ip address 192.168.1.1 255.255.255.02005-02-20 17:18:42 5-CONFIG:Configured from outbandswitchA(config-if)#switchA(config)#ip default-gateway 192.168.1.2542005-02-20 17:21:44 5-CONFIG:Configured from outbandswitchA(config)#switchA#show running-configSystem software version : 1.61(2) Build Aug 31 2005 ReleaseBuilding configuration.Current configuration : 453 bytes!version 1.0!enable services web-serverhostname switchAvlan 1!vlan 2!enable secret level 15 5 $2,1u_;C3&-8U0H!interface fastEthernet 0/1 speed 100 duplex full!interface vlan 1 no shutdown ip address 192.168.1.1 255.255.255.0!interface vlan 2!ip default-gateway 192.168.1.254snmp-server community public roline vtyexec-timeout 1000!line console 0exec-timeout 30!endswitchA#switchA#show interface vlan% Incomplete command.switchA#show interface vlan 1Interface : Vlan 1Description :AdminStatus : upOperStatus : downHardware : -Mtu : 1500LastChange : 0d:0h:0m:0sARP Timeout : 3600 secPhysAddress : 00d0.f8db.b176ManagementStatus:EnabledPrimary Internet address: 192.168.1.1/24Broadcast address : 255.255.255.255switchA#switchA#show interface fa 0/1Interface : FastEthernet100BaseTX 0/1Description :AdminStatus : upOperStatus : downHardware : 10/100BaseTXMtu : 1500LastChange : 0d:0h:0m:0sAdminDuplex : FullOperDuplex : UnknownAdminSpeed : 100OperSpeed : UnknownFlowControlAdminStatus : OffFlowControlOperStatus : OffPriority : 0Broadcast blocked :DI

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论