Windows Server Core - Set the IP address, subnet mask, default gateway, and DNS using sconfig (cidr)

by
Jeremy Canfield |
Updated: November 08 2021
| Windows Server Core articles
Using sconfig
- Type sconfig and press enter to open Server Configuration
- Type 8 (Network Settings) and press enter
- Type the number in the Index# column for the network interface you want to configure and press enter
- Type 1 (Set Network Adapter Address) and press enter
- Type s (static) and press enter
- Type the IP address and press enter
- Type the subnet mask and press enter
- Type the default gateway and press enter
- Type 2 (Set DNS Servers) and press enter
- Type the address for the preferred DNS server and press enter (example: 8.8.8.8). A pop-up box with message "Preferred DNS server set" appears. Select OK.
- Type the address for the alternate DNS server and press enter (example: 8.8.4.4). A pop-up box with message "Alternate DNS server set" appears. Select OK.
- Type 4 (Return to Main Menu) and press enter
- Type 15 (Exit to Command Line) and press enter
Did you find this article helpful?
If so, consider buying me a coffee over at