역방향 조회를 끄고 정방향 조회를 유지하는 방법이 있습니까?
요약:
no domain-lookup
아래에서 사용 line vty 0 4
...
세부:
맞습니다. 기본 동작은 show 명령에서 주소에 대한 정방향 / 역방향 조회를 수행하고 캐시하는 것입니다. 이 구성은 당신과 비슷하게 시작됩니다 ...
기준 동작 : 정방향 / 역방향 조회
HotCoffee#clear host *
HotCoffee#sh runn | i ip domain|ip name|^ +domain|NTP
Time source is NTP, 06:10:42.327 CDT Tue Aug 13 2013
ip domain name pennington.net
ip name-server 172.16.1.5
domain-name pennington.net
HotCoffee#
호스트 캐시를 지운 후에는 항목이 없습니다 ...
HotCoffee#show host
Load for five secs: 0%/0%; one minute: 1%; five minutes: 1%
Time source is NTP, 06:11:46.864 CDT Tue Aug 13 2013
Default domain is pennington.net
Name/address lookup uses domain service
Name servers are 172.16.1.5
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined
Host Port Flags Age Type Address(es)
HotCoffee#
호스트 캐시를 수행 show user
하거나 ping
호스트 캐시를 채우는 중 ...
HotCoffee#sh user
Line User Host(s) Idle Location
* 66 vty 0 cisco idle 00:00:00 tsunami.pennington.net
Interface User Mode Idle Peer Address
HotCoffee#ping flame
Translating "flame"...domain server (172.16.1.5)
Translating "flame"...domain server (172.16.1.5) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/2/4 ms
HotCoffee#
이제 ping
대상과 호스트 모두에 대한 호스트 항목이 있습니다 show user
.
HotCoffee#sh hosts
Load for five secs: 1%/0%; one minute: 0%; five minutes: 0%
Time source is NTP, 06:16:32.811 CDT Tue Aug 13 2013
Default domain is pennington.net
Name/address lookup uses domain service
Name servers are 172.16.1.5
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined
Host Port Flags Age Type Address(es)
tsunami.pennington.net None (temp, OK) 0 IP 172.16.1.5
flame.pennington.net None (temp, OK) 0 IP 172.16.1.1
flame None (temp, UN) 0 IPv6
HotCoffee#
솔루션 : 정방향 조회 만
no domain-lookup
vty / console 행에서 IOS 동작을 정방향 조회로만 제한 하려면 사용하십시오 .
HotCoffee#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HotCoffee(config)#line vty 0 4
HotCoffee(config-line)#no domain-lookup
HotCoffee(config-line)#end
HotCoffee#
먼저 깨끗한 테스트를 위해 호스트 캐시를 지 웁니다 ...
HotCoffee#clear host *
HotCoffee#
HotCoffee#
show user
이전에는 호스트 캐시를 채우는 것뿐만 아니라 172.16.1.5에서 역방향 조회를 수행했지만 현재는 발생하지 않습니다 ...
HotCoffee#sh user
Load for five secs: 1%/0%; one minute: 0%; five minutes: 0%
Time source is NTP, 06:20:00.250 CDT Tue Aug 13 2013
Line User Host(s) Idle Location
* 66 vty 0 cisco idle 00:00:00 172.16.1.5 <----
Interface User Mode Idle Peer Address
HotCoffee#
HotCoffee#sh host
Load for five secs: 2%/0%; one minute: 0%; five minutes: 0%
Time source is NTP, 06:20:06.729 CDT Tue Aug 13 2013
Default domain is pennington.net
Name/address lookup uses domain service
Name servers are 172.16.1.5
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined
Host Port Flags Age Type Address(es)
<----
HotCoffee#
정방향 조회가 여전히 작동한다는 것을 보여주기 위해 ...
HotCoffee#
HotCoffee#ping flame
Translating "flame"...domain server (172.16.1.5)
Translating "flame"...domain server (172.16.1.5) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
HotCoffee#
HotCoffee#
HotCoffee#
HotCoffee#sh hosts
Load for five secs: 0%/0%; one minute: 0%; five minutes: 0%
Time source is NTP, 06:25:43.237 CDT Tue Aug 13 2013
Default domain is pennington.net
Name/address lookup uses domain service
Name servers are 172.16.1.5
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined
Host Port Flags Age Type Address(es)
tsunami.pennington.net None (temp, OK) 0 IP 172.16.1.5
flame.pennington.net None (temp, OK) 0 IP 172.16.1.1
flame None (temp, UN) 0 IPv6
HotCoffee#