点击《开始》-->《运行》输入 CMD 按回车,打开命令行窗口
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\lihaixin>ipconfig /all ←查看IP相关配置
Windows IP Configuration
Host Name . . . . . . . . . . . . : lhx
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接: ←网卡名称,下面命令要用到
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom NetLink (TM) Fast Ethernet
Physical Address. . . . . . . . . : 00-1B-38-A4-02-9B
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.1.12 ←原来网卡IP地址
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 202.96.128.166
202.96.128.86
NetBIOS over Tcpip. . . . . . . . : Disabled
Ethernet adapter {BB84C057-824E-4EFA-BB64-BCFB7A093B69}:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : TAP VPN Adapter - 数据包计划程序微型
端口
Physical Address. . . . . . . . . : 00-FF-BB-84-C0-57
运行netsh修改IP地址或网关
C:\Documents and Settings\lihaixin>netsh interface ip set address name=本地连接source=static 192.168.1.8 255.255.255.0 192.168.1.1 1 ←修改IP地址为192.168.1.8确定。
重新查看IP地址
C:\Documents and Settings\lihaixin>ipconfig /all ←查看IP相关配置
Windows IP Configuration
Host Name . . . . . . . . . . . . : lhx
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom NetLink (TM) Fast Ethernet
Physical Address. . . . . . . . . : 00-1B-38-A4-02-9B
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.1.8 ←已经修改网卡IP地址
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 202.96.128.166
202.96.128.86
NetBIOS over Tcpip. . . . . . . . : Disabled
Ethernet adapter {BB84C057-824E-4EFA-BB64-BCFB7A093B69}:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : TAP VPN Adapter - 数据包计划程序微型
端口
Physical Address. . . . . . . . . : 00-FF-BB-84-C0-57
C:\Documents and Settings\lihaixin>
没有评论 :
发表评论