What command can Donna run on her bastion server to collect the source IP address of her host?

Sharpen your skills for the CompTIA Cloud+ (CV0-003) exam. Explore flashcards, multiple choice questions with hints and explanations, ensuring you're well-prepared for success!

The command that can be run on a bastion server to collect the source IP address of the host is ifconfig. This command is commonly used in Unix/Linux environments to view and configure network interface parameters. When executed, ifconfig displays information about all available network interfaces, including their IP addresses, which allows users to identify the source IP address assigned to the server.

Ifconfig provides detailed information about each interface, including the IP address, subnet mask, and other relevant network configuration details. This makes it a suitable choice for obtaining the source IP address.

In contrast, the other commands serve different purposes. For instance, ipconfig is specific to Windows systems and displays similar network configuration information but is not applicable in a Unix/Linux context. The curl command may fetch data from a specified URL or local resources but does not inherently show network configuration details. Netstat is used primarily for network connection statistics and to display active connections but does not directly provide information about the host's IP address.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy