加载中…
个人资料
Hongbo_Yin
Hongbo_Yin
  • 博客等级:
  • 博客积分:0
  • 博客访问:291
  • 关注人气:1
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

no ip domain-lookup 的使用

(2016-03-10 18:50:41)
标签:

ccna

cisco

domain-lookup

分类: 思科路由器和交换机
当我们在Console输入错误的命令后,会是这样的一个结果

Router#confg
Translating "confg"...domain server (255.255.255.255)
 (255.255.255.255)
Translating "confg"...domain server (255.255.255.255)

% Bad IP address or host name
% Unknown command or computer name, or unable to find computer address
Router#

因为没有这个命令,所以路由器去尝试连接DNS服务器进行域名解析。
对于经常容易输入错误命令的用户来说,这个显示会很讨厌,浪费下一步操作的时间。

所以我们必要的时候,可以使用no ip domain-lookup来禁止此功能。

Router>en
Router#conf t
Router(config)#no ip domain-lookup
Router(config)#end

测试效果:

Router#confg
Translating "confg"

Translating "confg"

% Bad IP address or host name
% Unknown command or computer name, or unable to find computer address
Router# 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有