目录
第1章交换机基本配置命令 ...................................................... 1-1
1.1 基本配置命令...................................................................................... 1-1
1.1.1 authentication line ..................................................................................1-1
1.1.2 banner ......................................................................................................1-1
1.1.3 boot img ...................................................................................................1-2
1.1.4 boot startup-config .................................................................................1-2
1.1.5 1-2
1.1.1-3
1.1.7 debug ssh-rver ....................................................................................1-3
2012奥斯卡提名1.1.1-3
1.1.1-4
1.1.10 1-4
1.1.11 end ..........................................................................................................1-4
1.1.1-5
1.1.13 exit ..........................................................................................................1-5
1.1.1-5
1.1.15 hostname ...............................................................................................1-6
1.1.16 1-6
1.1.17 1-6
1.1.18 ip http rver .........................................................................................1-7
1.1.1-7
1.1.1-7
1.1.1-8
1.1.1-8
1.1.1-9
1.1.24 rvice password-encryption ..............................................................1-9
1.1.25 1-9
1.1.1-10
英语四级成绩查询时间1.1.27 sysLocation .........................................................................................1-10
1.1.28 t default ............................................................................................1-10
1.1. 1-11
1.1.30 1-11
1.1.31 show cpu usage .................................................................................. 1-11
1.1.32 show 1-11
1.1.33 show memory usage ..........................................................................1-12
1.1.34 show privilege .....................................................................................1-12
1.1.35 show privilege mode LINE .................................................................1-12
1.1.36 show tcam usage ................................................................................1-13
1.1.37 show temperature ...............................................................................1-13
1.1.39 show version .......................................................................................1-13
1.1.40 urname .............................................................................................1-13
1.1.41 web language ......................................................................................1-14
1.1.1-14
1.1.43 write running-config ...........................................................................1-15 1.2 远程管理 ........................................................................................... 1-15
1.2.1 1-15
1.2.2 1-16
1.2.3 1-16
1.2.4 authentication 1-17
1.2.5 authentication 1-17
1.2.6 authentication 1-17
1.2.7 authentication curityip .....................................................................1-18
1.2.8 authentication curityipv6 .................................................................1-18bulb
1.2.1-19
1.2.10 crypto key clear rsa ............................................................................1-19
1.2.11 1-20
1.2.12 1-20
bureaucrats
1.2.1-20
1.2.14 1-21
1.2.15 1-21
1.2.16 1-22
1.2.17 1-22
1.2.18 ssh-rver host-key .1-22
1.2.19 ssh-rver max-connection ...............................................................1-23
1.2.20 1-23
1.2.21 show 1-23
shanghai airlines
1.2.22 1-23
1.2.23 show 1-24
peco
1.2.24 who .......................................................................................................1-24 1.3 配置交换机的IP地址......................................................................... 1-24
1.3.1 1-24
1.3.2 interface .1-25
1.3.3 ip address ..............................................................................................1-25
1.3.4 ipv6 address ..........................................................................................1-25
1.3.5 ip 1-26
1.3.6 ip dhcp-client enable ............................................................................1-26 1.4 SNMP命令......................................................................................... 1-27
1.4.1 debug snmp mib ...................................................................................1-27
1.4.2 debug snmp kernel ...............................................................................1-27
1.4.3 1-27
1.4.5 .1-28
1.4.6 show 1-29
1.4.7 show snmp group .................................................................................1-29
1.4.8 show 1-29
1.4.9 show 1-30
1.4.10 show 1-30
1.4.11 show 1-30
1.4.12 snmp-rver community ....................................................................1-31
1.4.13 1-32
1.4.14 snmp-rver enable traps ..................................................................1-32
1.4.15 1-32
1.4.16 snmp-rver group .............................................................................1-32
1.4.17 1-33
1.4.18 snmp-rver curityip ......................................................................1-34
1.4.19 snmp-rver curityip ......................................................................1-34
1.4.20 1-35
1.4.21 1-35
1.4.22 1-36
1.5 交换机升级命令 ................................................................................ 1-36
1.5.1 copy(FTP)..........................................................................................1-36
1.5.2 copy(TFTP)........................................................................................1-37
1.5.3 ftp-dir ......................................................................................................1-38
1.5.4 ftp-rver enable ...................................................................................1-39
1.5.5 1-39
1.5.6 1-39
1.5.7 1-40
1.5.8 1-40
1.5.9 tftp-rver enable ..................................................................................1-40
1.5.10 .1-41
1.5.11 1-41第2章集群配置命令................................................................. 2-1
2.1 clear cluster nodes ........................................................................... 2-1
2.2 cluster auto-add ................................................................................ 2-1
2.3 2-1
2.4 2-2
2.5 cluster keepalive interval ................................................................. 2-2
2.6 cluster 2-3
2.7 2-3
2.8 cluster 2-4 2.9 cluster . 2-4 2.10 2-5 2.11 cluster 2-5 2.12 2-6 2.13 debug cluster packets .................................................................... 2-6 2.14 show cluster .................................................................................... 2-7 2.15 show 2-8 2.16 show
....................................... 2-9 2.17 show 2-9 2.18 2-11 2.19 2-12
第1章交换机基本配置命令
1.1 基本配置命令
1.1.1 authentication line
命令:authentication line {console | vty | web} login {local | radius| tacacs} no authentication line {console | vty | web} login
功能:配置VTY(即指Telnet和ssh登录方式)、Web和Console方式对登录用户的验证方式和验证选择优先级;该命令的no命令恢复缺省验证方式。
缺省情况:缺省Console登陆方式为没有任何登录验证,缺省VTY与Web登录方式默认为本地验证。
命令模式:全局配置模式。
使用指南:Console、VTY与Web登录可以分别设置相应的登录验证方法,其验证方式可以选择Local、RADIUS和TACACS的任意组合。当采用组合验证方式时,在最前面的验证方式优先级最高,并依次递减;如果高优先级方式验证通过,则直接允许用户登陆,并忽略后面的验证方式。需要注意的是:只要有一种验证方式验证通过,用户就可以登陆。当使用RADIUS验证时,必须使能AAA功能并配置RADIUS服务器。
authentication line console login命令与login命令互斥。authentication line console login命令配置Console的登录验证方法,而login命令使能password命令配置的Console 登录验证。
即使配置了本地选项,如果没有配置任何本地用户,Console方式可以直接登录交换机。举例:配置Telnet和ssh登录的验证方式为Local和RADIUS。hook
Switch(config)#authentication line vty login local radius
相关命令:aaa enable,radius-rver authentication host,tacacs-rver authentication host,tacacs-rver key
1.1.2 banner
命令:banner motd <LINE>
no banner motd
功能:该命令用来配置使用telnet或通过console等方式登陆交换机认证成功时显示的欢迎信息,本命令的no操作设置认证成功时不显示信息。
参数:<LINE>:用户认证成功时显示的欢迎信息,长度限制为1-100个字符。isbn是什么意思
命令模式:全局配置模式。
缺省情况:缺省认证成功时不显示欢迎信息。
举例:Switch(config)#banner motd Welcome
1.1.3 boot img
命令:boot img <img-file-url> {primary | backup}
功能:配置交换机下次启动时的第一、第二img文件。
参数:primary表示配置第一启动IMG文件,backup表示配置第二启动IMG文件,<img-file-url>为启动IMG文件全路径。IMG文件全路径的格式要求如下:
1.文件路径由相当于根目录的设备前缀(flash:/)、子目录、和文件名三部分组成。每一部分内不允许有空格存在,每两部分之间也不允许有空格存在。
2.文件名必须以.img为后缀。
3. 文件全路径不能超过128个字符,文件名部分不能超过80个字符。
命令模式:特权用户配置模式。
缺省情况:出厂配置时只有第一启动IMG文件,即FLASH中的nos.img文件。第二启动IMG文件为空。
使用指南:第一、第二img文件必须是交换机上存储的.img文件。
举例:设置交换机下次启动的第二启动IMG文件为flash:/nos.img。
Switch#boot img flash:/nos.img backup
1.1.4 boot startup-config
命令:boot startup-config {NULL | <file-url> }
功能:配置交换机下次启动的CFG文件。
google英语翻译
参数说明:NULL 关键字表示下次启动时以出厂缺省配置来启动。当配置下次启动的CFG 文件为NULL时相当于执行t default 和write 两条命令。<file-url> 为下次启动的CFG 文件全路径。CFG文件全路径的格式要求如下:
1. 路径由相当于根目录的设备前缀(flash:/)、子目录、和文件名三部分组成,每一部分内及每两部分之间不允许有空格存在。
2. 配置文件必须以.cfg为后缀。
3. 文件全路径不能超过128个字符,文件名部分不能超过80个字符。
命令模式:特权用户配置模式。
缺省情况:无。初2英语
使用指南:配置交换机下次启动时的CFG文件必须是交换机上存储的.cfg 文件。
举例:设置交换机下次启动的CFG文件为flash:/ startup.cfg。
Switch# boot startup-config flash:/ startup.cfg
1.1.5 clock t