How to configure network connection on Windows 7


Many Administrators prefer “netsh” command when configuring a network connection because the tool is more powerful then using the normal interface and has many options.

If you want to configure the Local Area Connection with a IPv4 address, network mask and gateway you will type something like:
First of all open a command prompt using administrative credentials.
netsh interface ipv4 set address “local area connection” static 192.168.1.15 255.255.255.0 192.168.1.1
In this example I have configured the IP 192.168.1.15 with a network mask of 255.255.255.0 and a gateway 192.168.1.1
If you want to configure also the DNS type:
netsh interface ipv4 set dnsservers “local area connection” static 192.168.1.2
where 192.168.1.2 is my dns ip address
If you want to use DHCP to get a dynamic IP address and DNS server enter the following in cmd:
netsh interface ipv4 set address name=”local area connection” source=dhcp
netsh interface ipv4 set dnsservers name=”local area connection” source=dhcp

IP address (internet protocol) : is a protocol used to communicate between different machines over the internet.
DNS (domain name system) : is a service that translates names intro IP addresses
DHCP (dynamic host configuration protocol) : is a service that dynamic assigns the configuration needed to communicate over the internet (ip, mask, dns etc.).
Gateway : is a device that connects the local network with the internet (usually a router ).
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s