【思唯网络】路由器交换机基础配置3—undo命令行的使用
首页 > >   作者:浙江思唯网络  2020年1月16日 18:11 星期四  字号:   评论:0 条
时间:2020-1-16 18:11   评论:0 条 





在命令前加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 style="overflow-wrap: break-word; margin: 5px 0px; color: rgb(0, 0, 0); font-family: "sans serif", tahoma, verdana, helvetica; font-size: 12px;               ">      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 style="overflow-wrap: break-word; margin: 5px 0px; color: rgb(0, 0, 0); font-family: "sans serif", tahoma, verdana, helvetica; font-size: 12px;               ">      The current login time is 2012-06-09 04:52:10.

<HUAWEI>


目前CCIE RS 笔试和LAB 稳定,持续过人中,了解之前的PASS情况和咨询考试情况


请加QQ: 839898248  VX:Ciscolnfinity  关注微信公众号:思唯网络



    


思唯学习指导老师.jpg



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

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