Quick: Helpful list of netsh commands for your Windows Server Core 2008R2 Installation
As I’m now configuring all my new virtual servers, many of which are Core installations, I need a helpful list of netsh commands which allow me to configure network interfaces and so on, this is a handy guide for me as much as anyone else:
- Change an interface’s name:
netsh interface set interface name="Local Area Connection" newname="LAN" - Change an interface’s MTU (for jumbo frames etc):
netsh interface ipv4 set subinterface "LAN" mtu=WHATEVER store=persistent - List IP4 interfaces:
netsh interface ipv4 show interfaces - Set IP4 address:
netsh interface ipv4 set address name="ID" source=static address=StaticIP mask=SubnetMask gateway=DefaultGateway - Add some DNS Servers:
netsh interface ipv4 add dnsserver name="ID" address=DNSIP - Set back to DHCP:
netsh interface ipv4 set address name="ID" source=dhcp