监控安装 ERP

系统集成论坛

 找回密码
 注册通行证

QQ登录

只需一步,快速开始

路由器交换机防火墙系统集成商城 优质产品采购平台
查看: 2770|回复: 3
打印 上一主题 下一主题

交换机命令大全

  [复制链接]

0

主题

72

帖子

241

积分

正式员工

跳转到指定楼层
1
发表于 2010-12-16 09:21:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
华为金牌代理
思科交换机命令的掌握对于思科交换机的使用有很大帮助,但是思科交换机命令繁多,为了便于记忆,总结出如下百条思科交换机命令,希望对大家有所帮助。

1.设置主机名/系统名 switch(config)# hostname "hostname" switch(enable) set system name name-string

2.设置登录口令 switch(config)# enable password level 1 password switch(enable) set password

switch(enable) set enalbepass

3.设置远程访问 switch(config)# inte***ce vlan 1

switch(config-if)# ip address ip-address netmask

switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce sc0 ip-address netmask broadcast-address

switch(enable) set inte***ce sc0 vlan

switch(enable) set ip route default gateway

4.启用和浏览CDP信息 switch(config-if)# cdp enable

switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module/port

5.查看Cisco邻接设备的CDP通告 switch# show cdp inte***ce [type modle/port]

switch# show cdp neighbors [type module/port] [detail] switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]

6.端口描述 switch(config-if)#description escription-string switch(enable)set port name module/number description-string

7.设置端口速度 switch(config-if)# speed{10|100|auto} switch(enable) set port speed moudle/number {10|100|auto}

switch(enable) set port speed moudle/number {4|16|auto}

8.设置以太网的链路模式 switch(config-if)# duplex {auto|full|half} switch(enable) set port duplex module/number {full|half

9.配置静态VLAN switch# vlan database

switch(vlan)# vlan vlan-num name vla

switch(vlan)# exit

switch# configure teriminal

switch(config)#inte***ce inte***ce module/number

switch(config-if)# switchport mode access

switch(config-if)# switchport access vlan vlan-num

switch(config-if)# end switch(enable) set vlan vlan-num [name name]

switch(enable) set vlan vlan-num mod-num/port-list

10.配置VLAN中继线 switch(config)# inte***ce inte***ce mod/port

switch(config-if)# switchport mode trunk

switch(config-if)#switchport trunk encapsulation {isl|dotlq}

switch(config-if)# switchport trunk allowed vlan remove vlan-list

switch(config-if)# switchport trunk allowed vlan add vlan-list switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate]

Vlan-range [isl|dotlq|dotl0|lane|negotiate]

更多阅读请登录 http://www.3ait.net/web/ruodjc/201012/15-8048.html

35

主题

552

帖子

963

积分

正式员工

2
发表于 2010-12-16 11:59:21 | 只看该作者
华为金牌代理
  你一次发全不行吗,搞得这么麻烦

0

主题

2

帖子

22

积分

实习生

QQ
3
发表于 2010-12-20 14:54:10 | 只看该作者
华为金牌代理
每个交换机的命令都不一样,我一般只记得住常用的。
PDU厂家一手货源订制,0574-63551707-809 许大飞

0

主题

37

帖子

69

积分

实习生

QQ
4
发表于 2011-2-22 10:00:39 | 只看该作者
有些乱。
再牛逼的牛也是要吃草的!
您需要登录后才可以回帖 登录 | 注册通行证

本版积分规则

联系我们| 手机版|系统集成论坛 ( 京ICP备11008917号 )

GMT+8, 2024-5-7 10:05 , Processed in 0.120368 second(s), 24 queries .

系统集成论坛

BBS.XTJC.COM

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