What command would you use to configure a static IP address and default gateway for a computer running Windows Server 2016 Server Core?
A . netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>
B . netsh interface ipv4 set address name="<ID>" source=dynamic address=<DHCPIP> mask=<SubnetMask> gateway=<DefaultGateway>
C . netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<AlternateGateway>
D . netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> subnet=<SubnetMask> gateway=<DefaultGateway>
Answer: A
Explanation:
When you view the output of the netsh command, you need to note the number shownintheIdx column for your network adapter.
To set a static IP address and default gateway, use the following command:
netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP>mask=<SubnetMask> gateway=<DefaultGateway>
Leave a Reply