ImageVerifierCode 换一换
格式:DOCX , 页数:63 ,大小:40.80KB ,
资源ID:8341004      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8341004.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(思科基本配置命令详解.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

思科基本配置命令详解.docx

1、思科基本配置命令详解思科交换机基本配置实例讲解1、基本概念介绍 IOS: 互联网操作系统,也就是交换机和路由器中用的操作系统 VLAN: 虚拟lan VTP: VLAN TRUNK PROTOCOL DHCP: 动态主机配置协议 ACL: 访问控制列表 三层交换机:具有三层路由转发能力的交换机本教程中“#”后的蓝色文字为注释内容。2、密码、登陆等基本配置本节介绍的内容为cisco路由器或者交换机的基本配置,在目前版本的cisco交换机或路由器上的这些命令是通用的。本教程用的是cisco的模拟器做的介绍,一些具体的端口显示或许与你们实际的设备不符,但这并不影响基本配置命令的执行。Cisco 36

2、40 (R4700) processor (revision 0xFF) with 124928K/6144K bytes of memory.Processor board ID 00000000R4700 CPU at 100MHz, Implementation 33, Rev 1.22 Ethernet interfaces8 Serial interfacesDRAM configuration is 64 bits wide with parity enabled.125K bytes of NVRAM.8192K bytes of processor board System f

3、lash (Read/Write) - System Configuration Dialog -Would you like to enter the initial configuration dialog? yes/no: n # 此处我们选择no,不进入他的初始化配置向导Press RETURN to get started! # 选择no以后,提示你按回车键开始,此处我们需要按回车键*Mar 1 00:43:56.591: %IP-5-WEBINST_KILL: Terminating DNS process*Mar 1 00:43:58.379: %SYS-5-RESTART: S

4、ystem restarted -Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.3(14)T7, RELEASE SOFTWARE (fc2)Technical Support: Copyright (c) 1986-2006 by Cisco Systems, Inc.Compiled Wed 22-Mar-06 21:46 by pwade*Mar 1 00:43:58.411: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold

5、startRouter # 等显示稳定后,出现最初的提示符,注意提示符是“”,目前所处的状态称为用户模式。RouterRouterRouteren # 如果在当前状态下没有重复的命令,我们可以用“TAB”键来补齐这条命令,主要目的是为了便于阅读Routerenable # 从用户模式(user mode)进入到特权模式(exec mode),注意提示符的变化,提示符变为“#”Router#conf t Router#configure terminal (说明:#在特权模式下输入configure terminal进入全局配置模式(global configuration mode),在这之下

6、输入的命令叫做全局命令,一旦输入,将对整个router产生即时影响。如下,注意提示符的变化:)Router(config)#exit # 请注意提示符发生了改变,当前的模式据叫做全局配置模式。Router#conf*Mar 1 00:44:26.491: %SYS-5-CONFIG_I: Configured from console by console t # 在输入命令的过程中,IOS会出现一些即时提示。Enter configuration commands, one per line. End with CNTL/Z.Router(config)#exit # 退出当前的全局配置模式

7、的命令是exitRouter#conf t # 重新进入到全局配置模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#*Mar 1 00:44:35.591: %SYS-5-CONFIG_I: Configured from console by consolehos # 这行是路由器(交换机)出现的一些即时提示。Router(config)#hostname test # 这条命令用来更改当前设备的名字(名字中可包含设备的楼层、用途等信息),主要是为了将来便于区分设备。test(config

8、)# # 回车后我们就会发现,但前的设备的名字已经发生了改变,变成了test了。test(config)#enable pass# 这条命令用来配置设备的登陆密码,用tab键补齐后,再下一行显示完整命令。test(config)#enable password cisco # 我们输入这台设备的登陆密码为 ciscotest(config)#end # 我们退回到全局配置模式,校验一下刚才输入的密码test#sh r # 此命令的完整写法是show running-start,此处的sh r用的是省略的写法,因无其他重复的命令所以可以被执行。Building configuration.Cur

9、rent configuration : 1559 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname test # 注意此处显示的是我们配置的设备的名字!boot-start-markerboot-end-marker!enable password cisco # 此处显示的是刚才我们配置的enable密码,注意此时是用明文显示的,有点不安全。!no aaa new-model!r

10、esource policy!memory-size iomem 5ip subnet-zero!# 到这一行其实并未全部显示完配置的内容,我们可以按键盘上的任意键来终止继续显示。在显示的过程中通过按回车键可以逐行显示,按空格键可以一页一页的显示。这些操作可在实际的设备中体会。test#conf t # 重新进入到全局配置模式test(config)#service passtest(config)#service password-encryption # 利用这条命令给密码加密显示。test(config)#endtest#sh r # 退出到全局配置模式后,验证刚才的配置。Buildin

11、g configuration.Current configuration : 1565 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecservice password-encryption!hostname test!boot-start-markerboot-end-marker!enable password 7 070C285F4D06 # 注意此处刚才明文显示的密码已经变成加密显示了,这样从一定程度上保证了密码的安全。!no aaa new-mod

12、el!resource policy!memory-size iomem 5ip subnet-zero!# 验证完毕后按任何一个键中断显示,下面的内容说明终端登陆密码的配置。test#conf tEnter configuration commands, one per line. End with CNTL/Z.test(config)#no service password-encryption# 可利用这条命令(前面加no)来去掉密码加密功能,cisco的所有命令都可以通过这种方式来禁止。test(config)#line contest(config)#line console 0

13、# 利用这条命令来配置用超级终端登陆时的一些参数。test(config-line)#passtest(config-line)#password cisco # 添加密码,此处我们配置的密码为ciscotest(config-line)#loggitest(config-line)#logging ? # 在任何情况下如果你忘记了命令的相关参数可以用?来获得提示和帮助synchronous Synchronized message outputtest(config-line)#logging sytest(config-line)#logging synchronous # 在我们进行配置

14、时,IOS会产生一些即时的提示信息,而这些信息会冲乱我们的光标显示,用这条命令可以将光标规矩在下一行,即使出现了一些即时的提示。test(config-line)#exit # 退出当前console口的参数配置test(config)#line vt? # telnet登陆时相关参数的配置,此处用了?来寻求提示。 First Line number aux Auxiliary line console Primary terminal line tty Terminal controller vty Virtual terminal x/y Slot/Port for Modemstest(

15、config)#line vty 0 4 # 我们配置虚拟终端的0到4,也就是同时允许5个用户可以telnet到这台设备上来。test(config-line)#passtest(config-line)#password cisco # 我们配置telnet时的密码为cisco,如果此处我们不设置密码,那么用telnet来登陆的时候并不会以空密码登陆,而是会给你提示说:相关密码没有设置,禁止登陆。所以我们为了能远程telnet到这台设备,此处的密码一定要设置好。test(config-line)#login # 这条命令是允许通过telnet来登录test(config-line)#exit

16、 # 退出当前配置模式到全局配置模式。test(config)#test(config)#test#conf s # 我们在做配置的时候,会出现输入错误的情况,在这种情况下ios会以为你输入的是一个域名Translating s.domain server (255.255.255.255) # 那么ios会做长时间的搜寻,试图找到这个域名对应的ip地址.Translating s.domain server (255.255.255.255) # 这段时间是比较长的,那么我们如何禁用它的这个功能呢?% Unknown command or computer name, or unable t

17、o find computer addresstest#conf tEnter configuration commands, one per line. End with CNTL/Z.test(config)#no ip domain-lookup # 在全局配置模式下,将ip域名的搜寻功能关闭就可以了。test(config)#endtest#conf *Mar 1 01:40:46.895: %SYS-5-CONFIG_I: Configured from console by consoletest#conf x # 将上述功能关闭以后,再有输入错误的情况会直接提示你输入错误。 %

18、Invalid input detected at marker.test#test(config)#ip domain-name 202.102.128.68 # 如果有必要将设备配置上DNS功能的话就用这条命令。# 基本配置完毕后我们验证一下所有的配置#test#sh runBuilding configuration.Current configuration : 1693 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecservice password

19、-encryption # 密码加密显示功能打开!hostname test!boot-start-markerboot-end-marker!enable password 7 070C285F4D06 # 密码被加密显示了!no aaa new-model!resource policy!memory-size iomem 5ip subnet-zero!ip cef no ip domain lookup # 关闭了域名查找功能no ip dhcp use vrf connected!no ip ips deny-action ips-interface!no ftp-server wr

20、ite-enable! no crypto isakmp ccm!(略)ip http serverno ip http secure-serverip classless! control-plane!line con 0 exec-timeout 0 0 password 7 094F471A1A0A # 用超级终端登陆的密码,也同样被加密显示 logging synchronousline aux 0line vty 0 4 password 7 00071A150754 # 用telnet登陆的密码,也同样被加密显示 login!endtest# 3、cisco设备端口配置详解User

21、 Access Verification# 从dos提示符下运行telnet ip地址,就会连接到相应的交换机或者路由器Password: # 输入配置号的telnet密码,也就是上节提到的vtp中的密码testen # 进入特权模式Password: # 输入特权模式密码,也就是上节提到的enable密码。注意这些密码在输入的时候屏幕是不显示的。test#test#test#sh ip int brief # 查看当前所有端口状态,包括vlan和实际的物理接口状态Interface IP-Address OK? Method Status Protocol # 这行列示的各种状态的名称Fas

22、tEthernet1 unassigned YES NVRAM down down Vlan1 192.168.113.254 YES NVRAM up up# vlan1的状态是active Vlan2 172.16.0.2 YES NVRAM up up Vlan10 192.168.101.254 YES NVRAM up up Vlan20 192.168.102.254 YES NVRAM up up Vlan30 192.168.103.254 YES NVRAM up up Vlan40 192.168.104.254 YES NVRAM up up Vlan50 192.168

23、.105.254 YES NVRAM up up Vlan60 192.168.106.254 YES NVRAM up up Vlan70 192.168.107.254 YES NVRAM up up Vlan80 192.168.108.254 YES NVRAM up up Vlan100 192.168.110.254 YES NVRAM up up Vlan110 192.168.111.254 YES NVRAM up up Vlan120 192.168.112.254 YES NVRAM up up Vlan150 192.168.100.254 YES NVRAM up u

24、p Vlan160 192.168.115.254 YES NVRAM up up GigabitEthernet1/1 unassigned YES unset up up # 物理接口gi1/1也是active状态 GigabitEthernet1/2 unassigned YES unset down down GigabitEthernet1/3 unassigned YES unset down down GigabitEthernet1/4 unassigned YES unset down down GigabitEthernet1/5 unassigned YES unset

25、down down GigabitEthernet1/6 unassigned YES unset down down GigabitEthernet1/7 unassigned YES unset down down GigabitEthernet1/8 unassigned YES unset down down GigabitEthernet1/9 unassigned YES unset down down # 说明:通过上述命令即可以查看当前设备所有状态的情况也可以查看端口的表示方式。在此例中我们登陆的是一台cisco4503的三层交换机;其中GigabitEthernet1/1,表

26、示的是这台交换机上的第1块业务板的第1个端口,并且此端口是个千兆端口;而GigabitEthernet3/19表示的是这台交换机上的第3块业务版的第19个端口,并且此端口也是一个千兆端口,其他的端口以此类推。千兆端口的名称为:GigabitEthernet,百兆端口的名称为:FastEthernet。test# conf t # 进入到全局配置模式。要想对端口、vlan、路由等操作一定要到全局配置模式中来。Enter configuration commands, one per line. End with CNTL/Z.test(config)#intertest(config)#inte

27、rface gi1/2 # 通过此命令可进去端口配置模式,此处我们进入的是GigabitEthernet1/2口,gi1/2为简写。test(config-if)#? #回车后进入到端口配置模式,注意提示符的变化,输入?寻求在这个模式着那个的帮助。Interface configuration commands: access-group Access group configuration arp Set arp type (arpa, probe, snap) or timeout auto Configure Automation backup Modify backup paramet

28、ers bandwidth Set bandwidth informational parameter bgp-policy Apply policy propogated by bgp community string carrier-delay Specify delay for interface transitions cdp CDP interface subcommands channel-group Etherchannel/port bundling configuration channel-protocol Select the channel protocol (LACP

29、, PAgP) dampening Enable event dampening default Set a command to its defaults delay Specify interface throughput delay description Interface specific description dot1x Interface Config Commands for 802.1x duplex Configure duplex operation. exit Exit from interface configuration mode flow-sampler At

30、tach flow sampler to the interface flowcontrol Configure flow operation. help Description of the interactive help system ip Interface Internet Protocol config commands isis IS-IS commands iso-igrp ISO-IGRP interface subcommands keepalive Enable keepalive l2protocol-tunnel Tunnel Layer2 protocols lacp LACP interface subcommands load-interval Specify interval for load calculation for an interface logging Configure logging for interface loopback Configure internal loopback on an interface mac MAC interface commands

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1