路由器使用DNS服务器来解析主机名

  发布时间:2010-09-07 23:47:57   作者:佚名   我要评论
  Router1#configure terminal   Enter configuration commands, one per line. End with CNTL/Z.   Router1(config)#ip domain-lookup   Router1(config)#ip domain-name oreilly.com   Router1(config)#ip name-server 172.25.1.1   R
  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#ip domain-lookup

  Router1(config)#ip domain-name oreilly.com

  Router1(config)#ip name-server 172.25.1.1

  Router1(config)#ip name-server 10.1.20.5

  Router1(config)#end

  Router1#

  注释 从IOS 12.2开始,思科使用了ip domain lookup.来代替ip domain-lookup 类似的ip domain-name被ip domain name 代替

相关文章

最新评论