思科交换机配置命令教程?

发表时间:2017-02-26 15:12:01浏览:65次

在上一篇文章中,小编为您详细介绍了关于《电驴连接服务器解决攻略?咋》相关知识。 本篇中小编将再为您讲解标题思科交换机配置命令教程?。

交换机基本状态:

hostname/用户模式

hostname#/特权模式

hostname(config)#/全局配置模式

hostname(config-if)#/接口状态

交换机口令设置:

switchenable/进入特权模式

switch#configterminal/进入全局配置模式

switch(config)#hostname/设置交换机的主机名

switch(config)#enablesecretxxx/设置特权加密口令

switch(config)#enablepasswordxxa/设置特权非密口令

switch(config)#lineconsole⓪/进入控制台口

switch(config-line)#linevty⓪④/进入虚拟终端

switch(config-line)#login/允许登录

switch(config-line)#passwordxx/设置登录口令xx

switch#exit/返回命令

交换机VLAN设置:

switch#vlandatabase/进入VLAN设置

switch(vlan)#vlan②/建VLAN

②switch(vlan)#novlan②/删vlan

②switch(config)#intf⓪/①/进入端口①

switch(config-if)#switchportaccessvlan②/当前端口加入

vlan②switch(config-if)#switchportmodetrunk/设置为干线

switch(config-if)#switchporttrunkallowedvlan① · ②/设置允许的

vlanswitch(config-if)#switchporttrunkencapdot①q/设置vlan中继

switch(config)#vtpdomain/设置发vtp域名

switch(config)#vtppassword/设置发vtp密码

switch(config)#vtpmodeserver/设置发vtp模式

switch(config)#vtpmodeclient/设置发vtp模式

交换机设置IP地址:

switch(config)#interfacevlan①;进入vlan①

switch(config-if)#ipaddress;设置IP地址

switch(config)#ipdefault-gateway;设置默认网关

switch#dirflash:;查看闪存

交换机显示命令:

switch#write/保存配置信息

switch#showvtp/查看vtp配置信息

switch#showrun/查看当前配置信息

switch#showvlan/查看vlan配置信息

switch#showinterface/查看端口信息

switch#showintf⓪/⓪/查看指定端口信息

补充:③层交换机多出的就是路由能力,体现在vlan的互相通信功能和端口的路由能力

下面介绍:

开启路由功能:iprouting进入vlan配置网段网关与路由配置接口相同

interfacevlan①ip①⑨②.①⑥⑧.①.①②⑤⑤.②⑤⑤.②⑤⑤.⓪

路由配置与路由器配置相同只是把接口换为VLAN+VLAN号,开启接口路由功能,进入接口配置:noswichport

若有想学习的童鞋,还没有安装模拟的,小编为大家推荐①个下载网址:

软件名称:思科路由器模拟软件(Cisco packe tracer)V⑥.①汉化版

软件大小:

编后语:关于《思科交换机配置命令教程?》关于知识就介绍到这里,希望本站内容能让您有所收获,如有疑问可跟帖留言,值班小编第一时间回复。 下一篇内容是有关《reader换成word攻略?reader咋转word》,感兴趣的同学可以点击进去看看。

相关推荐

玩家点评

条评论

热门下载

热点资讯