最新消息:新席地网:网页制作,360度全景摄影,微信营销推广,详情见:新席地网xxidi.com,电话:13913571631

思科cisco 命令整理(3750)

时事 admin 335浏览 0评论

1、进入模式


en

conf t

2、查看状态


show run

3、查看端口状态


show ip int brief 

 

4、查看VLAN状态

 show vlan 

5、端口从down到up状态改变

 
config# interface GigabitEthernet1/0/15
# shut down
这条命令就是 关闭15端口
config# Int port 15
# no shut down
这条命令就是 开启15端口
 

6、从VLAN删除端口,从名称为VLAN 125的删除14端口,特权模式.

 

cisco3750#conf t
Enter configuration commands, one per line. End with CNTL/Z.

cisco3750(config)#interface GigabitEthernet1/0/14
cisco3750(config-if)#sw
cisco3750(config-if)#switchport acc
cisco3750(config-if)#no switchport access vlan 125
cisco3750(config-if)#exit
cisco3750(config)#exit

<br data-mce-bogus="1">

7、保存命令

 
Switch>en 
Switch#write  

8、查看VLAN

 show vlan 

9、备份思科3750交换机flash配置文件,

下载:思科TFTP服务器CiscoTFTP 官方版 ,192.168.126.2为TFTP服务器的IP地址。

 
cisco3750#dir
Directory of flash:/

2 -rwx 1938 May 10 1993 22:05:08 +00:00 private-config.text
 3 -rwx 736 May 8 1993 04:27:22 +00:00 vlan.dat
 4 -rwx 3096 May 10 1993 22:05:08 +00:00 multiple-fs
 5 -rwx 2627 May 10 1993 22:05:08 +00:00 config.text
 6 drwx 512 Mar 1 1993 00:08:48 +00:00 c3750e-universalk9-mz.122-55.SE10

57671680 bytes total (38052352 bytes free)
cisco3750#cd c3750e-universalk9-mz.122-55.SE10
cisco3750#dir
Directory of flash:/c3750e-universalk9-mz.122-55.SE10/

7 -rwx 14609191 Mar 1 1993 00:05:45 +00:00 c3750e-universalk9-mz.122-55.SE10.bin
 8 -rwx 491 Mar 1 1993 00:07:08 +00:00 info
 9 drwx 5632 Mar 1 1993 00:07:09 +00:00 html
 513 -rwx 1024000 Mar 1 1993 00:07:53 +00:00 pucode_bundle.dat

57671680 bytes total (38052352 bytes free)
cisco3750#copy flash tftp
Source filename [/c3750e-universalk9-mz.122-55.SE10/config.text]? c3750e-universalk9-mz.122-55.SE10.bin
Address or name of remote host []? 192.168.126.2
Destination filename [c3750e-universalk9-mz.122-55.SE10.bin]? c3750e-universalk9-mz.122-55.SE10_backup.bin
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14609191 bytes copied in 126.324 secs (115649 bytes/sec)
 

10、备份思科ASA 5515的配置

SUZHOU(config)# copy running-config tftp

Source filename [running-config]?

Address or name of remote host []? 192.168.126.2

Destination filename [running-config]?
Cryptochecksum: 27121540 31788fd4 5aff5575 936adf1e
!!
6108 bytes copied in 3.370 secs (2036 bytes/sec)

 

11、


 

SUZHOU(config)# dir

Directory of disk0:/

210 -rwx 15841428 17:27:52 May 28 2011 asdm-641.bin
75 drwx 4096 00:04:16 Jan 01 2003 log
79 drwx 4096 00:04:26 Jan 01 2003 crypto_archive
211 drwx 4096 00:04:30 Jan 01 2003 coredumpinfo
212 -rwx 13934592 04:44:10 May 30 2012 asa805-k8.bin
214 -rwx 12105313 17:24:22 May 28 2011 csd_3.5.841-k9.pkg
215 drwx 4096 17:24:24 May 28 2011 sdesktop
216 -rwx 2857568 17:24:26 May 28 2011 anyconnect-wince-ARMv4I-2.4.1012-k9.pkg
217 -rwx 3203909 17:24:26 May 28 2011 anyconnect-win-2.4.1012-k9.pkg
218 -rwx 4832344 17:24:30 May 28 2011 anyconnect-macosx-i386-2.4.1012-k9.pkg
219 -rwx 5209423 17:24:32 May 28 2011 anyconnect-linux-2.4.1012-k9.pkg
220 -rwx 3657 06:02:34 May 08 2012 8_2_1_0_startup_cfg.sav
221 -rwx 1190 22:37:14 Feb 09 2012 upgrade_startup_errors_201202092237.log
222 -rwx 1190 00:33:22 Feb 22 2012 upgrade_startup_errors_201202220033.log
223 -rwx 1190 02:40:28 Feb 22 2012 upgrade_startup_errors_201202220240.log
224 -rwx 1190 23:23:06 Mar 06 2012 upgrade_startup_errors_201203062323.log
225 -rwx 260 19:02:42 Mar 07 2012 upgrade_startup_errors_201203071902.log
226 -rwx 1257 06:02:36 May 08 2012 upgrade_startup_errors_201205080602.log
227 -rwx 260 07:20:46 May 08 2012 upgrade_startup_errors_201205080720.log

255320064 bytes total (195219456 bytes free)
SUZHOU(config)# copy flash tftp

Source filename []? asa805-k8.bin

Address or name of remote host []? 192.168.126.2

Destination filename [asa805-k8.bin]?

Writing file tftp://192.168.126.2/asa805-k8.bin...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

13934592 bytes copied in 70.630 secs (199065 bytes/sec)

https://blog.csdn.net/weixin_40449300/article/details/80787874

1.show interface gi1/0/1
可以查询接口状态,接口的MAC,接口的双工,速率,接口当前收到和传输的速率,是否收发数据包有错误等。
CISCO交换机常见接口查询相关命令
2.show run interface gi1/0/1
可以查看接口的完整配置
CISCO交换机常见接口查询相关命令
3.shw interface summary
可以查看交换机所有接口的流量状况,在定位异常流量突发时非常有用。
CISCO交换机常见接口查询相关命令

 

 

 

 

 



分享到: 更多

转载请注明:梦寻天涯的博客 » 思科cisco 命令整理(3750)

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址