admin 管理员组文章数量: 1086019
2024年4月28日发(作者:splotch)
干货!思科交换机配置命令大全,附配置案例
一、思科交换机基本配置命令
1
switch> enable
switch#
2
switch> enable
switch#configure terminal
switch(conf)#
3
switch> enable
switch#configure terminal
switch(conf)#hostname aptch-2950
aptech2950(conf)#
4
switch> enable
switch#configure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# enable password cisco
5
switch> enable
switch#configure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# enable secret ciscolab
6
1、创建多个VLAN
Switch>enable (进入特权模式)
Switch#vlan data (进入vlan配置模式)
Switch(vlan)#vlan 10 name IT (划分vlan10,名称为IT)
Switch(vlan)#vlan 20 name HR (划分vlan20,名称为HR)
Switch(vlan)#vlan 30 name FIN (划分vlan30,名称为FIN)
Switch(vlan)#vlan 40 name LOG (划分vlan40,名称为LOG)
Switch(vlan)#exit
7
switch> enable
switch#configure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# interface vlan 1
aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口 ip
和子网掩码
aptech2950(conf-if)#no shut 是配置处于运行中
aptech2950(conf-if)#exit
aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址
8 17
switch> enable
switch#configure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# interface fastehernet 0/17
aptech2950(conf-if)#
版权声明:本文标题:干货!思科交换机配置命令大全,附配置案例 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1714271159a672785.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论