⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 222427.html

📁 CISCO 操作命令 CISCO 操作命令
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML>
<HEAD>
<TITLE>switch命令大全</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<link href="cisco.css" tppabs="http://www.net130.com/images/cisco.css" rel="stylesheet" 

type="text/css">
<meta name="keywords" 

content="cisco,ccna,ccnp,net,net130,ccie,bbs.net130.com.net,TestKing

">
</HEAD>
<BODY BGCOLOR=#EAEAEA LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 

MARGINHEIGHT=0>
<table cellspacing=0 cellpadding=0 width=780 align=center border=0 

bgcolor="#99CCFF">
  <tbody> 
  <tr> 
    <td width="7"> </td>
    <td nowrap height=25> 
      <form action="http://bbs.net130.com/member.php" method="post">
        <font face="宋体,verdana,arial,helvetica" > Cisco网络技术论

坛->  <font color="#000000">用户名</font></font> 
        <input type="hidden" name="s" 

value="67c92557f3c0e73f48507762f7d6cf05">
        <input type="hidden" name="action" value="login">
        <input type="text" class="input1" name="username" size="7">
        密码 
        <input type="password" class="input1" name="password" 

size="7">
        <input type="submit" class="input2" value="登录" 

name="submit">
      </form>
    </td>
    <td  nowrap><form method=post action="http://www.net130.com/search.asp">
<table border=0><tr><td><font color="#000000">搜索</font></td><td>
<input type="text" name="keyword" size="10" class=input1></td><td>
<select name="condition" class=input1>
<option value="title">标题</option>
<option value="content">内容</option>
</select></td><td>
<input type="submit" class=input2 name="Submit" 

value="搜索"></td></tr></table>
</form></td>
    <td width="11"> 
      <div align=right></div>
    </td>
  </tr>
  </tbody> 
</table>
<table width="780" border="0" align="center" cellpadding="0" 

cellspacing="0">
  <tr bgcolor="#ECB70A">
    <td colspan="2"><img src="space.gif" tppabs="http://www.net130.com/images/space.gif" width="1" 

height="3"></td>
  </tr>
  <tr>
    <td width="200" height="70"><img src="logo.gif" tppabs="http://www.net130.com/images/logo.gif" 

width="185" height="60"></td>
    <td>
      <div align="center"><a href="javascript:if(confirm('http://bbs.net130.com/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://bbs.net130.com/'" tppabs="http://bbs.net130.com/" target="_blank"><img src="net130_lt.jpg" tppabs="http://www.net130.com/images/home/net130_lt.jpg" border="0"></a>
 <!----       <script src="/inc/ad_news_content.js"></script> ---->
      </div>
    </td>
  </tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=780 align=center border=0 

style="border-top:1px solid #666666;border-bottom:1px solid 

#666666">
  <TBODY>
    <TR>
      
    <TD width=185 bgcolor="#004D9C"> 
      <DIV 
    align=center><font 

style="font-size:17px;font-family:arial;font-weight:bold;text-decora

tion:none;color:#FFFFFF;">Net130.com</font></DIV>
    </TD>
      
    <TD width=595 bgColor=#FFFFFF>
<script src="navigation2.js" tppabs="http://www.net130.com/inc/navigation2.js"></script>
    </TD>
    </TR>
  </TBODY>
</TABLE>
<table width="780"  border="0" align="center" cellpadding="0" 

cellspacing="0">
  <tr>
    <td><img name="" src="space.gif" tppabs="http://www.net130.com/images/space.gif" width="1" 

height="1" alt=""></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" 

cellspacing="0" style="border-left:1px solid #dddddd;">
  <tr>
    <td valign="top"><table width="100%"  border="0" cellspacing="0" 

cellpadding="0">
        <tr>
          <td><img src="space.gif" tppabs="http://www.net130.com/images/space.gif" width="1" 

height="1"></td>
        </tr>
      </table>
        <table width="100%"  border="0" cellspacing="0" 

cellpadding="0">
          <tr>
            
          <td height="22" background="head_bg.gif" tppabs="http://www.net130.com/images/head_bg.gif"> </td>
          </tr>
        </table>
        <table width="95%"  border="0" align="center" 

cellpadding="2" cellspacing="2">
          
        <tr valign="bottom"> 
          <td height="40" colspan="2" class="title" align=center> 
       <strong>switch命令大全</strong>
              <hr size="1" width="95%" align="center">

          </td>
          </tr>
          <tr>
            <td height="40" colspan="2" valign="top" 

class="chinese9ptmain">
            <div align="center">
              <table width="100%" border="0" cellspacing="0" 

cellpadding="0">
                <tr> 
                  <td width="20%"> </td>
                  <td width="56%" height="18"> 
                    <div 

align="center">http://www.net130.com  发布日期:2004-5-12</div>
                  </td>
                  <td width="24%"> 
                    <div align="center">浏览次数:<script src="Click.asp-filename=222427" tppabs="http://www.net130.com/Click.asp?filename=222427"></script></div>
                  </td>
                </tr>
                <tr>
                  <td width="20%"> </td>
                  <td width="56%" height="18"> 
                    <div align="center"> </div>
                  </td>
                  <td width="24%"> </td>
                </tr>
              </table>
              
            </div>
          </td>
          </tr>
          <tr bgcolor="#f8f8f8">
            
          <td colspan="2" class="chinesefont105pt"> <P>1.switch(config)# hostname hostname </P>
<P>在基于CLI的交换机上设置主机名/系统名: </P>
<P>switch(enable) set system name name-string </P>
<P>2.在基于IOS的交换机上设置登录口令: </P>
<P>switch(config)# enable password level 1 password </P>
<P>在基于CLI的交换机上设置登录口令: </P>
<P>switch(enable) set password </P>
<P>switch(enable) set enalbepass </P>
<P>3.在基于IOS的交换机上设置远程访问: </P>
<P>switch(config)# interface vlan 1 </P>
<P>switch(config-if)# ip address ip-address netmask </P>
<P>switch(config-if)# ip default-gateway ip-address </P>
<P>在基于CLI的交换机上设置远程访问: </P>
<P>switch(enable) set interface sc0 ip-address netmask broadcast-address </P>
<P>switch(enable) set interface sc0 vlan </P>
<P>switch(enable) set ip route default gateway </P>
<P>4.在基于IOS的交换机上启用和浏览CDP信息: </P>
<P>switch(config-if)# cdp enable </P>
<P>switch(config-if)# no cdp enable </P>
<P>为了查看Cisco邻接设备的CDP通告信息: </P>
<P>switch# show cdp interface [type modle/port] </P>
<P>switch# show cdp neighbors [type module/port] [detail] </P>
<P>在基于CLI的交换机上启用和浏览CDP信息: </P>
<P>switch(enable) set cdp {enable|disable} module/port </P>
<P>为了查看Cisco邻接设备的CDP通告信息: </P>
<P>switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] </P>
<P>5.基于IOS的交换机的端口描述: </P>
<P>switch(config-if)# description description-string </P>
<P>基于CLI的交换机的端口描述: </P>
<P>switch(enable)set port name module/number description-string </P>
<P>6.在基于IOS的交换机上设置端口速度: </P>
<P>switch(config-if)# speed{10|100|auto} </P>
<P>在基于CLI的交换机上设置端口速度: </P>
<P>switch(enable) set port speed moudle/number {10|100|auto} </P>
<P>switch(enable) set port speed moudle/number {4|16|auto} </P>
<P>7.在基于IOS的交换机上设置以太网的链路模式: </P>
<P>switch(config-if)# duplex {auto|full|half} </P>
<P>在基于CLI的交换机上设置以太网的链路模式: </P>
<P>switch(enable) set port duplex module/number {full|half} </P>
<P>8.在基于IOS的交换机上配置静态VLAN: </P>
<P>switch# vlan database </P>
<P>switch(vlan)# vlan vlan-num name vla </P>
<P>switch(vlan)# exit </P>
<P>switch# configure teriminal </P>
<P>switch(config)# interface interface module/number </P>
<P>switch(config-if)# switchport mode access </P>
<P>switch(config-if)# switchport access vlan vlan-num </P>
<P>switch(config-if)# end </P>
<P>在基于CLI的交换机上配置静态VLAN: </P>
<P>switch(enable) set vlan vlan-num [name name] </P>
<P>switch(enable) set vlan vlan-num mod-num/port-list </P>
<P>9. 在基于IOS的交换机上配置VLAN中继线: </P>
<P>switch(config)# interface interface mod/port </P>
<P>switch(config-if)# switchport mode trunk </P>
<P>switch(config-if)# switchport trunk encapsulation {isl|dotlq} </P>
<P>switch(config-if)# switchport trunk allowed vlan remove vlan-list </P>
<P>switch(config-if)# switchport trunk allowed vlan add vlan-list </P>
<P>在基于CLI的交换机上配置VLAN中继线: </P>
<P>switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate] </P>
<P>Vlan-range [isl|dotlq|dotl0|lane|negotiate] </P>
<P>10.在基于IOS的交换机上配置VTP管理域: </P>
<P>switch# vlan database </P>
<P>switch(vlan)# vtp domain domain-name </P>
<P>在基于CLI的交换机上配置VTP管理域: </P>
<P>switch(enable) set vtp [domain domain-name] </P>
<P>11.在基于IOS的交换机上配置VTP 模式: </P>
<P>switch# vlan database </P>
<P>switch(vlan)# vtp domain domain-name </P>
<P>switch(vlan)# vtp {sever|cilent|transparent} </P>
<P>switch(vlan)# vtp password password </P>
<P>在基于CLI的交换机上配置VTP 模式: </P>
<P>switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password] </P>
<P>12. 在基于IOS的交换机上配置VTP版本: </P>
<P>switch# vlan database </P>
<P>switch(vlan)# vtp v2-mode </P>
<P>在基于CLI的交换机上配置VTP版本: </P>
<P>switch(enable) set vtp v2 enable </P>
<P>13. 在基于IOS的交换机上启动VTP剪裁: </P>
<P>switch# vlan database </P>
<P>switch(vlan)# vtp pruning </P>
<P>在基于CL I 的交换机上启动VTP剪裁: </P>
<P>switch(enable) set vtp pruning enable </P>
<P>14.在基于IOS的交换机上配置以太信道: </P>
<P>switch(config-if)# port group group-number [distribution {source|destination}] </P>
<P>在基于CLI的交换机上配置以太信道: </P>
<P>switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto} </P>
<P>15.在基于IOS的交换机上调整根路径成本: </P>
<P>switch(config-if)# spanning-tree [vlan vlan-list] cost cost </P>
<P>在基于CLI的交换机上调整根路径成本: </P>
<P>switch(enable) set spantree portcost moudle/port cost </P>
<P>switch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list] </P>
<P>16.在基于IOS的交换机上调整端口ID: </P>
<P>switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority </P>
<P>在基于CLI的交换机上调整端口ID: </P>
<P>switch(enable) set spantree portpri {mldule/port}priority </P>
<P>switch(enable) set spantree portvlanpri {module/port}priority [vlans] </P>
<P>17. 在基于IOS的交换机上修改STP时钟: </P>
<P>switch(config)# spanning-tree [vlan vlan-list] hello-time seconds </P>
<P>switch(config)# spanning-tree [vlan vlan-list] forward-time seconds </P>
<P>` switch(config)# spanning-tree [vlan vlan-list] max-age seconds </P>
<P>在基于CLI的交换机上修改STP时钟: </P>
<P>switch(enable) set spantree hello interval[vlan] </P>
<P>switch(enable) set spantree fwddelay delay [vlan] </P>
<P>switch(enable) set spantree maxage agingtiame[vlan] </P>
<P>18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征: </P>
<P>switch(config-if)#spanning-tree portfast </P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -