exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 5 question 2 discussion

Actual exam question from CompTIA's LX0-104
Question #: 2
Topic #: 5
[All LX0-104 Questions]

SIMULATION -
Which command is used to manually assign an IP address to a network interface? (Specify ONLY the command without any path or parameters.)

Show Suggested Answer Hide Answer
Suggested Answer: ifconfig -or- /sbin/ifconfig -or- ip -or- /sbin/ip

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
The ifconfig command can be used to manually assign an IP address to a network interface in some Unix-like systems (e.g., Linux, macOS, BSD). For example, to assign the IP address 192.168.0.100 to the interface eth0, you can use the following command: ifconfig eth0 192.168.0.100 Note that this method of assigning an IP address is temporary and will be lost upon rebooting the system. To make the IP address assignment permanent, you would typically add the command to your network configuration file, such as /etc/network/interfaces on a Debian-based system, or /etc/sysconfig/network-scripts/ifcfg-eth0 on a Red Hat-based system.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago