Suggested Answer:A🗳️
If we want to get an IP address from the DHCP server on a Cisco device, we can use the command ג€ip address dhcpג€. Note: The command ג€ip helper-addressג€ enables a router to become a DHCP Relay Agent.
Correct Answer: B
"You must configure the ip dhcp client commands before entering the ip address dhcp command on an interface to ensure that the DHCPDISCOVER messages that are generated contain the correct option values."
I was really confused for a bit, but the answer is A. The snippet in the previous comment is only part of the statement. You ONLY need to configure "ip dhcp client" commands before "ip add dhcp" IF you want them to be enabled right away. It doesn't mean that you actually NEED to use "ip DHCP client" commands. In otherwords, you don't NEED option values to enable DHCP on the interface.
"The ip dhcp client commands are checked only when an IP address is acquired from DHCP. If any of the ip dhcp client commands are entered after an IP address has been acquired from DHCP, it will not take effect until the next time the router acquires an IP address from DHCP. This means that the new configuration will take effect only after either the ip address dhcp command or the release dhcp and renew dhcpEXECcommandshave been configured."
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-4/dhcp-12-4-book/config-dhcp-client.html
Before You Begin
You must configure the ip dhcp client commands before entering the ip address dhcp command on an interface to ensure that the DHCPDISCOVER messages that are generated contain the correct option values. The ip dhcp client commands are checked only when an IP address is acquired from DHCP. If any of the ip dhcp client commands are entered after an IP address has been acquired from DHCP, it will not take effect until the next time the router acquires an IP address from DHCP. This means that the new configuration will take effect only after either the ip address dhcp command or the release dhcp and renew dhcpEXECcommandshave been configured.
according to your link, ip dhcp client must be confugured before ip address dhcp to be able to configured.
A is the right answer. ip dhcp address makes the router become a dhcp client. ip dhcp client is needed to enable some parameters which makes the router(dhcp client) function properly.
Correct Answer: A
The command that makes the client send DCHP REQUEST to get an IP address from a DHCP server is "ip address dhcp", so it is the one that enables DHCP on an interface. .
"ip dhcp client" defines parameters used by the client to ask the address, for example the client id,hostname, lease time among others.
It is good practice to define the client parameters before the client requests the address.
Before You Begin
You must configure the ip dhcp client commands before entering the ip address dhcp command on an interface to ensure that the DHCPDISCOVER messages that are generated contain the correct option values. The ip dhcp client commands are checked only when an IP address is acquired from DHCP. If any of the ip dhcp client commands are entered after an IP address has been acquired from DHCP, it will not take effect until the next time the router acquires an IP address from DHCP. This means that the new configuration will take effect only after either the ip address dhcp command or the release dhcp and renew dhcpEXECcommandshave been configured.
Correct is A!
Configuring the DHCP Client
Cisco devices running Cisco software include the Dynamic Host Configuration Protocol (DHCP) server and relay agent software, which are enabled by default. Your device can act as both the DHCP client and the DHCP server. Use the ip address dhcp command to obtain IP address information for the configured interface.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. ip address dhcp
5. end
6. debug dhcp detail
7. debug ip dhcp server packets
I can confirm this. ISR4331 Router in Cisco Packet Tracer shows:
Router(config)#ip dhcp ?
excluded-address Prevent DHCP from assigning certain addresses
pool Configure DHCP address pools
relay DHCP relay agent parameters
Router(config)#int g0/0/0
Router(config-if)#ip ?
access-group Specify access control for packets
address Set the IP address of an interface
authentication authentication subcommands
flow NetFlow Related commands
hello-interval Configures IP-EIGRP hello interval
helper-address Specify a destination address for UDP broadcasts
mtu Set IP Maximum Transmission Unit
nat NAT interface commands
ospf OSPF interface commands
proxy-arp Enable proxy ARP
split-horizon Perform split horizon
summary-address Perform address summarization
Router(config-if)#ip address ?
A.B.C.D IP address
dhcp IP Address negotiated via DHCP
Router(config-if)#ip address dhcp ?
<cr>
Correct Answer is A, Use the ip address dhcp command to obtain IP address information for the configured interface.
ip dhcp client client-id {interface-name| ascii string| hex string}
ip dhcp client class-id {string| hex string}
ip dhcp client lease days [hours][minutes]
ip dhcp client hostname host-name
[no] ip dhcp client request option-name
ip address dhcp
Note: There is no command ip dhcp client without client-ID, class-ID, Hostname, request and lease.
IP DHCP CLIENT is not a full command it has many options such as
(config-if)# ip dhcp client class-id my-class-id
or
(config-if)# ip dhcp client lease 2
or
(config-if)# ip dhcp client hostname router1
or
(config-if)# no ip dhcp client request tftp-server-address
these are examples of the full commands for the ip dhcp client and all of them are optional commands.
Source
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-4/dhcp-12-4-book/config-dhcp-client.html
correct answer is B, remember A is not wrong but for cisco some answers are more correct than others. A is right but B is more right as you have to configure the ip dhcp client commands before entering ip address dhcp
from the cisco page https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-4/dhcp-12-4-book/config-dhcp-client.html
On the DHCP server, the configuration is as follows:
ip dhcp pool 1
network 10.1.1.0 255.255.255.0
lease 1 6
On the DHCP client, the configuration is as follows on interface E2:
interface Ethernet2
ip address dhcp
so how A is not the right answer i dont know...al the other options are set with
ip address client...something
but just to enable it to take ip its
ip address dhcp
to configure the interface Gi0/0 on the router as a DHCP client. This is how this is done:
R1(config)#int Gi0/0
R1(config-if)#ip address dhcp
A is the correct answer
This section is not available anymore. Please use the main Exam Page.200-301 Exam Questions
Log in to ExamTopics
Sign in:
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.
akhuseyinoglu
Highly Voted 4 years, 5 months agoTeeItUp
4 years, 5 months agojjkcoins
4 years, 3 months agoSanchezEldorado
4 years, 4 months agoMountie
4 years, 3 months agoDaimen
Highly Voted 4 years, 4 months agoknister
4 years, 4 months ago[Removed]
Most Recent 7 months, 1 week agokyleptt
1 year, 3 months agoRob2000
3 years agoGrigTech
3 years, 10 months agoicca17
3 years, 10 months agoDavidL
3 years, 11 months agoboghota
3 years, 11 months agoJimGrayham
3 years, 11 months agoaltiit
4 years agodiamcle
4 years agoGodUsopp
4 years agoSaske16
4 years agodevildog
4 years agokimi7
4 years, 1 month agokaremAbdullah
4 years, 1 month agoKingKeelo1
4 years, 1 month ago