admin 管理员组

文章数量: 1184232


2024年3月26日发(作者:easyui下载完以后如何安装)

操作思科交换机

用户模式

Switch>

特权模式

Switch>en

Switch#

全局模式

Switch#conf t

Switch(config)#

端口模式

Switch(config)#int GigabitEthernet 0/1

Switch(config-if)#

enable,简写en(我们的ACS代填了,一般用不到),进入特权模式

configure terminal,简写conf t,进入全局模式

exit

end

no,no shutdown

举例: 删除配置switchport access vlan 20

no switchport access vlan 20

hostname 6#

vlan 20

vlan 188-201,203,205

int range gigabitEthernet 0/1-23 , gigabitEthernet 0/28

interface GigabitEthernet0/1

switchport mode access

switchport access vlan 20

switchport voice vlan 40

switchport port-security

switchport port-security violation protect

switchport port-security mac-address sticky

switchport port-security maximum 3

ip access-group 100 in 或

ip access-group ACL_SNBC in

Switch(config)#default int GigabitEthernet0/1

interface GigabitEthernet0/1

switchport trunk encapsulation dot1q (2960交换机不用配这

switchport mode trunk

特权模式执行show running-config,简写sh run

show vlan

show ip int brief

特权模式执行write memory

或 copy running-config startup-config

XZ_1.8(config)#archive

XZ_1.8(config-archive)#path tftp://192.168.28.49/$h-

$h=自动备份配置的文件名使用物理设备名字

XZ_1.8(config-archive)#write-memory

触发备份:当手动输入write时 自动触发备份配置

XZ_1.8(config-archive)#time-period 10080

自动备份:每隔10080分钟(每周)自动备份一次配置

模式说明

模式切换

修改主机名

创建VLAN

批量创建VLAN

批量配置端口

Access口配置

语音VLAN

端口绑定

ACL应用

清空端口配置

Trunk口配置

查看命令

保存配置

自动备份配置

默认路由配置

静态路由配置

Switch(config)#ip default-gateway 172.16.1.9

ip route 0.0.0.0 0.0.0.0 172.16.1.9

SW(config)# line console 0

SW(config-line)# login

SW(config-line)# password Lisbon

SW(config)# username student password cisco

本地Con 0管理

SW(config)# line console 0

SW(config-line)# login local

—————————————————————————————

——

logging synchronous 当你正在输入命令,CONSOLE台这个时候弹

出了些信息,就把你的命令打断了。输入logging synchronous后就

line vty 0 4

privilege level 15

password xiaowanzi

login

远程VTY

#erase start-config

#delete

清空交换机配置

#reload

然后选no


本文标签: 配置 模式 备份 自动 特权