Using the PING Command to Check an Address
Before you assign a static IP address, you should make sure that the address isn't already in use or reserved for use with DHCP. You can use the PING command to see whether an address is in use. Open a command prompt and type ping, followed by the IP address you want to check.
To test the IPv4 address 10.0.10.12, you would use the following command:
ping 10.0.10.12
To test the IPv6 address FEC0::02BC:FF:BECB:FE4F:961D, you would use the following command:
ping FEC0::02BC:FF:BECB:FE4F:961D
If you receive a successful reply from the PING test, the IP address is in use and you should try another one. If the request times out for all four PING attempts, the IP address isn't active on the network at this time and probably isn't in use. However, a firewall could be blocking your PING request. Your company's network administrator would also be able to confirm whether an IP address is in use.
Configuring a Static IPv4 or IPv6 Address
One local area network (LAN) connection is available for each network adapter installed. These connections are created automatically. To configure static IP addresses for a particular connection, complete the following steps:
- Click Start and then click Network. In Network Explorer, click Network And Sharing Center on the toolbar.
- In Network And Sharing Center, click Manage Network Connections.
- In Network Connections, right-click the connection you want to work with and then select Properties.
- In the Local Area Connection Status dialog box, click Properties. This displays the Local Area Connection Properties dialog box.
- Double-click Internet Protocol Version 6 (TCP/IPv6) or Internet Protocol Version 4 (TCP/IPv4) as appropriate for the type of IP address you are configuring.
- For an IPv6 address, do the following:
- Click Use The Following IPv6 Address and then type the IPv6 address in the IPv6 Address text box. The IPv6 address you assign to the computer must not be used anywhere else on the network.
- Press the Tab key. The Subnet Prefix Length field ensures that the computer communicates over the network properly. Windows Vista should insert a default value for the subnet prefix into the Subnet Prefix Length text box. If the network doesn't use variable-length subnetting, the default value should suffice, but if it does use variable-length subnets, you'll need to change this value as appropriate for your network.
- For an IPv4 address, do the following:
- Click Use The Following IP Address and then type the IPv4 address in the IP Address text box. The IPv4 address you assign to the computer must not be used anywhere else on the network.
- Press the Tab key. The Subnet Mask field ensures that the computer communicates over the network properly. Windows Vista should insert a default value for the subnet prefix into the Subnet Mask text box. If the network doesn't use variable-length subnetting, the default value should suffice, but if it does use variable-length subnets, you'll need to change this value as appropriate for your network.
- If the computer needs to access other TCP/IP networks, the Internet, or other subnets, you must specify a default gateway. Type the IP address of the network's default router in the Default Gateway text box.
- DNS is needed for domain name resolution. Type a preferred address and an alternate DNS server address in the text boxes provided.
- When you're finished, click OK twice and then click Close. Repeat this process for other network adapters and IP protocols you want to configure.
- With IPv4 addressing, configure WINS as necessary, following the technique outlined in the "Configuring WINS Resolution" section of this tutorial.
In this tutorial:
- Vista Configuring and Troubleshooting TCP/IP Networking
- Navigating Windows Vista Networking Features
- Working with Network Explorer
- Working with Network And Sharing Center
- Working with Network Map
- Installing Networking Components
- Installing Networking Services (TCP/IP)
- Configuring Local Area Connections
- Using the PING Command to Check an Address
- Configuring Dynamic IP Addresses and Alternate IP Addressing
- Configuring Multiple Gateways
- Configuring DNS Resolution
- Configuring WINS Resolution
- Managing Local Area Connections
- Viewing Network Configuration Information
- Troubleshooting and Testing Network Settings
- Performing Basic Network Tests
- Resolving IP Addressing Problems
- Releasing and Renewing DHCP Settings
- Registering and Flushing DNS