exam questions

Exam 70-741 All Questions

View all questions & answers for the 70-741 exam

Exam 70-741 topic 2 question 33 discussion

Actual exam question from Microsoft's 70-741
Question #: 33
Topic #: 2
[All 70-741 Questions]

You have a server named Server1 that has a Server Core installation of Windows Server 2016. Server1 is configured to obtain an IP address automatically.
You need to configure the IPv4 address, netmask, and default gateway manually for a network interface named Ethernet on Server1.
What should you run?

  • A. ipconfig.exe
  • B. New-NetIPAddress
  • C. Set-NetAdapter
  • D. Set-NetIPv4Protocol
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
References:
https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=win10-ps

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
Nhan
Highly Voted 5 years, 5 months ago
New-NetIPAddress -InterfaceIndex 12 -IPAddress 192.168.0.1 -PrefixLength 24 -DefaultGateway 192.168.0.5
upvoted 7 times
...
panda
Most Recent 4 years, 5 months ago
Namely ***-NetAdapter processes basic network adapter properties. While ***-NetIP*** process advanced network adapter properties, such as IP address.
upvoted 1 times
...
panda
4 years, 5 months ago
I think that B is correct. You must understand two types of methods to use New-NetIPAddress cmdlet. First, to communicate between virtual network and virtual network adapter. (*1) Second, to communicate between physical network and physical network adapter.(*2)(*3) The B is based on the second method. more C (Set-NetAdapter) can't set IP address.(*4) (*1)https://www.vembu.com/blog/hyper-v-virtual-switch-using-nat-setup/ (*2)https://mcpmag.com/articles/2018/02/28/set-ip-address-with-powershell.aspx (*3)https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=win10-ps (*4)https://docs.microsoft.com/en-us/powershell/module/netadapter/set-netadapter?view=win10-ps
upvoted 2 times
...
IBR
4 years, 7 months ago
B) "If you run this cmdlet to add an IP address to an interface on which DHCP is already enabled, then DHCP is automatically disabled" https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=win10-ps
upvoted 2 times
...
alexnt
4 years, 11 months ago
I have seen same question with different answers: A. ipconfig.exe B. netsh.exe C. Set-NetNat D. Set-NetIPv4Protocol Offered Answer: C Is it correct?
upvoted 3 times
stepa010
4 years, 11 months ago
No. You should use netsh.exe
upvoted 4 times
...
TA77
4 years, 9 months ago
As stepa010 said, Correct answer is netsh. netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY reference: https://www.howtogeek.com/103190/change-your-ip-address-from-the-command-prompt/
upvoted 4 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 ...