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

加入VIP,免费下载
 

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

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

下载须知

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

版权提示 | 免责声明

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

华三路由器交换机配置命令精选文档.docx

1、华三路由器交换机配置命令精选文档路由器:1、 进入SETUP模式Router#setup2、 时间设置routerclock set hh:mm:ss date moth year3、 routershow historyRouterterminal history size lines4、 routershow version5、 routershow runningconfig6、 routershow starup-config7、 router(config)hostname name主机命名8、 router(config)#banner motd # message #开机时的固定

2、显示信息9、 router(config)#enable password password 特权模式明文密码10、 router(config)no enable password11、 router(config)enable secret password 特权模式加密密码12、 router(config)no enable secret13、 router(config)#service passwordencryption特权模式把明文密码加密密码,但没enable secret安全可以反解14、 router(config)line console控制台密码15、 router(

3、config-line)login16、 router(configline)#password password17、 router(config-line)#exec-timeout mm ss 禁止控制台会话自动退出18、 router(configline)logging synchronous重显被打乱的控制台输入router(config)no ip domainlookup 禁止域名解析19、 router(config)#line vty 0 4虚拟终端密码20、 router(config-line)#login21、 router(configline)password p

4、assword22、 router(config)interface type number(slot/port)端口设置23、 router(config-if)#ip address ip summast24、 router(configif)clock rate 64000(时钟频率单位为bps,只在DCE端设置)25、 router(config-if)bandwith 64(带宽设置,单位为KB)26、 router(configif)no shutdown(shutdown)27、 router(config-if )#media-type type(10base) 为以太网端口选

5、择适当的介质类型28、 router(config-if )#ctrl+z保存退出到特权模式29、 router#30、 router用户模式enable进入router特权模式config terminal进入router(config)全局配置模式31、Interface Router(configif)#端口设置Subinterface Router(configsubif)# 子端口设置Controller Router(config-controller)# 控制口设置Line Router(config-line) 虚拟口设置Router Router(config-router)

6、 路由设置IPX router Router(config-ipx-router)#IPX路由设置32、 router#show interface33、 routershow interface Ethernet 034、 router#show interface serial 035、 routershow runningconfig36、 routershow starupconfig37、 router#show flash38、 router#show controller39、 routershow controller interface type40、 router#show

7、 running-configrouter#copy runningconfig starupconfigroutercopy running-config tftprouter#copy starup-config tftprouter#copy flash tftprouter#copy tftp starconfigrouter#copy tftp flash-端口状态Serial1 is up, line protocol is up正常工作Serial1 is up, line protocol is down连接问题Serial1 is down, line protocol is

8、 down端口问题Serial1 is administratively down, line protocol is down人为关闭配置寄存器的值1、 关闭路由器的电源重新启动按住ctrl+break键入进2、 3、 o/r 02142(跳过nvarm启动恢复密码)4、 I5、 当系统提示是否进入setup模式时,按N6、 router7、 routerenable8、 router9、进入修改后(包括密码、寄存器的值:02100为rom monitor启动、02101为setup模式启动、02102为10、 routercopy running-config starupconfig11

9、、 router#reload12、 也可以在routersetup进入setup模式静态路由协议设置router(config)ip route network submask(要到达的网络号掩码)ip address(下一跳或出口ip地址)router(config)ip route 0。0。0。0 s0(出口端口或下一跳IP地址)rip设置router(config)#router riprouter(config-router)#network networknumberrouter#show ip protocol查看RIP信息routershow ip route 查看路由表rou

10、ter#debug ip rip查看RIP更新信息router(configrouter)passive-interface e0(阻止发出作息)router(configrouter)ip rip receive version 1 2接收1、2RIP版本信息igrp设置router(config)#router igrp as numberrouter(config-router)#network network numberrouter#show ip route查看路由表routerdebug ip igrp events查看IGRP路由更新大概信息routerdebug ip igr

11、p transaction查看IGRP路由更新详细信息Router(configrouter)variance multiplier 控制 IGRP load balancingRouter(config-router)#traffic-share balanced min控制load-balanced traffic 的分布eigrp设置router(config)router eigrp as numberrouter(config-router)network network numberrouter(config)no auto-summry 关闭自动汇总router(config)

12、auto-summry 打开自动汇总(默认是打开的)router#show ip route eigrp 显示当前的路由表里的EIGRP条目routershow ip protocol 显示活动的路由协议进程的参数和当前的状态router#show ip eigrp neighbors 显示被EIGRP发现的邻居router#show ip eigrp traffic 显示发出和收到的IP EIGRP 包的数量router#show ip eigrp topology 显示IP EIGRP的拓扑表Router#debug ip eigrpospf设置1. Router(config)route

13、r ospf processidRouter(configrouter)network address(可以是网络号也可以是Ip地址 mask(通配掩码 )area areaidRouter(configif)# ip ospf priority numbe 配置OSPF的优先级Routershow ip protocols 验证OSPF的配置Router#show ip route 显示路由器学到的所有路由Router#show ip ospf interface type number 显示 area-ID 和邻接信息Router#show ip ospf neighbor 基于每接口显示

14、OSPF邻居信息Routerdebug ip ospf eventsRouterdebug ip ospf packet2. Router(config) interface loopback number(lookback回路配置)Router(configif)# ip address ip-address subnet-maskRouter(config-if) ip ospf cost costnumbe 修改OSPF 的Cost数值Router(configif) ip ospf authentication-key key 配置明文口令Router(configif)# ip os

15、pf messge-digest-key keyid md5 key 配置MD5口令(keyid和key必须配对一致,两邻居才可以通信)Router(config-route) area area-id authentication messagedigestmessagedigest为可选 项,使用后路由器只传送口令消息的摘要(或散列) 配置OSPF区域的验证:3. Router(configif) ip ospf hellointerval seconds 配置hello间隔:Router(config-if)# ip ospf dead-interval seconds配置down机判断

16、间隔-访问列表1.标准访问列表(standard access lists):只使用源IP地址来做过滤决定Router(config)#access-list 10 deny 172.16。40。0 0。0。0。255Router(config)access-list 10 permit anyRouter(config)#int e1Router(config-if)ip accessgroup 10 out使用IP标准ACL来控制VTY线路的访问。Router(config)access-list 50 permit 172。16.10.3Router(config)line vty 0

17、4Router(config-line)#access-class 50 in删除IP标准ACLRouter(configline)#no ip access-class 50 inRouter(config)no accesslist 502。扩展访问列表(extended access lists):它比较源IP地址和目标IP地址,层3的协议字段,层4端口号 来做过滤决定Router(config)accesslist 110 deny tcp any host 172.16.30。5 eq 21Router(config)access-list 110 deny tcp any host

18、 172.16。30.5 eq 23Router(config)#access-list 110 permit ip any anyRouter(config)#int e1Router(configif)#ip access-group 110 out3。虚拟通道访问router(config)#access-list 12 permit 192。89。55.0 0。0。0。255router(config)#line vty 0 4outer(config-line)#accessclass 12 in3。show ip interface:只显示IP访问列表信息4。show ip int

19、erface:显示所有接口的信息和配置的ACL信息5。show ip interface 接口号:显示具体某个接口的信息和配置的ACL信息6。show runningconfig:显示DRAM信息和ACL信息,以及接口对ACL的应用信息。交换机配置交换机上设置登陆口令Switch(config)# enable password level level passwordSwitch(config)# no enable password level level passwordhostname1900/2900(config)hostname hostnameIP Address1900(co

20、nfig)#ip address ip address mask1900(config)#ip address 10。5.5。11 255。255。255。02950(config#interface vlan 12950(configif)ip address ip_address mask2950(config)#interface vlan 12950(configif)ip address 10。5.5。11 255。255.255。0default gateway1900/2950(config)#ip defaultgateway ip address1900/2950(confi

21、g)ip default-gateway 172.20.137.1查看交换机的IP地址1900show ipIP address: 10.5。5.11Subnet mask: 255。255.255.0Default gateway: 10。5.5.3Management VLAN: 12950show interface vlan 1Vlan1 is up, line protocol is upHardware is Cat5k Virtual Ethernet, address is 0010。f6a9。9800 (bia 0010。f6a9.9800)Internet address

22、is 172。16.80.79/24Broadcast address is 255.255.255.255设置双工选项1900(config)#interface e0/11900(config-if)duplex auto | full |fullflowcontrol | half2950(config)#interface fe0/12950(config-if)duplex auto full | half设置端口速度:switch(config-if) speed 10|100auto查勘双工选项Switchshow interfaces fastethernet0/3查看MAC地

23、址表1900/2950#show mac-addresstable配置永久MAC地址1900(config)#macaddresstable permanent mac-address type module/port1900(config)#mac-addresstable permanent 2222。2222.2222 ethernet 0/31900show macaddresstable2950(config)#macaddress-table static mac_addr vlan vlan_id interface int1 int2 。. int15-配置受限静态MAC地址1

24、900(config)macaddresstable restricted static mac-address type module/port src-iflist1900(config)macaddress-table restricted static 1111.1111.1111 e0/4 e0/11900#show macaddresstable2950(config)mac-addresstable secure mac-addr interface vlan vlanid2950(config)#macaddress-table secure 0003。3333.3333 fa

25、 0/1 vlan 12950show macaddress-table配置端口安全性1900(configif)#port secure maxmac-count count1900(config)#interface e0/41900(configif)port secure1900(configif)#port secure maxmac-count 11900(config)#address-violation suspend disable | ignore1900 show macaddresstable security2950(configif)port security ma

26、xmac-count count2950(config)#interface fa0/12950(configif)port security2950(config-if)port security maxmaccount 102950(configif)port security action shutdown | trap2950show mac-address-table secure2950show port-security管理配置文件1900#copy nvram tftp:/host/dst_file1900copy tftp:/host/src_file nvram1950#c

27、opy nvram tftp:/10.1.1.1/wgswd.cfg2950#copy startup-config tftp:/host/dst_file清除 NVRAM1900delete nvram2950#erase startupconfigvlan配置1900 VLAN建立1900下,使用vlan vlan# name name vlan#命令, 如下:en#config t(config)hostname 19001900(config)#vlan 2 name sales1900(config)vlan 3 name marketing1900(config)#vlan 4 n

28、ame mis1900(config)exit端口分配1900(config)int e0/21900(configif)#vlan-membership static 21900(config)int e0/41900(config-if)#vlan-membership static 31900(config)#int e0/51900(configif)#vlan-membership static 41900(config-if)exit1900(config)#exitVLAN验证1900#sh vlan2900 VLAN建立在2950下创建VLAN,在特权模式下使用vlan dat

29、abase命令2950vlan database2950(vlan)#vlan 2 name MarketingVLAN 2 modified:Name: Marketing2950(vlan)vlan 3 name AccountingVLAN 3 added:Name: Accounting2950(vlan)#applyAPPLY complete2950(vlan)Ctrl+C2950#端口分配2950下的端口配置,使用switchport access vlan vlan#命令,2950(configif)int f0/22950(config-if)#switchport access vlan 22950(configif)#int f0/32950(configif)switchport access vlan 32950(configif)int f0/42950(config-if)#switchport access vlan 42950(configif)#exit2950(config)#exit验证配置信息,如下:2950sh vlan或2950#sh vlan brieftrunk配置1900trunk配置1900(config)#int f0/

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

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