xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

xp好还是vista好

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Sometimes, it’s better to assign a PC it’s own IP address rather than letting your router assign one automatically. Join us as we take a look at assigning a static IP address in Windows.

有时,最好给PC分配自己的IP地址,而不是让路由器自动分配IP地址。 加入我们,我们一起来看看在Windows中分配静态IP地址。

静态与自动IP寻址 (Static vs. Automatic IP Addressing)

Right now, the IP addresses for your PCs and other devices are probably assigned automatically by your router using a procotol known as Dynamic Host Configuration Protocol (DHCP). It’s a handy way for devices to connect to your network more easily, because you don’t have to configure IP addressing for each new device yourself. The downside to automatic addressing is that it’s possible for a device’s IP address to change from time to time.

现在,您的PC和其他设备的IP地址可能是由路由器使用称为动态主机配置协议(DHCP)的协议自动分配的。 这是使设备更轻松地连接到网络的便捷方法,因为您不必自己为每个新设备配置IP寻址。 自动寻址的缺点是设备的IP地址可能会不时更改。

Mostly, that’s not a big deal, but there are times that you might want a device to have a static, unchanging IP address. For example:

通常,这没什么大不了的,但是有时您可能希望设备具有静态的,不变的IP地址。 例如:

  • You have a device (like a home media server, say) that you want to be able to find reliably and you (or other devices) prefer to locate it by IP address. Using IP addresses is often much handier when troubleshooting your network, for example.

    您有一台想要可靠找到的设备(例如家用媒体服务器),而您(或其他设备)则更喜欢通过IP地址定位它。 例如,在对网络进行故障排除时,使用IP地址通常会更方便。
  • You have certain apps that can only connect to network devices using their IP address. In particular, many older networking apps suffer this limitation.

    您拥有某些只能使用其IP地址连接到网络设备的应用程序。 特别是,许多较早的网络应用程序都受到此限制。
  • You forward ports through your router to devices on your network. Some routers play nice with port forwarding and dynamic IP addresses; others do not.

    您通过路由器将端口转发到网络上的设备。 有些路由器在端口转发和动态IP地址方面表现出色。 别人没有。

Whatever your reason, assigning static IP addresses to devices is not difficult, but you do have a choice to make—whether to do it from the router or on the device itself.

无论出于何种原因,为设备分配静态IP地址并不困难,但是您确实可以选择-是从路由器还是在设备本身上进行选择。

通过路由器分配静态IP地址 (Assign Static IP Addresses Via Your Router)

While this article covers assigning static IP addresses to PCs within Windows itself, there is another way to go about it. Many routers allow you to assign a pool of IP addresses that are handed out to specific devices (based on the device’s physical, or MAC address). This method offers a couple of significant advantages:

虽然本文介绍了如何在Windows本身内为PC分配静态IP地址,但是还有另一种解决方法。 许多路由器允许您分配分发给特定设备的IP地址池(基于设备的物理地址或MAC地址)。 此方法具有两个重要的优点:

  • IP addresses are still managed by the router, meaning that you won’t have to make (and keep up with) changes on each individual device.

    IP地址仍由路由器管理,这意味着您不必在每个单独的设备上进行更改(并跟上)。
  • It’s easier to assign addresses within the same IP address pool your router uses.

    在路由器使用的同一IP地址池中分配地址更加容易。

RELATED: How to Set Static IP Addresses On Your Router

相关: 如何在路由器上设置静态IP地址

This article is about assigning static IP addresses directly to PCs running Windows. We’ve already got a great guide on How to Set Static IP Addresses On Your Router, so if that’s the way you want to go, be sure to give it a read.

本文是关于将静态IP地址直接分配给运行Windows的PC。 我们已经有了有关如何在路由器设置静态IP地址的出色指南,因此,如果您要这样做 ,请务必仔细阅读。

With all that in mind, though, let’s take a look at how to assign static IP addresses within Windows XP, Vista, 7, 8, and 10.

考虑到所有这些,让我们看一下如何在Windows XP,Vista,7、8和10中分配静态IP地址。

在Windows 7、8或10中设置静态IP地址 (Set a Static IP Address in Windows 7, 8, or 10)

To change the computer’s IP address in Windows, you’ll need to open the “Network Connections” window. Hit Windows+R, type “ncpa.cpl” into the Run box, and then hit Enter.

要在Windows中更改计算机的IP地址,您需要打开“网络连接”窗口。 按Windows + R,在“运行”框中键入“ ncpa.cpl”,然后按Enter。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

In the “Network Connections” window, right-click the adapter for which you want to set a static IP address, and then select the “Properties” command.

在“网络连接”窗口中,右键单击要为其设置静态IP地址的适配器,然后选择“属性”命令。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

In the properties window for the adapter, select “Internet Protocol Version 4 (TCP/IPv4)” and then click the “Properties” button.

在适配器的属性窗口中,选择“ Internet协议版本4(TCP / IPv4)”,然后单击“属性”按钮。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Select the “Use the following IP address” option, and then type in the IP address, subnet mask, and default gateway that corresponds with your network setup. Next, type in your preferred and alternate DNS server addresses. Finally, select the “Validate settings upon exit” option so that Windows immediately checks your new IP address and corresponding information to ensure that it works. When you’re ready, click the “OK” button.

选择“使用以下IP地址”选项,然后键入与您的网络设置相对应的IP地址,子网掩码和默认网关。 接下来,键入您的首选和备用DNS服务器地址。 最后,选择“退出时验证设置”选项,以便Windows立即检查您的新IP地址和相应的信息以确保其正常工作。 准备好后,单击“确定”按钮。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

And then close out of the network adapter’s properties window.

然后关闭网络适配器的属性窗口。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Windows automatically runs network diagnostics to verify that the connection is good. If there are problems, Windows will give you the option of running the Network troubleshooting wizard. However, if you do run into trouble, the wizard likely won’t do you too much good. It’s better to check that your settings are valid and try again.

Windows自动运行网络诊断程序以验证连接是否良好。 如果出现问题,Windows将为您提供运行网络故障排除向导的选项。 但是,如果您确实遇到麻烦,该向导可能不会给您带来太多好处。 最好检查您的设置是否有效,然后重试。

在Windows Vista中设置静态IP地址 (Set a Static IP Address in Windows Vista)

Changing your IP from DHCP to a Static address in Vista is similar to other versions of Windows, but getting to the correct location is a bit different. Open the Start Menu, right-click on Network, and select Properties.

在Vista中,将您的IP从DHCP更改为静态地址与Windows的其他版本相似,但是到达正确的位置有些不同。 打开“开始”菜单,右键单击“网络”,然后选择“属性”。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

The Network and Sharing Center opens…click on Manage network connections.

网络和共享中心打开……单击“ 管理网络连接”

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Right-click on the network adapter you want to assign an IP address and click Properties.

右键单击要分配IP地址的网络适配器,然后单击“属性”。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Highlight Internet Protocol Version 4 (TCP/IPv4) then click the Properties button.

突出显示Internet协议版本4(TCP / IPv4),然后单击“属性”按钮。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Now change the IP, Subnet mask, Default Gateway, and DNS Server Addresses. When you’re finished click OK.

现在更改IP,子网掩码,默认网关和DNS服务器地址。 完成后,单击“确定”。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

You’ll need to close out of Local Area Connection Properties for the settings to go into effect.

您需要关闭“本地连接属性”才能使设置生效。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Open the Command Prompt and use the ipconfig command to verify that the changes were successful.

打开命令提示符,然后使用ipconfig命令验证更改是否成功。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

在Windows XP中设置静态IP地址 (Set a Static IP Address in Windows XP)

To set a Static IP in Windows XP, right-click the “My Network Places” icon, and then select “Properties.”

要在Windows XP中设置静态IP,请右键单击“我的网上邻居”图标,然后选择“属性”。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Right-click the adapter for which you want to set the IP, and then select “Properties” from the context menu.

右键单击要为其设置IP的适配器,然后从上下文菜单中选择“属性”。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Select the “Internet Protocol (TCP/IP)” entry, and then click the “Properties” button.

选择“ Internet协议(TCP / IP)”条目,然后单击“属性”按钮。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

Select the “Use the following IP address” option. Type in the IP address, subnet mask, default gateway, and DNS server addresses you want to use. When you’re finished, click the “OK” button.

选择“使用以下IP地址”选项。 输入您要使用的IP地址,子网掩码,默认网关和DNS服务器地址。 完成后,单击“确定”按钮。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

You will need to close out of the adapter’s properties window before the changes go into effect.

在更改生效之前,您需要关闭适配器的属性窗口。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址

And you can verify your new settings by using the ipconfig command at the command prompt.

然后,您可以在命令提示符下使用ipconfig命令来验证新设置。

xp好还是vista好_如何在Windows 7、8、10,XP或Vista中分配静态IP地址


By and large, it’s better to let most of your devices have their IP addresses assigned automatically by your router. Occasionally, though, you might want to set a static IP address for a particular device. While you can set static IP addresses directly on your devices (and this article has shown you how to do just that on Windows PCs), we still recommending setting up static IP addressing on your router if possible. It will just make life easier.

总的来说,最好让大多数设备的IP地址由路由器自动分配。 但是,有时您可能想为特定设备设置静态IP地址。 尽管您可以直接在设备上设置静态IP地址(本文向您展示了如何在Windows PC上实现静态IP地址),但我们仍然建议您尽可能在路由器上设置静态IP地址。 这只会使生活更轻松。

翻译自: https://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/

xp好还是vista好

相关文章: