2024年4月7日发(作者:)
交换机的常用操作项
1、 更改主机名
switch(config)#hostname sw1
2、 设置进入特权模式的密码
switch(config)#enable password 1234
switch(config)#enable secret cisco
3、 设置console口密码
switch(config)#line console 0
switch(config-line)#password 123
switch(config-line)#login
4、 查看mac地址列表
switch#show mac-address-table
5、 查看mac地址列表刷新时间
switch#show mac-address-table aging-time
6、 更改mac地址列表刷新时间
switch(config)#mac-address-table aging-time 200
7、 查看当前配置(RAM)
switch#show running-config
8、 查看交换机的配置(NVRAM)
switch#show startup-config
9、 保存配置
switch#copy running-config startup-config
switch#write
10、 恢复出厂默认设置
switch#erase startup-config
switch#reload
11、 查看cdp的全局信息
switch#show cdp
12、 查看接口的cdp配置信息
switch#show cdp interface f0/2
13、 查看有关cdp包的统计信息
switch#show cdp traffic
14、 查看邻居信息
switch#show cdp neighbors
15、 查看所有入口项的详细信息
switch#show cdp neighbors detail
switch#show cdp entry *
16、 添加接口的描述信息
switch(config-if)# description connection to routerA
17、 设置交换机的网关
switch(config)#ip default-gateway 192.168.1.1
18、 关掉DNS解析
switch(config)# no ip domain-lookup
19、 实现交换机的远程管理


发布评论