思科交换机路由器命令大全Word格式.docx

上传人:b****2 文档编号:14876669 上传时间:2022-10-25 格式:DOCX 页数:8 大小:17.71KB
下载 相关 举报
思科交换机路由器命令大全Word格式.docx_第1页
第1页 / 共8页
思科交换机路由器命令大全Word格式.docx_第2页
第2页 / 共8页
思科交换机路由器命令大全Word格式.docx_第3页
第3页 / 共8页
思科交换机路由器命令大全Word格式.docx_第4页
第4页 / 共8页
思科交换机路由器命令大全Word格式.docx_第5页
第5页 / 共8页
点击查看更多>>
下载资源
资源描述

思科交换机路由器命令大全Word格式.docx

《思科交换机路由器命令大全Word格式.docx》由会员分享,可在线阅读,更多相关《思科交换机路由器命令大全Word格式.docx(8页珍藏版)》请在冰豆网上搜索。

思科交换机路由器命令大全Word格式.docx

4:

配置使能口令 

enablepasswordcisco 

以cisco为例

switch(conf)#hostnameaptch2950

aptech2950(conf)#enablepasswordcisco

5:

配置使能密码 

enablesecretciscolab 

以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性

aptech2950(conf)#enablesecretciscolab

aptech2950(conf)#noipdomain-lookup 

-----设置禁用IP地址解析特性

aptech2950(conf)#loggingsynchronous 

-----设置启用消息同步特性

aptech2950(conf)#interfacerangefastethernet0/1-20

aptech2950(conf-if-range)#spanning-treeportfast 

-----设置快速端口

aptech2950(conf)#interfacerangefastethernet0/23-24

aptech2950(conf-if-range)#swichportmodetrunk 

-----设置主干道端口

aptech2950(conf)#spanning-treeuplingkfast 

---设置阻塞启用迅速(只可以在访问层启用)

6:

设置虚拟局域网vlan1 

interfacevlan1

aptech2950(conf)#interfacevlan1

aptech2950(conf-if)#ipaddress192.168.1.1255.255.255.0 

配置交换机端口ip和子网掩码

aptech2950(conf-if)#noshut 

是配置处于运行中

aptech2950(conf-if)#exit

aptech2950(conf)#ipdefault-gateway192.168.254 

设置网关地址

7:

进入交换机某一端口interfacefastehernet0/17 

以17端口为例

aptech2950(conf)#interfacefastehernet0/17

aptech2950(conf-if)#

8:

查看命令 

show

switch#showversion 

察看系统中的所有版本信息

showinterfacevlan1 

查看交换机有关ip协议的配置信息

showrunning-configure查看交换机当前起作用的配置信息

showinterfacefastethernet0/1 

察看交换机1接口具体配置和统计信息

showmac-address-table 

查看mac地址表

showmac-address-tableaging-time 

查看mac地址表自动老化时间

9:

交换机恢复出厂默认恢复命令

switch#erasestartup-configure

switch#reload

10:

双工模式设置

switch#configureterminal

switch2950(conf)#hostnameaptch-2950

aptech2950(conf)#interfacefastehernet0/17 

aptech2950(conf-if)#duplexfull/half/auto 

有full,half,auto三个可选项

11:

cdp相关命令

switch#showcdp 

查看设备的cdp全局配置信息

showcdpinterfacefastethernet0/17 

查看17端口的cdp配置信息

showcdptraffic 

查看有关cdp包的统计信息

showcdpnerghbors 

列出与设备相连的cisco设备

12:

csico2950的密码恢复

拔下交换机电源线。

用手按着交换机的MODE键,插上电源线

在switch:

后执行flash_ini命令:

switch:

flash_ini

查看flash中的文件:

switch:

dirflash:

把“config.text”文件改名为“config.old”:

renameflash:

config.textflash:

config.old

执行boot:

boot

交换机进入是否进入配置的对话,执行no:

进入特权模式察看flash里的文件:

showflash:

把“config.old”文件改名为“config.text”:

config.oldflash:

config.text

把“config.text”拷入系统的“running-configure”:

copyflash:

config.textsystem:

running-configure

把配置模式重新设置密码存盘,密码恢复成功。

13:

交换机telnet远程登录设置:

en

switch(conf)#hostnameaptech-2950

aptech2950(conf)#enablepasswordcisco 

以cisco为特权模式密码

aptech2950(conf)#interfacefastethernet0/1 

以17端口为telnet远程登录端口

aptech2950(conf-if)#ipaddress192.168.1.1255.255.255.0

aptech2950(conf-if)#noshut

aptech2950(conf)linevty04 

设置0-4个用户可以telnet远程登陆

aptech2950(conf-line)#login

aptech2950(conf-line)#passwordedge 

以edge为远程登录的用户密码

主机设置:

ip 

192.168.1.2 

主机的ip必须和交换机端口的地址在同一网络段

netmask 

255.255.255.0

gate-way 

192.168.1.1 

网关地址是交换机端口地址

运行:

telnet192.168.1.1

进入telnet远程登录界面

password:

edge 

aptech2950>

password:

cisco

aptech#

14:

交换机配置的重新载入和保存

设置完成交换机的配置后:

aptech2950(conf)#reload

是否保存(y/n) 

y:

保存设置信息 

n:

不保存设置信息

路由器命令

router>

用户模式

router>

router#

configureterminal

router#configureterminal

router(conf)#

交换机命名hostnameroutera 

以routerA为例

router(conf)#hostnamerouterA

routera(conf)#

routerA(conf)#enablepasswordcisco

以cicsolab为例

routerA(conf)#enablesecretciscolab

进入路由器某一端口interfacefastehernet0/17 

routerA(conf)#interfacefastehernet0/17

routerA(conf-if)#

进入路由器的某一子端口interfacefastethernet0/17.1 

以17端口的1子端口为例

routerA(conf)#interfacefastehernet0/17.1

设置端口ip地址信息

routerA(conf)#interfacefastehernet 

0/17 

routerA(conf-if)#ipaddress192.168.1

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 农林牧渔 > 林学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1