000-221 · Question #180
An administrator noticed that the hostname is being resolved incorrectly after setting up TCP/IP on multiple interfaces. Further inspection shows the /etc/hosts file has duplicate entries for the…
The correct answer is B. The administrator ran smitty mktcpip on multiple interfaces. When smitty mktcpip is run on multiple interfaces, AIX adds the hostname to /etc/hosts for each interface with its respective IP, creating duplicate hostname entries.
Question
An administrator noticed that the hostname is being resolved incorrectly after setting up TCP/IP on multiple interfaces. Further inspection shows the /etc/hosts file has duplicate entries for the hostname associated with different IP addresses. Which of the following is most likely the cause of this situation?
Options
- AIPv6 is in use and requires a hostname for every interface.
- BThe administrator ran smitty mktcpip on multiple interfaces.
- CThe DNS configuration has multiple separate DNS servers listed.
- DAn EtherChannel was setup using 2 network interfaces as primary adapters.
How the community answered
(35 responses)- A17% (6)
- B71% (25)
- C9% (3)
- D3% (1)
Why each option
When smitty mktcpip is run on multiple interfaces, AIX adds the hostname to /etc/hosts for each interface with its respective IP, creating duplicate hostname entries.
IPv6 does not require a unique hostname entry per interface; link-local and global addresses are handled through separate IPv6 mechanisms, not /etc/hosts duplicates.
The smitty mktcpip command on AIX configures TCP/IP for a single interface and, as part of that process, writes the hostname and the interface IP into /etc/hosts. Running it on multiple interfaces causes each invocation to append an entry for the same hostname but with a different IP address, producing conflicting duplicates in /etc/hosts.
Listing multiple DNS servers affects DNS resolution order but does not write or modify entries in the local /etc/hosts file.
EtherChannel (Link Aggregation) configuration combines physical adapters at the network level and does not interact with or modify /etc/hosts entries.
Concept tested: AIX smitty mktcpip effect on /etc/hosts
Source: https://www.ibm.com/docs/en/aix/7.2?topic=m-mktcpip-command
Topics
Community Discussion
No community discussion yet for this question.