no ip domain-lookup - いちいち確認するのはやめてくれ
ああっ、やってもーた!
タイプミスをした事はない、そんな人はおそらく居ないと思います。
通常のOS では、コマンドを打ち間違えても、警告メッセージが出力されるだけですぐにプロンプトが戻ってきます。
これがCisco のIOS の場合、打ち間違ったコマンドをネームサーバへ問い合わせます。
当然そんな名前はありませんから、いつまで待っても名前は解決されません。
何度も繰り返し、一分以上経った頃、ようやくUnkown Command というメッセージと一緒にプロンプトが戻ってきます。
Router#shwo
Translating "shwo"...domain server (255.255.255.255)
Translating "shwo"...domain server (255.255.255.255)
Translating "shwo"...domain server (255.255.255.255)
(255.255.255.255)% Unknown command or computer name, or unable to find computer address
Router#
no ip domain-lookup を設定してやると、無駄なDNS Lookup を止める事ができます。
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#no ip domain?
domain domain-list domain-lookup domain-name
Router(config)#no ip domain-lookup ?
nsap Enable IP DNS queries for CLNS NSAP addresses
source-interface Specify source interface for DNS resolver
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#no ip domain?
domain domain-list domain-lookup domain-name
Router(config)#no ip domain-lookup ?
nsap Enable IP DNS queries for CLNS NSAP addresses
source-interface Specify source interface for DNS resolver
Router(config)#no ip domain-lookup
Router(config)#^Z
Router#
Router#shwo
Translating "shwo"
Translating "shwo"
% Unknown command or computer name, or unable to find computer address
Router#
ネットワークエンジニアになろう!のトップページへ戻る