路由器配置常用命令汇总_第1页
路由器配置常用命令汇总_第2页
路由器配置常用命令汇总_第3页
路由器配置常用命令汇总_第4页
路由器配置常用命令汇总_第5页
已阅读5页,还剩35页未读 继续免费阅读

下载本文档

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

文档简介

1、Access-enable允许路由器在动态访问列表中创建临时访问列表入口Access-group把访问控制列表(ACL)应用到接口上Access-list定义一个标准的IP ACLAccess-template在连接的路由器上手动替换临时访问列表入口Appn向APPN子系统发送命令Atmsig 执行ATM信令命令B 手动引导操作系统Bandwidth 设置接口的带宽Banner motd 指定日期信息标语Bfe 设置突发事件手册模式Boot system指定路由器启动时加载的系统映像Calendar 设置硬件日历Cd 更改路径Cdp enable 允许接口运行CDP协议Clear复位功能Cle

2、ar counters清除接口计数器Clear interface重新启动接口上的件逻辑Clockrate设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率Cmt开启/关闭FDDI连接管理功能Config-register修改配置寄存器设置Configure允许进入存在的配置模式,在中心站点上维护并保存配置信息Configure memory从NVRAM加载配置信息Configure terminal从终端进行手动配置Copy复制配置或映像数据Copy flash tftp 备份系统映像文件到TFTP服务器Copy running-config startup-config 将

3、 RAM 中的当前配置存储到 NVRAMCopy running-config tftp 将RAM中的当前配置存储到网络TFTP服务器上Copy tftp flash从TFTP服务器上下载新映像到FlashCopy tftp running-config 从TFTP服务器上下载配置文件Debug使用调试功能Debug dialer显示接口在拨什么号及诸如此类的信息Debug ip rip 显示RIP路由选择更新数据Debug ipx routing activity显示关于路由选择协议(RIP)更新数据包的信息Debug ipx sap显示关于SAP (业务通告协议)更新数据包信息Debug

4、isdn q921显示在路由器D通道ISDN接口上发生的数据链路层(第2层)的访问过程Debug ppp 显示在实施PPP中发生的业务和交换信息Delete 删除文件Deny为一个已命名的IP ACL设置条件Dialer idle-timeout 规定线路断开前的空闲时间的长度Dialer map 设置一个串行接口来呼叫一个或多个地点Dialer wait-for-carrier-time规定花多长时间等待一个载体Dialer-group通过对属于一个特定拨号组的接口进行配置来访问控制Dialer-list protocol定义一个数字数据接受器(DDR)拨号表以通过协议或ACL与协议的组合来

5、控制控制拨号Dir显示给定设备上的文件Disable关闭特许模式Enable打开特许模式Enable打开特许模式Enable password 确定一个密码以防止对路由器非授权的访问Enable password设置本地口令控制不同特权级别的访问Enable secret为enable password命令定义额外一层安全性(强制安全,密码非明文显示)Encapsulation frame-relay启动帧中继封装Encapsulation novell-ether规定在网络段上使用的Novell独一无二的格式Encapsulation PPP 把PPP设置为由串口或ISDN接口使用的封装方法

6、Encapsulation sap 规定在网络段上使用的以太网802.2格式Cisco的密码是sapEnd 退出配置模式Erase删除闪存或配置缓存Erase startup-config 删除 NVRAM 中的内容Exec-timeout 配置EXEC命令解释器在检测到用户输入前所等待的时间Exit 退出所有配置模式或者关闭一个激活的终端会话和终止一个EXECExit终止任何配置模式或关闭一个活动的对话和结束EXECformat格式化设备Frame-relay local-dlci为使用帧中继封装的串行线路启动本地管理接口(LMI)Help获得交互式帮助系统History 查看历史记录Hos

7、tname 使用一个主机名来配置路由器,该主机名以提示符或者缺省文件名的方式使用Interface设置接口类型并且输入接口配置模式Interface配置接口类型和进入接口配置模式Interface serial选择接口并且输入接口配置模式Ip access-group 控制对一个接口的访问Ip address设定接口的网络逻辑地址Ip address设置一个接口地址和子网掩码并开始IP处理Ip default-network建立一条缺省路由Ip domain-lookup 允许路由器缺省使用DNSIp host定义静态主机名到IP地址映射Ip name-server指定至多6个进行名字-地址解

8、析的服务器地址Ip route 建立一条静态路由Ip unnumbered在为给一个接口分配一个明确的IP地址情况下,在串口上启动互联网协议(IP)的处理过程Ipx delay设置点计数Ipx ipxwan 在串口上启动IPXWAN协议Ipx maximum-paths当转发数据包时设置Cisco IOS软件使用的等价路径数量Ipx network在一个特定接口上启动互联网数据包交换(IPX)的路由选择并且选择封装的类型(用帧封装)Ipx router规定使用的路由选择协议Ipx routing启动IPX路由选择Ipx sap-interval在较慢的链路上设置较不频繁的SAP (业务广告协议

9、)更新Ipx type-20-input-checks限制对IPX20类数据包广播的传播的接受Isdn spid1在路由器上规定已经由ISDN业务供应商为B1信道分配的业务简介号(SPID)Isdn spid2在路由器上规定已经由ISDN业务供应商为B2信道分配的业务简介号(SPID)Isdntch-type规定了在ISDN接口上的中央办公区的交换机的类型Keeplive为使用帧中继封装的串行线路LMI (本地管理接口)机制Lat 打开LAT连接Line 确定一个特定的线路和开始线路配置Line concole 设置控制台端口线路Line vty为远程控制台访问规定了一个虚拟终端Lock锁住终

10、端控制台Lock锁住终端控制台Login在终端会话登录过程中启动了密码检查Login以某用户身份登录,登录时允许口令验证Logout 退出EXEC模式Mbranch向下跟踪组播地址路由至终端Media-type 定义介质类型Metric holddown 把新的IGRP路由选择信息与正在使用的IGRP路由选择信息隔离一段时间Mrbranch向上解析组播地址路由至枝端Mrinfo从组播路由器上获取邻居和版本信息Mstat对组播地址多次路由跟踪后显示统计数字Mtrace由源向目标跟踪解析组播地址路径Name-connection命名已存在的网络连接Ncia开启/关闭NCIA服务器Network把一

11、个基于NIC的地址分配给一个与它直接相连的路由器把网络与一个IGRP的路由选择的过程联系起来在IPX路由器配置模式下,在网络上启动加强的IGRPNetwork指定一个和路由器直接相连的网络地址段Network-number对一个直接连接的网络进行规定No shutdown 打开一个关闭的接口Pad开启一个X.29 PAD连接Permit为一个已命名的IP ACL设置条件Ping 把ICMP响应请求的数据包发送网络上的另一个节点检查主机的可达性和网络的连通性对 网络的基本连通性进行诊断Ping发送回声请求,诊断基本的网络连通性Ppp开始Ppp开始IETF点到点协议Ppp authenticati

12、on启动Challenge握手鉴权协议(CHAP)或者密码验证协议(PAP)或者将两者都启动,并且对在接口上选择的CHAP和PAP验证的顺序进行规定Ppp chap hostname 当用CHAP进行身份验证时,创建一批好像是同一台主机的拨号路由器Ppp chap password设置一个密码,该密码被发送到对路由器进行身份验证的主机命令对进入路由器的用户名/密码的数量进行了限制Ppp pap sent-username对一个接口启动远程PAP支持,并且在PAP对同等层请求数据包验证过程中使用 sent-username 和 passwordProtocol 对一个IP路由选择协议进行定义,该

13、协议可以是RIP,内部网关路由选择协议(IGRP), 开放最短路径优先(OSPF),还可以是加强的IGRPPwd显示当前设备名Reload关闭并执行冷启动;重启操作系统Rlogin打开一个活动的网络连接Router 由第一项定义的IP路由协议作为路由进程,例如:router rip选择RIP作为路由协议Router igrp 启动一个IGRP的路由选择过程Router rip选择RIP作为路由选择协议Rsh 执行一个远程命令Sdlc发送SDLC测试帧Send在tty线路上发送消息Service password-encryption 对口令进行加密Setup运行Setup命令Show显示运行系

14、统信息Show access-lists 显示当前所有ACL的内容Show buffers显示缓存器统计信息Show cdp entry 显示CDP表中所列相邻设备的信息Show cdp interface 显示打开的CDP接口信息Show cdp neighbors 显示CDP查找进程的结果Show dialer显示为DDR (数字数据接受器)设置的串行接口的一般诊断信息Show dialerShow flash显示闪存的布局和内容信息Show frame-relay lmi显示关于本地管理接口(LMI)的统计信息Show frame-relay map显示关于连接的当前映射入口和信息Sho

15、w frame-relay pvc显示关于帧中继接口的永久虚电路(pvc)的统计信息Show hosts显示主机名和地址的缓存列表Show interfaces显示设置在路由器和访问服务器上所有接口的统计信息Show interfaces显示路由器上配置的所有接口的状态Show interfaces serial 显示关于一个串口的信息Show ip interface列出一个接口的IP信息和状态的小结Show ip interface歹帼接口的状态和全局参数Show ip protocols显示活动路由协议进程的参数和当前状态Show ip route显示路由选择表的当前状态Show ip

16、router显示IP路由表信息Show ipx interface显示Cisco IOS软件设置的IPX接口的状态以及每个接口中的参数Show ipx route显示IPX路由选择表的内容Show ipx servers显示IPX服务器列表Show ipx traffic显示数据包的数量和类型Show isdn active使用的自动化操作控制显示当前呼叫的信息,包括被叫号码、建立连接前所花费的时间、在呼叫期间(AOC)收费单元以及是否在呼叫期间和呼叫结束时提供AOC信息Show isdn ststus显示所有isdn接口的状态、或者一个特定的数字信号链路(DSL)的状态或者一个特定isdn接

17、口的状态Show memory显示路由器内存的大小,包括空闲内存的大小Show processes显示路由器的进程Show protocols显示设置的协议Show protocols显示配置的协议。这条命令显示任何配置了的第3层协议的状态Show running-config 显示RAM中的当前配置信息Show spantree显示关于虚拟局域网(V LAN)的生成树信息Show stacks监控和中断程序对堆栈的使用,并显示系统上一次重启的原因Show startup-config 显示NVRAM中的启动配置文件Show ststus 显示ISDN线路和两个B信道的当前状态Show ver

18、sion显示系统硬件的配置,软件的版本,配置文件的名称和来源及引导映像Shutdown 关闭一个接口Telnet 开启一个telect连接Term ip指定当前会话的网络掩码的格式Term ip netmask-format规定了在show命令输出中网络掩码显示的格式Timers basic 控制着IGRP以多少时间间隔发送更新信息Trace 跟踪IP路由Username password规定了在CHAP和PAP呼叫者身份验证过程中使用的密码Verify检验flash文件Where显示活动连接Which-route OSI路由表查找和显示结果Write 运行的配置信息写入内存,网络或终端Wri

19、te erase 现在由 copy startup-config 命令替换X3 在PAD上设置X.3参数Xremote 进入 XRemote 模式Cisco路由器配置命令大全默认分类2009-10-20 23:54 阅读626 评论0 字号:大大 中中 小小1. switch配置命令(1)模式转换命令用户模式-特权模式,使用命令enable特权模式-全局配置模式,使用命令”config t全局配置模式一接口模式,使用命令”interface+接口类型+接口号”全局配置模式-线控模式,使用命令line+接口类型+接口号”注:用户模式:查看初始化的信息.特权模式:查看所有信息、调试、保存配置信息全

20、局模式:配置所有信息、针对整个路由器或交换机的所有接口接口模式:针对某一个接口的配置线控模式:对路由器进行控制的接口配置(2)配置命令show running config 显示所有的配置show versin显示版本号和寄存器值shut down关闭接口no shutdown 打开接口ip add +ip地址 配置IP地址secondary+IP地址 为接口配置第二个IP地址show interface+接口类型+接口号 查看接口管理性show controllers interface 查看接口 是否有 DCE 电缆show history查看历史记录show terminal查看终端记录

21、大小hostname+主机名配置路由器或交换机的标识config memory修改保存在NVRAM中的启动配置exec timeout 0 0设置控制台会话超时为0service password-encryptin 手工加密所有密码enable password +密码 配置明文密码ena sec +密码 配置密文密码line vty 0 4/15 进入 telnet 接口password +密码 配置telnet密码line aux 0 进入 AUX 接口password +密码 配置密码line con 0 进入 CON 接口password +密码 配置密码bandwidth+数字配置

22、带宽no ip address删除已配置的IP地址show startup config查看NVRAM中的配置信息copy run-config atartup config 保存信息到 NVRAMwrite保存信息到NVRAMerase startup-config清除NVRAM中的配置信息show ip interface brief查看接口的谪要信息banner motd # +信息+ #配置路由器或交换机的描素信息description+信息 配置接口听描素信息vlan database进入VLAN数据库模式vlan +vlan号+名称 创建VLANswitchport access

23、vlan +vlan 号 为 VLAN 为配接口ip add +ip地址 为VLAN配置管理IP地址vtp+service/tracsparent/client 配置 SW 的 VTP 工作模式vtp +domain+域名 配置SW的VTP域名vtp +password +密码 配置SW的密码switchport mode trunk 启用中继no vlan +vlan 号删除 VLANshow spamming-tree vlan +vlan 号 查看 VLA 怕生成树议2.路由器配置命令ip route+非直连网段+子网掩码+下一跳地址配置静态/默认路由show ip route查看路由表

24、show protocols显示出所有的被动路由协议和接口上哪些协议被设置show ip protocols显示了被配置在路由器上的路由选择协议,同时给出了在路由选择协议中使用的定时器等信息router rip激活RIP协议network +直连网段 发布直连网段interface lookback 0 激活逻辑接口passive-interface +接口类型+接口号 配置接口为被动模式debug ip +协议 动态查看路由更新信息undebug all关闭所有DEBUG信息router eigrp +as号 激活EIGRP路由协议network +网段+子网掩码 发布直连网段show ip

25、 eigrp neighbors 查看邻居表show ip eigrp topology 查看拓扑表show ip eigrp traffic 查看发送包数量router ospf +process-ID 激活 OSPF 协议network+直连网段+area+区域号 发布直连网段show ip ospf 显示 OSPF 的进程号和 ROUTER-IDencapsulation+封装格式更改封装格式no ip admain-lookup关闭路由器的域名查找ip routing在三层交换机上启用路由功能show user查看SW的在线用户clear line +线路号 清除线路3.三层交换机配置

26、命令配置一组二层端口configure terminal进入配置状态nterface range port-range进入组配置状态配置三层端口configure terminal进入配置状态interface fastethernet | gigabitethernet interface-id | vlan vlan-id | portchannel port-channel-number 进入端口配置状态no switchport把物理端口变成三层口ip address ip_address subnet_mask 配置 IP 地址和掩码no shutdown 激活端口例:Switch(

27、config)# interface gigabitethernet0/2Switch(config-if)# no switchportSwitch(config-if)# ip address 1 Switch(config-if)# no shutdown配置VLANconfigure terminal进入配置状态vlan vlan-id输入一个VLAN号,然后进入vlan配态,可以输入一个新的VLAN号或旧的来进行修改Oname vlan-name可选)输入一个VLAN名,如果没有配置VLAN名,缺省的名字是VLAN号前面用0填满的4位数,如VLAN0004是VLAN4的缺省名字mtu

28、 mtu-size (可选)改变MTU大小例Switch# configure terminalSwitch(config)# vlan 20Switch(config-vlan)# name test20Switch(config-vlan)# end或Switch# vlan databaseSwitch(vlan)# vlan 20 name test20Switch(vlan)# exit将端口分配给一个VLANconfigure terminal进入配置状态 interface interface-id 进入要分配的端口switchport mode access 定义二层口swit

29、chport access vlan vlan-id 把端 口分配给某一 VLAN例Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethernet0/1Switch(config-if)# switchport mode accessSwitch(config-if)# switchport access vlan 2Switch(config-if)# endSwitch#配置 VLAN trunkconfi

30、gure terminal进入配置状态interface interface-Id 进入端口配置状态switchport trunk encapsulation isl I dotlq I negotiate配置 trunk 封装 ISL 或 802.1Q 或自动协商switchport mode dynamic auto I desirable I trunk 配置二层 trunk 模式。dynamic auto自动协商是否成为trunkdynamic desirable把端口 设置为 trunk 如果对方端口是 trunk, desirable,配置 Native VLAN(802.1q)

31、或自动模式,trunk设置端口为强制的trunk方式,而不理会对方端口是否为trunkswitchport access vlan vlan-id可选)指定一个缺省VLAN,如果此端口不再是trunk switchport trunk native vlan vlan-id 指定 802.1Q native VLAN 号例:Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethernet0/4Switch(con

32、fig-if)# switchport mode trunkSwitch(config-if)# switchport trunk encapsulation dot1qSwitch(config-if)# end定义TRUNK允许的VLANconfigure terminal子 进入配置状态interface interface-id 进入端口配置switchport mode trunk 配置二层口为 trunkswitchport trunk allowed vlan add | all | except | remove vlan-list 可选)配置 trunk 允许的 VLAN.使

33、用 add, all, except, remove 关健字no switchport trunk allowed vlan 允许所有 VLAN 通过例Switch(config)# interface fastethernet0/1Switch(config-if)# switchport trunk allowed vlan remove 2Switch(config-if)# end配置 Native VLAN(802.1q)configure terminal进入配置状态interface interface-id 进入配置成 802.1qtrunk 的端口switchport tru

34、nk native vlan vlan-Id 配置 native VLAN 号no switchport trunk native vlan端口配置命令回到缺省的状态配置基于端口权值的负载均衡configure terminal 进入 Switch 1 配置状态vtp domain domain-name 配置 VTP 域vtp mode server 将 Switch 1 配置成 VTP server.show vtp status 验证 VTP 的配置show vlan 验证 VLANconfigure terminal进入配置状态interface fastethernet 0/1 进入

35、 F0/1 端口switchport trunk encapsulation isl | dot1q | negotiate配置 trunk 封装switchport mode trunk 配置成 trunkshow interfaces fastethernet0/1 switchport 验证 VLAN 配置按以上步骤对想要负载均衡的接口进行配置在另一个交换机上进行此配置show vlan当trunk已经起来,在switch2上验证已经学到相的vlan配置configure terminal在Switch 1上进入配置状态interface fastethernet0/1 进入要配置的端口

36、spanning-tree vlan 8 port-priority 10 将端 口权值 10 赋与 VLAN 8.spanning-tree vlan 9 port-priority 10 将端 口权值 10 赋与 VLAN 9.spanning-tree vlan 10 port-priority 10 将端 口权值 10 赋与 VLAN 10.interface fastethernet0/2 进入 F0/2spanning-tree vlan 3 port-priority 10 将端 口权值 10 赋与 VLAN 3.spanning-tree vlan 4 port-priorit

37、y 10 将端 口权值 10 赋与 VLAN 4spanning-tree vlan 5 port-priority 10 将端 口权值 10 赋与 VLAN 5spanning-tree vlan 6 port-priority 10 将端 口权值 10 赋与 VLAN 10end退出show running-config 验证配置copy running-config startup-config 保存配置配置STP路径值的负载均衡Trunk1 走 VLAN8-10, Trunk2 走 VLAN2-4configure terminal 进入 Switch 1 配置状态interface

38、fastethernet 0/1 进入 F0/1switchport trunk encapsulation isl | dot1q | negotiate配置封装switchport mode trunk 配置 Trunk,缺省是 ISL 封装exit退回在F0/2 口上重复2-4步骤exit 退回show running-config 验证配置show vlan 验证 switch1 已经学到 Vlanconfigure terminal进入配置状态interface fastethernet 0/1 进入 F0/1spanning-tree vlan 2 cost 30 设置 Vlan2

39、 生成树路径值为 30spanning-tree vlan 3 cost 30 设置 Vlan3 生成树路径值为 30spanning-tree vlan 4 cost 30 设置 Vlan4 生成树路径值为 30 end 退出 在switch 1的F0/2上重复9-11步骤设置VLAN8,9, 10生成树路径值为30end退出show running-config 验证配置copy running-config startup-config 保存配置补充:CISCO命令集路由选择协议及排障*ip route 命令Router(config)# ip route目录网络或子网号子网掩码下一路由

40、器IP地址|从本地出口的地址管理距离0255,默认为1(注:静态地址配置)*ip default-network 命令Router(config)# ip default-network目标网络号(注:配合路由协使用,用其中的一个动态路由号作默认路由配置)Router(config)# ip route 下一路由器 IP 地址 | 从本地出口的地址(注:只有一个公网地址时,在出口路由器上的配置)*内部路由选择协议*使用router和network命令Router(config)# router路由协议 rip I igrp I eigrp I ospf I is-is 等自主系统号Router

41、(config-router)# network直接相连的要用此路由协议的网络号Router(config-router)# network直接相连的要用此路由协议的网络号*路由信息协议RIPRouter(config)# router ripRouter(config-router)# network直接相连的要用rip协议的有类别网络号Router# show ip protocolsRouter# show ip routeRouter# debug ip rip*内部网关路由协议IGRPRouter(config)# router igrp traceroute有故障的主机|有故障的I

42、P地址C:windows winipcfgC:windows ipconfigC:windows ipconfig / allC:windows tracert arp -aSUN-A arp -a验证终端系统的路由表C:windows netstat -rnC:windows route - f add mask 需要添加入的网关地址C:windows route -f print | add | delete | change destination masknetmask gatewayC:windows route add mask网络掩码 route delete mask网络掩码

43、nbtstat netstat -rn 路由器CISCO交换机配置命令大全2009-08-13 21:131,在基于IOS的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2,在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set password switch(enable)

44、 set enalbepass在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable)

45、set ip route default gateway在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface type modle/portswitch# show cdp neighbors type module/port detail在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp enable|disable module/port为了查看

46、Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighborsmodule/port vlan|duplex|capabilities|detail基于IOS的交换机的端口描述:switch(config-if)# description description-string基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string6.在基于IOS的交换机上设置端口速度: switch(config-if)# speed10l100lauto在基于CLI的交换机上

47、设置端口速度:switch(enable) set port speed moudle/number 10|100|autoswitch(enable) set port speed moudle/number 4|16|auto在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex auto|full|half在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number full|half在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch

48、(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num name names

49、witch(enable) set vlan vlan-num mod-num/port-list在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/port switch(config-if)# switchport mode trunk switch(config-if)# switchport trunk encapsulation islldotlq switch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)#

50、switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port on|off|desirable|auto|nonegotiateVlan-range isl|dotlq|dotl0|lane|negotiate在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp domai

51、n domain-name在基于IOS的交换机上配置VTP模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp sever|cilent|transparentswitch(vlan)# vtp password password在基于CLI的交换机上配置VTP模式:switch(enable) set vtp domain domain-name mode sever|cilent|transparent password password在基于IOS的交换机上配置VTP版本:switch#

52、 vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的交换机上配置VTP版本:switch(enable) set vtp v2 enable 13.在基于IOS的交换机上启动VTP剪裁: switch# vlan database switch(vlan)# vtp pruning在基于CL I的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number distribution source|d

53、estination在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range modeon|off|desirable|auto在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree vlan vlan-list cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/p

54、ort cost costvlan-list在基于IOS的交换机上调整端口 ID:switch(config-if)# spanning-treevlan vlan-listport-priority port-priority在基于CLI的交换机上调整端口 ID:switch(enable) set spantree portpri mldule/portpriorityswitch(enable) set spantree portvlanpri module/portpriority vlans在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tre

55、e vlan vlan-list hello-time secondsswitch(config)# spanning-tree vlan vlan-list forward-time seconds switch(config)# spanning-tree vlan vlan-list max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello intervalvlan switch(enable) set spantree fwddelay delay vlan switch(enable) set spantr

56、ee maxage agingtiamevlan在基于IOS的交换机端口上启用或禁用Port Fast特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast特征:switch(enable) set spantree portfast module/portenableldisable在基于IOS的交换机端口上启用或禁用UplinkFast特征:switch(config)# spanning-tree uplinkfast max-update-rate pkts-per-second在基于CLI的交换机端

57、口上启用或禁用UplinkFast特征:switch(enable) set spantree uplinkfast enableldisablerate update-rate all-protocols offlon为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range用show vtp domain显示管理域的VTP参

58、数.用show vtp statistics显示管理域的VTP参数.在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name name name type trbrf bridge bridge-numstp ieeelibm在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num name name type trcrfring hex-ring-numldecring decimal-ring-num parent vlan-num在创建好TrBRF VLAN之后,就

59、可以给它分配交换机端口 ,对于以太网交换,可以采用如下命令给VLAN 分配端口:switch(enable) set vlan vlan-num mod-num/port-num 27.命令show spantree显示一个交换机端口的STP状态.28,配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name配置 LECS:ATM(config)# lane database database

60、-nameATM(lane-config-databade)# name elanl-name server-atm-address lesl-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name 创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database

温馨提示

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

评论

0/150

提交评论