windows 系统中,给一个网卡设置多个 IP 的方法
一、进入网络属性
二、高级属性中,设置多个IP
三、可在cmd方式下,查看到设置的多个IP
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\songtao>ipconfig
Windows IP Configuration
Ethernet adapter VMware Network Adapter VMnet8:
       Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.5.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.81.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
Ethernet adapter 本地连接:
 Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.0.85
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . : 192.168.0.84
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1
 
C:\Documents and Settings\songtao>ping 192.168.0.85
Pinging 192.168.0.85 with 32 bytes of data:
Reply from 192.168.0.85: bytes=32 time<1ms TTL=128
Reply from 192.168.0.85: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.85:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
C:\Documents and Settings\songtao>ping 192.168.0.84
Pinging 192.168.0.84 with 32 bytes of data:
Reply from 192.168.0.84: bytes=32 time<1ms TTL=128
Reply from 192.168.0.84: bytes=32 time<1ms TTL=128
Reply from 192.168.0.84: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.84:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
四、可将不同的应用部署到不同的IP上