Which command configures a DHCP client on the WAN interface to obtain an IP address via DHCP?

Study for the MTCNA Foundation Exam. Prepare with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your certification!

Multiple Choice

Which command configures a DHCP client on the WAN interface to obtain an IP address via DHCP?

Explanation:
To obtain an IP address on the WAN via DHCP, you must start a DHCP client on the WAN interface. The correct command is to create a new DHCP client instance bound to that interface: /ip dhcp-client add interface=wan. This starts the DHCP negotiation on the WAN side so the router can request an address from the upstream DHCP server. Using add creates a new DHCP client. Using set would only adjust an existing client, which isn’t appropriate if none exists yet. Configuring on the LAN interface would place the DHCP client on the internal network, not the Internet-facing WAN, which is not what you want for upstream addressing. The path /dhcp-client add isn’t valid syntactically in RouterOS; the correct path is /ip dhcp-client add. After applying this, you can verify the assigned IP with commands like /ip address and /ip dhcp-client print.

To obtain an IP address on the WAN via DHCP, you must start a DHCP client on the WAN interface. The correct command is to create a new DHCP client instance bound to that interface: /ip dhcp-client add interface=wan. This starts the DHCP negotiation on the WAN side so the router can request an address from the upstream DHCP server.

Using add creates a new DHCP client. Using set would only adjust an existing client, which isn’t appropriate if none exists yet. Configuring on the LAN interface would place the DHCP client on the internal network, not the Internet-facing WAN, which is not what you want for upstream addressing. The path /dhcp-client add isn’t valid syntactically in RouterOS; the correct path is /ip dhcp-client add.

After applying this, you can verify the assigned IP with commands like /ip address and /ip dhcp-client print.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy