雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3401|回复: 9

内容非常全的Switching 命令大全!(请求加精)

[复制链接]
发表于 2004-8-16 07:00:33 | 显示全部楼层 |阅读模式
内容非常全的Switching 命令大全!<br><br>Switching   命令大全<br>1.在基于IOS的交换机上设置主机名/系统名: <br>switch&#40;config&#41;# hostname hostname<br>  在基于CLI的交换机上设置主机名/系统名:<br>switch&#40;enable&#41; set system name name-string<br><br>2.在基于IOS的交换机上设置登录口令: <br>switch&#40;config&#41;# enable password level 1  password<br>  在基于CLI的交换机上设置登录口令: <br>switch&#40;enable&#41; set password<br>switch&#40;enable&#41; set enalbepass<br><br>3.在基于IOS的交换机上设置远程访问: <br>switch&#40;config&#41;# interface vlan 1<br>              switch&#40;config-if&#41;# ip address ip-address netmask<br>switch&#40;config-if&#41;# ip default-gateway ip-address<br>  在基于CLI的交换机上设置远程访问: <br>switch&#40;enable&#41; set interface sc0 ip-address netmask broadcast-address<br>switch&#40;enable&#41; set interface sc0 vlan<br>switch&#40;enable&#41; set ip route default gateway<br><br>4.在基于IOS的交换机上启用和浏览CDP信息: <br>switch&#40;config-if&#41;# cdp enable<br>switch&#40;config-if&#41;# no cdp enable<br>  为了查看Cisco邻接设备的CDP通告信息:<br>switch# show cdp interface [type modle/port]<br>switch# show cdp neighbors [type module/port] [detail]<br>  在基于CLI的交换机上启用和浏览CDP信息: <br>switch&#40;enable&#41; set cdp {enable|disable} module/port<br>  为了查看Cisco邻接设备的CDP通告信息:<br>switch&#40;enable&#41; show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]<br><br>5.基于IOS的交换机的端口描述:<br>switch&#40;config-if&#41;# description description-string<br>  基于CLI的交换机的端口描述: <br>switch&#40;enable&#41;set port name module/number description-string <br><br>6.在基于IOS的交换机上设置端口速度: <br>switch&#40;config-if&#41;# speed{10|100|auto}<br>  在基于CLI的交换机上设置端口速度:<br>switch&#40;enable&#41; set port speed moudle/number {10|100|auto}<br>switch&#40;enable&#41; set port speed moudle/number {4|16|auto}<br><br>7.在基于IOS的交换机上设置以太网的链路模式:<br>switch&#40;config-if&#41;# duplex {auto|full|half}<br>  在基于CLI的交换机上设置以太网的链路模式:<br>switch&#40;enable&#41; set port duplex module/number {full|half}<br><br>8.在基于IOS的交换机上配置静态VLAN:<br>switch# vlan database<br>switch&#40;vlan&#41;# vlan vlan-num name vlan-name<br>switch&#40;vlan&#41;# exit<br>switch# configure teriminal<br>switch&#40;config&#41;# interface interface module/number<br>switch&#40;config-if&#41;# switchport mode access<br>switch&#40;config-if&#41;# switchport access vlan vlan-num<br>switch&#40;config-if&#41;# end<br>在基于CLI的交换机上配置静态VLAN:<br>switch&#40;enable&#41; set vlan vlan-num [name name]<br>switch&#40;enable&#41; set vlan vlan-num mod-num/port-list<br><br>9. 在基于IOS的交换机上配置VLAN中继线:<br>switch&#40;config&#41;# interface interface mod/port<br>switch&#40;config-if&#41;# switchport mode trunk<br>switch&#40;config-if&#41;# switchport trunk encapsulation {isl|dotlq}<br>switch&#40;config-if&#41;# switchport trunk allowed vlan remove vlan-list<br>switch&#40;config-if&#41;# switchport trunk allowed vlan add vlan-list<br>    在基于CLI的交换机上配置VLAN中继线:<br>switch&#40;enable&#41; set trunk module/port [on|off|desirable|auto|nonegotiate]<br>          Vlan-range [isl|dotlq|dotl0|lane|negotiate]<br><br>10.在基于IOS的交换机上配置VTP管理域:<br>switch# vlan database <br>switch&#40;vlan&#41;# vtp domain domain-name<br>    在基于CLI的交换机上配置VTP管理域: <br>switch&#40;enable&#41; set vtp [domain domain-name]<br><br>11.在基于IOS的交换机上配置VTP 模式:<br>switch# vlan database<br>switch&#40;vlan&#41;# vtp domain domain-name<br>switch&#40;vlan&#41;# vtp {sever|cilent|transparent}<br>switch&#40;vlan&#41;# vtp password password<br>     在基于CLI的交换机上配置VTP 模式: <br>switch&#40;enable&#41; set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]<br><br>12. 在基于IOS的交换机上配置VTP版本:<br>switch# vlan database<br>switch&#40;vlan&#41;# vtp v2-mode<br>     在基于CLI的交换机上配置VTP版本:<br>switch&#40;enable&#41; set vtp v2 enable<br><br>13. 在基于IOS的交换机上启动VTP剪裁:<br>switch# vlan database<br>switch&#40;vlan&#41;# vtp pruning<br>    在基于CL I 的交换机上启动VTP剪裁:<br>switch&#40;enable&#41; set vtp pruning enable<br><br>14.在基于IOS的交换机上配置以太信道:<br>switch&#40;config-if&#41;# port group group-number [distribution {source|destination}]<br>    在基于CLI的交换机上配置以太信道:<br>switch&#40;enable&#41; set port channel moudle/port-range mode{on|off|desirable|auto}<br><br>15.在基于IOS的交换机上调整根路径成本:<br>switch&#40;config-if&#41;# spanning-tree [vlan vlan-list] cost cost<br>    在基于CLI的交换机上调整根路径成本:<br>switch&#40;enable&#41; set spantree portcost moudle/port cost<br>switch&#40;enable&#41; set spantree portvlancost moudle/port [cost cost][vlan-list]<br><br>16.在基于IOS的交换机上调整端口ID:<br>switch&#40;config-if&#41;# spanning-tree[vlan vlan-list]port-priority port-priority<br>    在基于CLI的交换机上调整端口ID:<br>switch&#40;enable&#41; set spantree portpri {mldule/port}priority<br>switch&#40;enable&#41; set spantree portvlanpri {module/port}priority [vlans]<br><br>17. 在基于IOS的交换机上修改STP时钟:<br>switch&#40;config&#41;# spanning-tree [vlan vlan-list] hello-time seconds<br>switch&#40;config&#41;# spanning-tree [vlan vlan-list] forward-time seconds<br>`switch&#40;config&#41;# spanning-tree [vlan vlan-list] max-age seconds<br>     在基于CLI的交换机上修改STP时钟:<br>switch&#40;enable&#41; set spantree hello interval[vlan]<br>switch&#40;enable&#41; set spantree fwddelay delay [vlan]<br>switch&#40;enable&#41; set spantree maxage agingtiame[vlan]<br><br>18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:<br>switch&#40;config-if&#41;#spanning-tree portfast<br>     在基于CLI的交换机端口上启用或禁用Port Fast 特征:<br>switch&#40;enable&#41; set spantree portfast {module/port}{enable|disable}<br><br>19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:<br>switch&#40;config&#41;# spanning-tree uplinkfast [max-update-rate pkts-per-second]<br>     在基于CLI的交换机端口上启用或禁用UplinkFast 特征:<br>switch&#40;enable&#41; set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]<br><br>20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令:      switch&#40;config&#41;# cluster enable cluster-name<br><br>21. 为了从一条中继链路上删除VLAN,可使用下列命令:<br>switch&#40;enable&#41; clear trunk module/port vlan-range<br><br>22. 用show vtp domain 显示管理域的VTP参数.<br><br>23. 用show vtp statistics显示管理域的VTP参数.<br><br>24. 在Catalyst交换机上定义TrBRF的命令如下:<br>switch&#40;enable&#41; set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]<br><br>25. 在Catalyst交换机上定义TrCRF的命令如下:<br>switch &#40;enable&#41; set vlan vlan-num [name name] type trcrf<br>         {ring hex-ring-num|decring decimal-ring-num} parent vlan-num<br><br>26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口: <br>switch&#40;enable&#41; set vlan vlan-num mod-num/port-num<br><br>27. 命令show spantree显示一个交换机端口的STP状态.<br><br>28. 配置一个ELAN的LES和BUS,可以使用下列命令:<br>ATM &#40;config&#41;# interface atm number.subint multioint<br>ATM&#40;config-subif&#41;# lane serber-bus ethernet elan-name<br><br>29. 配置LECS:<br>ATM&#40;config&#41;# lane database database-name<br>ATM&#40;lane-config-databade&#41;# name elan1-name server-atm-address les1-nsap-address<br>ATM&#40;lane-config-databade&#41;# name elan2-name server-atm-address les2-nsap-address<br>ATM&#40;lane-config-databade&#41;# name …<br><br>30. 创建完数据库后,必须在主接口上启动LECS.命令如下:<br>ATM&#40;config&#41;# interface atm number<br>ATM&#40;config-if&#41;# lane config database database-name<br>ATM&#40;config-if&#41;# lane config auto-config-atm-address<br><br>31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:<br>ATM&#40;config&#41;# interface atm number.subint multipoint<br>ATM&#40;config&#41;# lane client ethernet vlan-num elan-num<br><br>32. 用show lane server 显示LES的状态.<br><br>33. 用show lane bus显示bus的状态.<br><br>34. 用show lane database显示LECS数据库可内容.<br><br>35. 用show lane client显示LEC的状态.<br><br>36. 用show module显示已安装的模块列表.<br><br>37. 用物理接口建立与VLAN的连接:<br>router# configure terminal<br>router&#40;config&#41;# interface media module/port<br>router&#40;config-if&#41;# description description-string<br>router&#40;config-if&#41;# ip address ip-addr subnet-mask<br>router&#40;config-if&#41;# no shutdown<br><br>38. 用中继链路来建立与VLAN的连接:<br>router&#40;config&#41;# interface module/port.subinterface<br>router&#40;config-ig&#41;# encapsulation[isl|dotlq] vlan-number<br>router&#40;config-if&#41;# ip address ip-address subnet-mask<br><br>39. 用LANE 来建立与VLAN的连接:<br>router&#40;config&#41;# interface atm module/port<br>router&#40;config-if&#41;# no ip address<br>router&#40;config-if&#41;# atm pvc 1 0 5 qsaal<br>router&#40;config-if&#41;# atm pvc 2 0 16 ilni<br>router&#40;config-if&#41;# interface atm module/port.subinterface multipoint<br>router&#40;config-if&#41;# ip address ip-address subnet-mask<br>router&#40;config-if&#41;# lane client ethernet elan-num<br>router&#40;config-if&#41;# interface atm module/port.subinterface multipoint<br>router&#40;config-if&#41;# ip address ip-address subnet-name<br>router&#40;config-if&#41;# lane client ethernet elan-name<br>router&#40;config-if&#41;# …<br><br>40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:<br>router&#40;config&#41;# ip routing<br>router&#40;config&#41;# router ip-routing-protocol<br>router&#40;config-router&#41;# network ip-network-number<br>router&#40;config-router&#41;# network ip-network-number<br><br>41. 配置默认路由:<br>switch&#40;enable&#41; set ip route default gateway<br><br>42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:<br>router&#40;config&#41;# interface interface number<br>router&#40;config-if&#41;# mls rp vlan-id vlan-id-num<br><br>43. 在路由处理器启用MLSP:<br>router&#40;config&#41;# mls rp ip<br><br>44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:<br>router&#40;config&#41;# interface interface number<br>router&#40;config-if&#41;# mls rp vtp-domain domain-name<br><br>45. 查看指定的VTP域的信息:<br>router# show mls rp vtp-domain vtp domain name<br><br>46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:<br>router&#40;config-if&#41;#mls rp management-interface<br><br>47. 要检验MLS-RP的配置情况:<br>router# show mls rp<br><br>48. 检验特定接口上的MLS配置:<br>router# show mls rp interface interface number<br><br>49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:<br>set mls flow [destination|destination-source|full]<br><br>50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:<br>router&#40;config&#41;# mls rp ip input-acl<br><br>51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:<br>switch&#40;enable&#41; set mls enable<br><br>52. 若想改变老化时间的值,可在特权模式下输入以下命令:<br>switch&#40;enable&#41; set mls agingtime agingtime<br><br>53. 设置快速老化:<br>switch&#40;enable&#41; set mls agingtime fast fastagingtime pkt_threshold<br><br>54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:<br>switch&#40;enable&#41; show mls include<br><br>55. 显示MLS高速缓存记录:<br>switch&#40;enable&#41; show mls entry<br><br>56. 用命令show in arp显示ARP高速缓存区的内容。<br><br>57. 要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令:<br>router&#40;config-if&#41;# standby group-number ip ip-address<br><br>58. 为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下:<br>router&#40;config-if&#41;# standy group-number preempt<br><br>59. 访问时间和保持时间参数是可配置的:<br>router&#40;config-if&#41;# standy group-number timers hellotime holdtime<br><br>60. 配置HSRP跟踪:<br>router&#40;config-if&#41;# standy group-number track type-number interface-priority<br><br>61. 要显示HSRP路由器的状态:<br>router# show standby type-number group brief<br><br>62. 用命令show ip igmp确定当选的查询器。<br><br>63. 启动IP组播路由选择:<br>router&#40;config&#41;# ip muticast-routing<br><br>64. 启动接口上的PIM:<br>dalllasr1&gt;&#40;config-if&#41;# ip pim {dense-mode|sparse-mode|sparse-dense-mode}<br><br>65. 启动稀疏-稠密模式下的PIM:<br>router# ip multicast-routing<br>router# interface type number<br>router# ip pim sparse-dense-mode<br><br>66. 核实PIM的配置:<br>dallasr1&gt;# show ip pim interface[type number] [count]<br><br>67. 显示PIM邻居:<br>dallasr1&gt;# show ip neighbor type number<br><br>68. 为了配置RP的地址,命令如下:<br>dallasr1&gt;# ip pim rp-address ip-address [group-access-list-number][override]<br><br>69. 选择一个默认的RP:<br>dallasr1&gt;# ip pim rp-address<br>     通告RP和它所服务的组范围:<br>dallasr1&gt;# ip pim send-rp-announce type number scope ttl group-list access-list-number<br>     为管理范围组通告RP的地址:<br>dallasr1&gt;# ip pim send-rp-announce ethernet0 scope 16 group-list1<br>dallasr1&gt;# access-list 1 permit 266.0.0.0 0.255.255.255<br>     设定一个RP映像代理:<br>dallasr1&gt;# ip pim send-rp-discovery scope ttl<br>     核实组到RP的映像:<br>dallasr1&gt;# show ip pim rp mapping<br>dallasr1&gt;# show ip pim rp [group-name|group-address] [mapping]<br><br>70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value设定TTL阀值:<br>dallasr1&gt;&#40;config-if&#41;# ip multicast ttl-threshold ttl-value<br><br>71. 用show ip pim neighbor显示PIM邻居表。<br><br>72. 显示组播通信路由表中的各条记录:<br>dallasr1&gt;show ip mroute [group-name|group-address][scoure][summary][count][active kbps]<br><br>73. 要记录一个路由器接受和发送的全部IP组播包:<br>dallasr1&gt; #debug ip mpacket [detail] [access-list][group]<br><br>74. 要在CISCO路由器上配置CGMP:<br>dallasr1&gt;&#40;config-if&#41;# ip cgmp<br><br>75.配置一个组播路由器,使之加入某一个特定的组播组:<br>dallasr1&gt;&#40;config-if&#41;# ip igmp join-group group-address<br><br>76. 关闭CGMP:<br>dallasr1&gt;&#40;config-if&#41;# no ip cgmp<br><br>77. 启动交换机上的CGMP:<br>dallasr1&gt;&#40;enable&#41; set cgmp enable<br><br>78. 核实Catalyst交换机上CGMP的配置情况:<br>catalystla1&gt;&#40;enable&#41; show config<br>set prompt catalystla1&gt;<br>set interface sc0 192.168.1.1 255.255.255.0<br>set cgmp enable<br><br>79. CGMP离开的设置:<br>Dallas_SW&#40;enable&#41; set cgmp leave<br><br>80. 在Cisco设备上修改控制端口密码:<br>R1&#40;config&#41;# line console 0<br>R1&#40;config-line&#41;# login<br>R1&#40;config-line&#41;# password Lisbon<br>R1&#40;config&#41;# enable password Lilbao<br>R1&#40;config&#41;# login local<br>R1&#40;config&#41;# username student password cisco<br><br>81. 在Cisco设备上设置控制台及vty端口的会话超时:<br>R1&#40;config&#41;# line console 0<br>R1&#40;config-line&#41;# exec-timeout 5 10<br>R1&#40;config&#41;# line vty 0 4<br>R1&#40;config-line&#41;# exec-timeout 5 2<br><br>82. 在Cisco设备上设定特权级:<br>R1&#40;config&#41;# privilege configure level 3 username<br>R1&#40;config&#41;# privilege configure level 3 copy run start<br>R1&#40;config&#41;# privilege configure level 3 ping<br>R1&#40;config&#41;# privilege configure level 3 show run<br>R1&#40;config&#41;# enable secret level 3 cisco<br><br>83. 使用命令privilege 可定义在该特权级下使用的命令:<br>router&#40;config&#41;# privilege mode level level command<br><br>84. 设定用户特权级:<br>router&#40;config&#41;# enable secret level 3 dallas<br>router&#40;config&#41;# enable secret san-fran<br>router&#40;config&#41;# username student password cisco<br><br>85. 标志设置与显示:<br>R1&#40;config&#41;# banner motd ‘unauthorized access will be prosecuted!’<br><br>86. 设置vty访问:<br>R1&#40;config&#41;# access-list 1 permit 192.168.2.5<br>R1&#40;config&#41;# line vty 0 4<br>R1&#40;config&#41;# access-class 1 in<br><br>87. 配置HTTP访问:<br>Router3&#40;config&#41;# access-list 1 permit 192.168.10.7<br>Router3&#40;config&#41;# ip http sever<br>Router3&#40;config&#41;# ip http access-class 1<br>Router3&#40;config&#41;# ip http authentication local<br>Router3&#40;config&#41;# username student password cisco<br><br>88. 要启用HTTP访问,请键入以下命令:<br>switch&#40;config&#41;# ip http sever<br><br>89. 在基于set命令的交换机上用setCL1启动和核实端口安全:<br>switch&#40;enable&#41; set port security mod_num/port_num…enable mac address<br>switch&#40;enable&#41; show port mod_num/port_num<br>     在基于CiscoIOS命令的交换机上启动和核实端口安全:<br>switch&#40;config-if&#41;# port secure [mac-mac-count maximum-MAC-count]<br>switch# show mac-address-table security [type module/port]<br><br>90. 用命令access-list在标准通信量过滤表中创建一条记录:<br>Router&#40;config&#41;# access-list access-list-number {permit|deny} source-address [source-address]<br><br>91. 用命令access-list在扩展通信量过滤表中创建一条记录:<br>Router&#40;config&#41;# access-list access-list-number {permit|deny{protocol|protocol-keyword}}{source source-wildcard|any}{destination destination-wildcard|any}[protocol-specific options][log]<br><br>92. 对于带内路由更新,配置路由更新的最基本的命令格式是:<br>R1&#40;config-router&#41;#distribute-list access-list-number|name in [type number]<br><br>93. 对于带外路由更新,配置路由更新的最基本的命令格式是:<br>R1&#40;config-router&#41;#distribute-list access-list-number|name out [interface-name] routing-process| autonomous-system-number<br><br>94. set snmp命令选项:<br>set snmp community {read-only|ready-write|read-write-all}[community_string]<br><br>95. set snmp trap 命令格式如下:<br>set snmp trap {enable|disable}<br>[all|moudle|classis|bridge|repeater| auth|vtp|ippermit|vmps|config|entity|stpx]<br>set snmp trap rvcr_addr rcvr_community<br><br>96. 启用SNMP chassis 陷阱:<br>Console&gt;&#40;enable&#41; set snmp trap enable chassis<br><br>97. 启用所有SNMP chassis 陷阱:<br>Console&gt;&#40;enable&#41; set snmp trap enable<br><br>98. 禁用SNMP chassis 陷阱:<br>Console&gt;&#40;enable&#41; set snmp trap disable chassis<br><br>99. 给SNMP陷阱接收表加一条记录:<br>Console&gt;&#40;enable&#41; set snmp trap 192.122.173.42  public<br><br>100. show snmp 输出结果。<br><br>101. 命令set snmp rmon enable 的输出结果。<br><br>102. 显示SPAN信息:<br>Consile&gt; show span<br><br><br><br>[此帖子已被 gooney 在 8/16/2004 4:19:24 PM 编辑过]
发表于 2004-8-17 05:57:39 | 显示全部楼层
67. 显示PIM邻居:<br>dallasr1&gt;# show ip neighbor type number<br><br>Router上是 sh ip pim nei ,Layer-3 switch上难道不同?
发表于 2004-8-16 15:04:57 | 显示全部楼层
不错,加精华,近期NA班学习Switch技术,为方便大家查阅,置顶一周。
发表于 2004-8-16 16:05:56 | 显示全部楼层
嘿嘿,老大真好...
发表于 2004-8-20 04:50:25 | 显示全部楼层
我也要加精华,55~~~~<br>
发表于 2004-8-16 13:12:58 | 显示全部楼层
好长耶...
发表于 2005-1-6 12:36:52 | 显示全部楼层
不错啊!!!要置顶啊!!!
发表于 2005-10-28 23:02:24 | 显示全部楼层
顶,顶,顶,顶
发表于 2005-10-29 00:28:21 | 显示全部楼层
cmsc是哪位高手啊,能闻大名?
发表于 2005-11-17 17:51:29 | 显示全部楼层
<P><FONT color=#aa55aa size=4>非常好的帖子!!!</FONT></P><P><FONT color=#aa55aa size=4>今天下午配WS-C2900帮助非常大,我把用set配vlan的有用到的基本命令又整理了一下</FONT></P><P><FONT size=4>在基于CLI的交换机上启用和浏览CDP信息: <BR>switch(enable) set cdp {enable|disable} module/port<BR>为了查看Cisco邻接设备的CDP通告信息:<BR>switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]</FONT></P><P><FONT size=4>在基于CLI的交换机上配置静态VLAN:<BR>switch(enable) set vlan vlan-num [name name]<BR>switch(enable) set vlan vlan-num mod-num/port-list</FONT></P><P><FONT size=4>在基于CLI的交换机上配置VTP管理域: <BR>switch(enable) set vtp [domain domain-name]</FONT></P><P><FONT size=4>在基于CLI的交换机上配置VTP 模式: <BR>switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][passwd </FONT></P><P><FONT size=4>password]</FONT></P><P><FONT size=4>在基于CLI的交换机上配置VTP版本:<BR>switch(enable) set vtp v2 enable</FONT></P><P><FONT size=4>&nbsp;为了从一条中继链路上删除VLAN,可使用下列命令:<BR>switch(enable) clear trunk module/port vlan-range</FONT></P><P><FONT size=4>删除vlan <BR>switch(enable)clear vlan [vlan-number] </FONT></P><P><FONT size=4>&nbsp;配置默认路由:<BR>switch(enable) set ip route default gateway</FONT></P><P><FONT color=#4d61b3 size=4>但是在WS-C2900上,要删除某个接口上的VLAN配置,用什么命令?用了clear&nbsp; ? 找不到相关的命令啊!<IMG src="images/Emotions/10.gif"></FONT></P>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-28 14:04 , Processed in 0.079115 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表