请选择时期:
怀孕准备 怀孕 分娩 宝宝0-1岁 宝宝1-3岁 宝宝3-6岁

Cisco交换机功能性命令简介 Cisco命令

来源: 最后更新:2024-04-10 00:04:17

导读:Cisco交换机功能性命令简介 1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI
扫描关注公众号
The Beginning

1.在基于IOS的交换机上设置主机名/系统名:ddc育儿早教网

switch(config)# hostname hostnameddc育儿早教网

在基于CLI的交换机上设置主机名/系统名:ddc育儿早教网

switch(enable) set system name name-stringddc育儿早教网

2.在基于IOS的交换机上设置登录口令:ddc育儿早教网

switch(config)# enable password level 1 passwordddc育儿早教网

在基于CLI的交换机上设置登录口令:ddc育儿早教网

switch(enable) set passwordddc育儿早教网

switch(enable) set enalbepassddc育儿早教网

3.在基于IOS的交换机上设置远程访问:ddc育儿早教网

switch(config)# interface vlan 1ddc育儿早教网

switch(config-if)# ip address ip-address netmaskddc育儿早教网

switch(config-if)# ip default-gateway ip-addressddc育儿早教网

在基于CLI的交换机上设置远程访问:ddc育儿早教网

switch(enable) set interface sc0 ip-address netmask broadcast-addressddc育儿早教网

switch(enable) set interface sc0 vlanddc育儿早教网

switch(enable) set ip route default gatewayddc育儿早教网

4.在基于IOS的交换机上启用和浏览CDP信息:ddc育儿早教网

switch(config-if)# cdp enableddc育儿早教网

switch(config-if)# no cdp enableddc育儿早教网

为了查看Cisco邻接设备的CDP通告信息:ddc育儿早教网

switch# show cdp interface [type modle/port]ddc育儿早教网

switch# show cdp neighbors [type module/port] [detail]ddc育儿早教网

在基于CLI的交换机上启用和浏览CDP信息:ddc育儿早教网

switch(enable) set cdp module/portddc育儿早教网

为了查看Cisco邻接设备的CDP通告信息:ddc育儿早教网

switch(enable) show cdp neighbors[module/port] [vlanduplexcapabilitiesdetail]ddc育儿早教网

5.基于IOS的交换机的端口描述:ddc育儿早教网

switch(config-if)# description description-stringddc育儿早教网

基于CLI的交换机的端口描述:ddc育儿早教网

switch(enable)set port name module/number description-stringddc育儿早教网

6.在基于IOS的交换机上设置端口速度:ddc育儿早教网

switch(config-if)# speedddc育儿早教网

在基于CLI的交换机上设置端口速度:ddc育儿早教网

switch(enable) set port speed moudle/numberddc育儿早教网

switch(enable) set port speed moudle/numberddc育儿早教网

7.在基于IOS的交换机上设置以太网的链路模式:ddc育儿早教网

switch(config-if)# duplexddc育儿早教网

在基于CLI的交换机上设置以太网的链路模式:ddc育儿早教网

switch(enable) set port duplex module/numberddc育儿早教网

8.在基于IOS的交换机上配置静态VLAN:ddc育儿早教网

switch# vlan databaseddc育儿早教网

switch(vlan)# vlan vlan-num name vladdc育儿早教网

switch(vlan)# exitddc育儿早教网

switch# configure teriminalddc育儿早教网

switch(config)# interface interface module/numberddc育儿早教网

switch(config-if)# switchport mode accessddc育儿早教网

switch(config-if)# switchport access vlan vlan-numddc育儿早教网

switch(config-if)# endddc育儿早教网

在基于CLI的交换机上配置静态VLAN:ddc育儿早教网

switch(enable) set vlan vlan-num [name name]ddc育儿早教网

switch(enable) set vlan vlan-num mod-num/port-listddc育儿早教网

9. 在基于IOS的交换机上配置VLAN中继线:ddc育儿早教网

switch(config)# interface interface mod/portddc育儿早教网

switch(config-if)# switchport mode trunkddc育儿早教网

switch(config-if)# switchport trunk encapsulationddc育儿早教网

switch(config-if)# switchport trunk allowed vlan remove vlan-listddc育儿早教网

switch(config-if)# switchport trunk allowed vlan add vlan-listddc育儿早教网

在基于CLI的交换机上配置VLAN中继线:ddc育儿早教网

switch(enable) set trunk module/port [onoffdesirableautononegotiate]ddc育儿早教网

Vlan-range [isldotlqdotl0lanenegotiate]ddc育儿早教网

10.在基于IOS的交换机上配置VTP管理域:ddc育儿早教网

switch# vlan databaseddc育儿早教网

switch(vlan)# vtp domain domain-nameddc育儿早教网

在基于CLI的交换机上配置VTP管理域:ddc育儿早教网

switch(enable) set vtp [domain domain-name]ddc育儿早教网
11.在基于IOS的交换机上配置VTP 模式:ddc育儿早教网

switch# vlan databaseddc育儿早教网

switch(vlan)# vtp domain domain-nameddc育儿早教网

switch(vlan)# vtpddc育儿早教网

switch(vlan)# vtp password passwordddc育儿早教网

在基于CLI的交换机上配置VTP 模式:ddc育儿早教网

switch(enable) set vtp [domain domain-name] [mode{ severcilenttransparent }][password password]ddc育儿早教网

12. 在基于IOS的交换机上配置VTP版本:ddc育儿早教网

switch# vlan databaseddc育儿早教网

switch(vlan)# vtp v2-modeddc育儿早教网

在基于CLI的交换机上配置VTP版本:ddc育儿早教网

switch(enable) set vtp v2 enableddc育儿早教网

13. 在基于IOS的交换机上启动VTP剪裁:ddc育儿早教网

switch# vlan databaseddc育儿早教网

switch(vlan)# vtp pruningddc育儿早教网

在基于CL I 的交换机上启动VTP剪裁:ddc育儿早教网

switch(enable) set vtp pruning enableddc育儿早教网

14.在基于IOS的交换机上配置以太信道:ddc育儿早教网

switch(config-if)# port group group-number [distribution ]ddc育儿早教网

在基于CLI的交换机上配置以太信道:ddc育儿早教网

switch(enable) set port channel moudle/port-range modeddc育儿早教网

15.在基于IOS的交换机上调整根路径成本:ddc育儿早教网

switch(config-if)# spanning-tree [vlan vlan-list] cost costddc育儿早教网

在基于CLI的交换机上调整根路径成本:ddc育儿早教网

switch(enable) set spantree portcost moudle/port costddc育儿早教网

switch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]ddc育儿早教网

16.在基于IOS的交换机上调整端口ID:ddc育儿早教网

switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priorityddc育儿早教网

在基于CLI的交换机上调整端口ID:ddc育儿早教网

switch(enable) set spantree portpri priorityddc育儿早教网

switch(enable) set spantree portvlanpri priority [vlans]ddc育儿早教网

17. 在基于IOS的交换机上修改STP时钟:ddc育儿早教网

switch(config)# spanning-tree [vlan vlan-list] hello-time secondsddc育儿早教网

switch(config)# spanning-tree [vlan vlan-list] forward-time secondsddc育儿早教网

switch(config)# spanning-tree [vlan vlan-list] max-age secondsddc育儿早教网

在基于CLI的交换机上修改STP时钟:ddc育儿早教网

switch(enable) set spantree hello interval[vlan]ddc育儿早教网

switch(enable) set spantree fwddelay delay [vlan]ddc育儿早教网

switch(enable) set spantree maxage agingtiame[vlan]ddc育儿早教网

18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:ddc育儿早教网

switch(config-if)#spanning-tree portfastddc育儿早教网

在基于CLI的交换机端口上启用或禁用Port Fast 特征:ddc育儿早教网

switch(enable) set spantree portfastddc育儿早教网

19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:ddc育儿早教网

switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]ddc育儿早教网

在基于CLI的交换机端口上启用或禁用UplinkFast 特征:ddc育儿早教网

switch(enable) set spantree uplinkfast [rate update-rate] [all-protocols offon]ddc育儿早教网

20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-nameddc育儿早教网

21. 为了从一条中继链路上删除VLAN,可使用下列命令:ddc育儿早教网

switch(enable) clear trunk module/port vlan-rangeddc育儿早教网

22. 用show vtp domain 显示管理域的VTP参数.ddc育儿早教网

23. 用show vtp statistics显示管理域的VTP参数.ddc育儿早教网

24. 在Catalyst交换机上定义TrBRF的命令如下:ddc育儿早教网

switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp ]ddc育儿早教网

25. 在Catalyst交换机上定义TrCRF的命令如下:ddc育儿早教网
ddc育儿早教网
switch (enable) set vlan vlan-num [name name] type trcrfddc育儿早教网

{ring hex-ring-numdecring decimal-ring-num} parent vlan-numddc育儿早教网

26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:ddc育儿早教网

switch(enable) set vlan vlan-num mod-num/port-numddc育儿早教网

27. 命令show spantree显示一个交换机端口的STP状态.ddc育儿早教网

THE END
广告、内容合作请点击这里 寻求合作
免责声明:本文系转载,版权归原作者所有;旨在传递信息,其原创性以及文中陈述文字和内容未经本站证实。

育儿知识

所属专题: 机上  端口  交换机  

本文地址:http://www.yuerzaojiao.com/qiaomen/youxi/1177331.html

最新文章
  • 1腾讯为什么告老干妈(腾讯跟老干妈什么情况)

    腾讯为什么告老干妈(腾讯跟老干妈什么情况)

  • 2突然确诊癌症中晚期,已转移!宁波男子无法接受:怎么可能!医生:发现一个,全家高危!

    突然确诊癌症中晚期,已转移!宁波男子无法接受:怎么可能!医生:发现一个,全家高危!

  • 3疑似皇马前主席之孙公然辱华,皇马却称“将致力于消除足球界种族歧视”?

    疑似皇马前主席之孙公然辱华,皇马却称“将致力于消除足球界种族歧视”?

  • 4韩军称朝鲜军人无意中越界 韩军称朝鲜军人无意中越界了吗

    韩军称朝鲜军人无意中越界 韩军称朝鲜军人无意中越界了吗

  • 5中纪委再打两“虎”!还有一“虎”被免职,一“虎”获刑十五年!

    中纪委再打两“虎”!还有一“虎”被免职,一“虎”获刑十五年!

  • 6吉林市将举办世界锅包肉大赛,此前召开座谈会论证锅包肉起源

    吉林市将举办世界锅包肉大赛,此前召开座谈会论证锅包肉起源

  • 7哪些爱爱姿势更容易怀孕 选择这些爱爱姿势帮助生儿生女

    哪些爱爱姿势更容易怀孕 选择这些爱爱姿势帮助生儿生女

  • 8男性精子存活时间有多久 精子存活率低怎么办

    男性精子存活时间有多久 精子存活率低怎么办

  • 9医生算错怀孕周数怎么办 孕龄胎龄预产期原来是这样算的

    医生算错怀孕周数怎么办 孕龄胎龄预产期原来是这样算的

  • 10备孕未准妈妈请注意 这里有份孕前自检表请签收

    备孕未准妈妈请注意 这里有份孕前自检表请签收

推荐文章

关于我们 | 广告服务 | 网站合作 | 免责声明 | 联系我们| 网站地图

© 2022 育儿早教网 All Rights Reserved. 沪ICP备20230950727号-10

声明: 本站文章均来自互联网,不代表本站观点 如有异议 请与本站联系 联系邮箱:kefu#yuerzaojiao.com (请把#替换成@)