路由器交换机基础配置3—undo命令行的使用
首页 > HuaWei > 基础配置   作者:浙江思唯网络  2015年10月16日 12:14 星期五  字号:   评论:0 条
时间:2015-10-16 12:14   评论:0 条 

路由器交换机基础配置3undo命令行的使用

 

在命令前加undo关键字,即为undo命令行。

undo命令行一般用来恢复缺省情况、禁用某个功能或者删除某项配置。几乎每条配置命令都有对应的undo命令行。

下面给出使用undo命令行的示例供参考:

1、使用undo命令行恢复缺省情况

sysname命令是用来设置设备的主机名。

举例如下:

<HUAWEI> system-view

[HUAWEI] sysname Server

[Server] undo sysname

[HUAWEI]

2、使用undo命令禁用某个功能

ftp server enable命令是用来开启设备的FTP服务器功能。

举例如下:

<HUAWEI> system-view

[HUAWEI] ftp server enable

Warning: FTP is not a secure protocol, and it is recommended to use SFTP.

Info: Succeeded in starting the FTP server.

[HUAWEI] undo ftp server

Info: Succeeded in closing the FTP server.

3、使用undo命令删除某项设置

header命令是用来设置用户登录设备时终端上显示的标题信息。

举例如下:

<HUAWEI> system-view

[HUAWEI] header login information "Hello,Welcome to

Huawei!"

退出设备后重新登录,在验证用户前,会出现“Hello,Welcome to Huawei!”,然后执行相应的undo header login命令:

Hello,Welcome to Huawei!

Login authentication

Password:

Info: The max number of VTY users is 20, and the number

      of current VTY users on line is 5.

      The current login time is 2012-06-09 04:46:00.

<HUAWEI> system-view

[HUAWEI] undo header login

再次退出设备后重新登录,在验证用户前,则不会出现任何标题信息:

Login authentication

Password:

Info: The max number of VTY users is 20, and the number

      of current VTY users on line is 5.

      The current login time is 2012-06-09 04:52:10.

<HUAWEI>

 您阅读这篇文章共花了: 
二维码加载中...
技术交流:欢迎在本文下方留言或加入QQ群:859273036 互相学习。     
本文地址:http://www.023wg.com/jcpz/28.html
版权声明:若无注明,本文皆为“Swiers思唯网络博客”原创,转载请保留文章出处。

返回顶部    首页   
版权所有:Swiers思唯网络博客    浙江思唯网络