01-基础配置命令 缺省 按照格式 alias name= command line显示所有别名 命令模式 管理态或者配置态 使用说明 无 示例 下面的例子用来显示当前系统中所有的别名 Router config# show alias hualab=date 相关命令 alias 1.2.18 show tech-support 本命令用来显示系统部分重要的信息 show tech-support 参数 无 缺省 无 命令模式 管理态或者配置态
01-基础配置命令 缺省 按照格式 alias name=command line 显示所有别名。 命令模式 管理态或者配置态 使用说明 无 示例 下面的例子用来显示当前系统中所有的别名 Router_config# show alias hualab=date router=snmp 相关命令 alias 1.2.18 show tech – support 本命令用来显示系统部分重要的信息。 show tech – support 参数 无 缺省 无 命令模式 管理态或者配置态 - 22 -
01-基础配置命令 使用说明 显示系统部分重要的信息,通常在技术支持时需要收集执行该命令后的信息。 1.3HTTP配置命令 HTTP配置命令包括: iphttpaccess-class iphttpport iphttpserver 1.3.1iphttpaccess-class 为了确保接受指定的HTTP请求,使用iphttpaccess-class命令。 iphttpaccess-classstring noiphttpaccess 参数 参数 参数说明 string 所指定的标准访问列表名 命令模式 全局配置态 使用说明 使用本命令之前先设置所要指定的标准访问列表 no用来取消该访问列表对HTTP服务请求的限制 示例 routerconfigipaccess-liststandardhttp-acl router config std nacl# permit 192.2.2 37 255.255.255.0 router config std nacl# exit routerconfigiphttpaccess-classhttp-acl
01-基础配置命令 使用说明 显示系统部分重要的信息,通常在技术支持时需要收集执行该命令后的信息。 1.3 HTTP配置命令 HTTP 配置命令包括: z ip http access-class z ip http port z ip http server 1.3.1 ip http access-class 为了确保接受指定的 HTTP 请求,使用 ip http access-class 命令。 ip http access-class string no ip http access 参数 参数 参数说明 string 所指定的标准访问列表名。 命令模式 全局配置态 使用说明 使用本命令之前先设置所要指定的标准访问列表 no 用来取消该访问列表对 HTTP 服务请求的限制。 示例 router_config# ip access-list standard http-acl router_config_std_nacl# permit 192.2.2.37 255.255.255.0 router_config_std_nacl# exit router_config# ip http access-class http-acl - 23 -
01-基础配置命令 相关命令 iphttpserver 1.3.2iphttpport 使用iphttpprot配置命令来指定。 iphttpportnumber 参数 参数 参数说明 http服务的服务端口 缺省 浏览器默认的HTTP服务端口号80。 命令模式 全局配置态 使用说明 httpport命令执行以后,若htp服务已启动,首先关闭原侦听端口,再使用指定的端口 (若该端口未被占用)来接受http服务请求:但若http服务未启动,则此命令(暂时) 对其没有影响。 下面的例子把http服务端口从缺省的80改为90。 routerconfigiphttpserver routerconfigiphttpport90 相关命令 iphttpaccess-class iphttpserver
01-基础配置命令 相关命令 ip http server ip http port 1.3.2 ip http port 使用 ip http prot 配置命令来指定。 ip http port number 参数 参数 参数说明 number http服务的服务端口 缺省 浏览器默认的 HTTP 服务端口号 80。 命令模式 全局配置态 使用说明 http port 命令执行以后,若 http 服务已启动,首先关闭原侦听端口,再使用指定的端口 (若该端口未被占用)来接受 http 服务请求;但若 http 服务未启动,则此命令(暂时) 对其没有影响。 示例 下面的例子把 http 服务端口从缺省的 80 改为 90。 router_config# ip http server router_config# ip http port 90 相关命令 ip http access-class ip http server - 24 -
01-基础配置命令 1.3.3iphttpserver 为了启动HTTP服务,使用iphttpserver执行命令 iphttpserver noiphttpserver 参数 无 命令模式 全局配置态 使用说明 使用本命令可以路由器在指定的端口接受HTP服务请求,处理该请求并向浏览器返回处 理结果。 示例 routerconfigiphttpserver 相关命令 iphttpaccess-class iphttppor
01-基础配置命令 1.3.3 ip http server 为了启动 HTTP 服务,使用 ip http server 执行命令。 ip http server no ip http server 参数 无 命令模式 全局配置态 使用说明 使用本命令可以路由器在指定的端口接受 HTTP 服务请求,处理该请求并向浏览器返回处 理结果。 示例 router_config# ip http server 相关命令 ip http access-class ip http port - 25 -
01-基础配置命令 第2章终端服务配置命令 21 Tele配置命令 Telnet配置命令包括: telnet ctrI-shift-6+x where ● disconnect resume switche ● switchs sequence-char clear telnet show telnet g 2.1.1 telnet 建立 telnet会话的命令格式如下 telnet server-ip-addr/server-host-name [port port][source- interface interface][local loca-ip-addrd [debugllecholnoecho][script scriptname][ts-block /ts-discard] 参数 参数说明 server-ip-addr 远端服务器以点分十进制表示的IP地址 server-host-name 远端服务器的主机名,需先用 lip host命令进行配置 远端服务器提供 telnet服务的端口 发起 telnet连接的本地接口。 发起tene连接的本地IP地址
01-基础配置命令 第2章 终端服务配置命令 2.1 Telnet配置命令 Telnet 配置命令包括: z telnet z ip telnet z ctrl-shift-6+x z where z disconnect z resume z switchkey z switchmsg z sequence-char z clear telnet z show telnet z debug telnet 2.1.1 telnet 建立 telnet 会话的命令格式如下: telnet server-ip-addr/server-host-name [/port port][/source-interface interface] [/local local-ip-addr] [/debug][echo/noecho] [/script scriptname] [/ts-block | /ts-discard] 参数 参数 参数说明 server-ip-addr 远端服务器以点分十进制表示的IP地址。 server-host-name 远端服务器的主机名,需先用ip host命令进行配置。 port 远端服务器提供telnet服务的端口。 interface 发起telnet连接的本地接口。 local-ip-addr 发起telnet连接的本地IP地址。 - 26 -