Thursday 26 December 2013

Windows 8: TCP/IP Addressing (Static and Dynamic)

In Windows, you can have one of two types of IP addresses: dynamic or static. Dynamic IP addresses are temporarily assigned to a network device when their requested, and is generally done during the boot process. The network service that assigns dynamic IP addresses is known as DHCP. While static IP addresses have to be manually assigned to a device by a systems administrator, and are meant to be changed infrequently.

Dynamic IP addresses are the most common method of assigning an IP address to a network based device (such as a computer, printer, etc) because it reduces the network administration overhead. Today's office and work force are in a constant state of flux. People with mobile devices (such as tablets, smartphones, and laptops) will move from location to location, even desktop users can get moved around within a company on a semi-regular basis.
Note: If a Windows client makes a DHCP request for an IP address and doesn't get a reply in a timely manor, then it will switch to using Automatic Private IP Addressing (APIPA). APIPA is a private IP address range (169.254.0.0 to 169.254.255.255) that allows devices on a network using this address range to communicate with themselves. To configure this service, click on the Alternate Configuration tab in the Internet Protocol (TCP/IP) dialog.
If all devices used a static IP address, it would cause a network administration nightmare, they would all have to be changed every time a device was moved.  Most static IP addresses are assigned to servers or network based devices like routers or DNS servers. These devices need a static IP address because other devices on the network depend on knowing how to contact them.

To configure the TCP/IP addressing (dynamic or static) in Windows, follow the instructions below:
  • From the Start screen, type Network and click Settings on the right.  Click the Network and Sharing Center icon.  In the left pane, click theChange adapter settings link.
  • Right-click the active network connection (note: this selection can change between systems depending on the equipment that is installed), and select Properties.
  • Select Internet Protocol Version 4 (TCP/IPv4) [or Internet Protocol Version 6 (TCP/IPv6) depending on how your network is configured] and the press the Properties button.
From here you can select one of two options, Obtain an IP address automatically(dynamic) or Use the following IP address (static). If you're using a static IP address you need to know the following information: unique IP address, subnet mask for the network, IP address of the default gateway, and the IP addresses of the primary and secondary DNS servers. When you're done press the OK button twice.

Networking tips:

  • To find the TCP/IP address of the local computer, from the command prompt type: IPCONFIG /ALL.
  • To request a new DHCP address, from an administrator command prompt type: IPCONFIG /RELEASE and then type: IPCONFIG /RENEW 

 (Advanced) How to Find the MAC Address of Remote Computer

Every device on a TCP/IP network has a unique number assigned to it called the MAC (Media Access Control) address. The MAC address is used by the network hardware such as routers, switches, etc. to send traffic from one device to another device on your network.

Your computer uses a service called ARP (Address Resolution Protocol) to resolve and track the TCP/IP and MAC address of the remote devices that you're communicating with. This information is handy for doing semi-low level network troubleshooting. It can also be used for granting or denying permissions to a network segment or device on that network.

To determine the MAC address of a remote device:
  • Open the MS-DOS prompt (From the Run... command, type "CMD" and press Enter).
  • Ping a remote device that you want to find the MAC address (for example: PING 192.168.0.1).
  • Type "ARP -A", and press Enter.

Microsoft Windows XP [Version 5.1.2600] 
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS>arp -a


Interface: 192.168.1.100 --- 0x10004 
Internet Address Physical Address Type
 
192.168.1.1 aa-fb-c8-34-da-7a dynamic

No comments:

Post a Comment