资源预览内容
第1页 / 共56页
第2页 / 共56页
第3页 / 共56页
第4页 / 共56页
第5页 / 共56页
第6页 / 共56页
第7页 / 共56页
第8页 / 共56页
第9页 / 共56页
第10页 / 共56页
亲,该文档总共56页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
内容回顾v数据链路层 数据链路层的功能是什么? 以太网与CSMA/CD 以太网地址 以太网帧格式 v交换机 Cisco Catalyst 2950系列交换机的产品有哪些? 如何访问交换机? 交换机启动信息中主要包含什么信息? Cisco交换机的配置模式有哪些?有什么区别?Chapter1/31虚拟局域网(VLAN)Chapter2/31本章目标v基于安全和管理的需要,能够正确的为交换机配 置各种密码,和管理IP、网关等v能够根据实际的需求,在Cisco交换机上正确划 分基于端口的静态VLAN 理解VLAN的含义 了解划分VLAN的作用 理解VLAN的工作原理Chapter3/31配置交换机Chapter4/31配置主机名vSwitchen vSwitch#conf t vSwitch(config)# hostname sw1 vsw1(config)#Chapter5/31查看交换机的配置vsw1(config)# show running-configversion 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname sw1当前运行的配置文件,存 储于RAM中,配置后立 即生效Chapter6/31配置enable明文口令v sw1(config)#enable password cisco v sw1(config)#exit v sw1#show running-configversion 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Benet-sw1 ! enable password cisco ! ip subnet-zero !密码以明文保存Chapter7/31检验enable口令的作用vsw1# exitPress RETURN to get started.vsw1enablePassword:cisco vsw1#Chapter8/31配置enable加密口令v sw1(config)# enable secret ciscolabv sw1#show running-config version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Benet-sw1 ! enable secret 5 $1$e1k3$tmDh/6EG9c5enGXDjjj7j/ enable password cisco !口令加密保存Chapter9/31检验enable加密口令的作用vsw1# exitPress RETURN to get started.vsw1enablePassword:ciscolab vsw1#同时配置使能口令和加密 使能口令时,加密使能口 令生效Chapter10/31配置Console口令v sw1(config)#line console 0 v sw1(config-line)#password 123 v sw1(config-line)#login v sw1#show run interface Vlan1no ip addressno ip route-cacheshutdown ! ip http server ! line con 0password 123loginChapter11/31登录口令的输入Switch con0 is now availablePress RETURN to get started.User Access VerificationPassword:123 Switchen Password:ciscolab Switch#输入Console口令输入加密的enable口令Chapter12/31远程访问设备Chapter13/313.2.1 使用Telnet连接到远程设备远程连接SwitchBRouterARouterBSwitchA10.3.3.210.3.3.110.1.1.110.1.1.2 10.2.2.110.2.2.2S0S1RouterA#telnet 10.2.2.2 Trying 10.2.2.2 . Open - Catalyst 1900 Management Console Copyright (c) Cisco Systems, Inc. 1993-1998 All rights reserved. Enterprise Edition Software Ethernet Address: 00-90-86-73-33-40 PCA Number: 73-2239-06 PCA Serial Number: FAA02359H8K Model Number: WS-C1924-EN System Serial Number: FAA0237X0FQ . . SwitchB Chapter14/313.2.2 主机名称到地址的映射 vRouterB(config)#ip host hostname ip addresses vRouterB(config)#ip name-server ip address Chapter15/313.2.3 挂起Telnet会话SwitchBRouterARouterBSwitchA10.3.3.210.3.3.110.1.1.110.1.1.2 10.2.2.110.2.2.2S0S1RouterB#x RouterA#sh session Conn Host Address Byte Idle Conn Name1 10.1.1.2 10.1.1.2 0 1 10.1.1.2 RouterA#resume 1 RouterB#Chapter16/313.2.4 查看Telnet连接SwitchBRouterARouterBSwitchA10.3.3.210.3.3.110.1.1.110.1.1.2 10.2.2.110.2.2.2S0S1RouterA#sh session Conn Host Address Byte Idle Conn Name1 10.1.1.2 10.1.1.2 0 1 10.1.1.2 * 2 10.3.3.2 10.3.3.2 0 0 10.3.3.2RouterA#sh userLine User Host(s) Idle Location * 0 con 0 10.1.1.2 3 10.3.3.2 2 11 vty 0 idle 1 10.1.1.2Chapter17/313.2.5 关闭Telnet会话RouterA#disconnect Closing connection to 10.3.3.2 confirmRouterA#clear line 11 confirmOK关闭一个被远程设备打开的会 话(在被连接端)关闭一个远程连接(在始发端)SwitchBRouterARouterBSwitchA10.3.3.210.3.3.110.1.1.110.1.1.2 10.2.2.110.2.2.2S0S1Chapter18/31配置管理用IP地址与网关vConsole不是唯一的管理手段,有时需要通过 网络对设备进行远程管理Chapter19/31配置管理用IP地址与网关21v sw1(config)# interface vlan 1 v sw1(config-if)# ip address 192.168.1.1 255.255.255.0 v sw1(config-if)# no shutdown v sw1# show running-config ! interface FastEthernet0/24no ip address ! interface Vlan1ip address 192.168.1.1 255.255.255.0no ip route-cache ! ip http server交换机的管理IP地址是 配置给VLAN 1的激活交换机的VLAN 1Chapter20/31配置管理用IP地址与网关22v sw1(config)#ip default-gateway 192.168.1.100Chapter21/31查看MAC地址表vsw1#show mac-address-tableMac Address Table -Vlan Mac Address Type Ports - - - -All 000d.28be.b640 STATIC CPUAll 0100.0ccc.cccc STATIC CPUAll 0100.0ccc.cccd STATIC CPUAll 0100.0cdd.dddd STATIC CPU1 0013.8044.ff40 DYNAMIC Fa0/21 0013.8044.ff41 DYNAMIC Fa0/8 Total Mac Addresses for this criterion: 6Chapter22/31使用CDP协议31vsw1#show cdp ?entry Information for specific neighbor entryinterface CDP interface status and configurationneighbors CDP neighbor entriestraffic CDP statistics| Output modifiers用来查看邻居Cisco设备 的信息Chapter23/31使用CDP协议32vsw1#show cdp neighborCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS - Switch, H - Host, I - IGMP, r - Repeater, P - PhoneDevice ID L
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号