View Your Network Information
Before you change your IP address and related information, you’ll need
to find the full name of the network for the interface you want to
change. To do this, type the following command:
netsh interface ipv4 show config
Scroll down until you see the interface. In our example, we’re going to modify the Wi-Fi interface, which on our machine is just named “Wi-Fi.” You’ll also see other default names that Windows assigns to interfaces, such as “Local Area Connection,” “Local Area Connection 2,” and “Ethernet.” Just find the one you’re looking for and make note of the exact name. You can also copy and paste the name to Notepad.
Change Your IP Address, Subnet Mask, and Default Gateway
Set static IP
netsh interface ip set address name=”Local Area Connection” static 192.168.0.1 255.255.255.0 192.168.0.254
netsh interface ipv4 set address name="Wi-Fi" static 192.168.1.10 255.255.255.0 192.168.1.1
Set dynamic IP (DHCP)
netsh interface ip set address name=”Local Area Connection” source=dhcpSet static Prefered DNS server
netsh interface ip set dns name=”Local Area Connection” static 192.168.0.250Set alternate DNS server
netsh interface ip add dns name=”Local Area Connection” 8.8.8.8 index=2Set dynamic Prefered DNS server
netsh interface ip set dnsservers name=”Local Area Connection” source=dhcpNote: Those given in blue italics must be changed with your network adapter name in network settings and ip addresses of your network/service providers.
No comments:
Post a Comment