命令全写作用enenable用户模式>进入到特权模式# clockset配置一个时钟conftconfigterminal特权模式进入到全局配置模式(config)#ba nnermotd$WelcometoCisco$标语enablesecret/passwordxxxx特权模式密 码,优选secretintf0/0interfacefastethernet0/0进入到快速以太网0/0接口ipa ddx.x.x.xm.m.m.mipaddress1.1.1.1255.255.255.0配置IP地址exit( 逐级回退)退出,接口模式——>全局配置——>特权模式——》用户模式end直接回退到特权模式配置console会话linecon sole0passwordxxxlogin、、、启用登陆认证配置telnet会话linevty04、、、最大允许5个用 户同时telnetpasswordxxxloggingsynchronous,开启日志信息同步,防止日志信息打乱正在输入命令n ologin、、、关闭登陆认证copyrunstart、、、、保存运行配置文件(RAM)到启动配置文件(NVRAM)copy startruncopyrun/start/flash:tftp、、、、保存配置文件、flash文件到TFTP服务器cop ytftp:run/start/flash:、、、、恢复文件Showcdpneighbor查看端口showrun、、 、、查看运行配置文件showstart、、、、查看启动配置文件showclock、、、查看时钟showipintbr、、 、、#showipinterfacebrief、、、查看接口IP地址以及接口状态信息showintf0/0、、、#sho winterfacef0/0、、、查看F0/0接口二层信息(数据链路层)showhistory、、、查看历史输入命令CDP, 思科发现协议,邻居设备相关信息#cdprun#cdpenable#showcdpneighbor、、主机名、平台、性能、接 口#showcdpdetail、、、邻居设备的详细的IOS版本,IP地址等信息VLAN:如何创建vlan#vlan100#n ameHR如何划分vlan(接口划分到相应的vlan中)#interfacef0/1#switchportmodeacce ss#switchportaccessvlan100如何定义trunk接口作用:传输多个vlan的信息#interface f0/2#switchportmodetrunk#switchporttrunknativevlanxx、、、、本征v lan,不打标#switchporttrunkallowvlanxxx、、、放行vlan,默认放行所有的vlanVTP:v lantrunkprotocol,vlan中继协议作用:同步vlan信息配置:定义VTP模式(server/client/tr ansparent)#vtpmodeserver/client/transparent是否同步vlan?是否转发vtp通告?创 ,删,修vlanServer:ClientTransparent定义VTP域名定义VTP密码(可选)验证#showvlanbrief#showvtpstatus、、、配置修订号,MD5校验值 |
|