ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 198 - 220-1102 discussion

Report
Export

A technician needs to manually set an IP address on a computer that is running macOS. Which of the following commands should the technician use?

A.
ipconfig
Answers
A.
ipconfig
B.
ifconfig
Answers
B.
ifconfig
C.
arpa
Answers
C.
arpa
D.
ping
Answers
D.
ping
Suggested answer: B

Explanation:

ifconfig is a command-line utility that allows you to configure network interfaces on macOS and other Unix-like systems1. To set an IP address using ifconfig, you need to know the name of the network interface you want to configure (such as en0 or en1), and the IP address you want to assign (such as 192.168.0.150). You also need to use sudo to run the command with administrative privileges2. The syntax of the command is:

sudo ifconfig interface address

For example, to set the IP address of en1 to 192.168.0.150, you would type:

sudo ifconfig en1 192.168.0.150

You may also need to specify other parameters such as subnet mask, gateway, or DNS servers, depending on your network configuration3. The other commands are not directly related to setting an IP address on macOS. ipconfig is a similar command for Windows systems4, arpa is a domain name used for reverse DNS lookup, and ping is a command for testing network connectivity.

asked 02/10/2024
Tuan Nguyen
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first