As the most of our clients are windows network administrations, in this article we are going to learn about windows network settings with netsh command, since it is one of the prerequisites for them. Command Prompt consists of many commands that you can use for each Windows setting. As a network administrator, you must be familiar with Windows Server core operating system, and you know that all settings in this type of Windows are done with Command Prompt commands. Therefore, we intend to teach some CMD commands which is a prerequisite for working with servers. The netsh command is an external command that has many capabilities.
Windows network settings with netsh command
The netsh command is an external command that has many capabilities.
1– Windows network settings
2– Windows firewall settings
3– BranchCache settings
4– Wireless settings
5– DHCP settings
The mentioned features are just some of all, and in this article we are going to explain more about the network settings by the netsh command, so in this tutorial, the instructions are structurally and you can use them according to the available title.
Do you need your own VPS? Join us here
Prerequisite CMD commands for servers
1- View all network cards with netsh
netsh interface show interface
2- See the settings of all system network cards
netsh interface ip show config
3- Set static IP with netsh command
[netsh interface ip set address "Connection name" static [IP addres] [Subnet Mask] [Default Gateway An example: netsh interface ip set address "ethernet" static 192.168.0.101 255.255.255.0 192.168.0.1
4- Set static DNS with netsh command
netsh interface ip add dns "connection name" [IP DNS]
In the first example, we set the primary DNS to 220.127.116.11.
netsh interface ip add dns "ethernet" 18.104.22.168 index=2
5- Disabling and activating the network card
netsh interface set interface "ethernet" disabled netsh interface set interface "ethernet" enabled
Note: The first line disables the ethernet network card and the second line activates it.
6- Putt the IP in DHCP mode
netsh interface ip set address "ethernet" dhcp
Note: All of the above commands have been prepared and configured for Windows network settings with the netsh command, and As soon as possible we would learn more about netsh command features.
Dear user, we hope you would enjoy this tutorial Windows network settings with netsh command, you can ask questions about this training in the comments section, or to solve other problems in the field of Eldernode training, refer to the Ask page section and raise your problems in it.