admin管理员组

文章数量:1532746

2024年6月1日发(作者:)

干货!思科交换机配置命令大全,附配置案例

一、思科交换机基本配置命令

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)#

本文标签: 配置交换机命令