算计你爱上你免费阅读:我现在是自动获得IP地址的.要怎么才能知道自己的默认网关?

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 06:17:30

开始-运行-cmd

然后输入 ipconfig

里边的 default gateway 就是

开始-运行-cmd
输入Ipconfig命令即可

打开本地连接,然后里面有一个支持,点击它,就看到了。

比如我的电脑,操作如下:
开始--->运行--->输入"CMD"

再输入"IPCONFIG"
会出现如下信息:
C:\Documents and Settings\ncbcy>ipconfig

Windows IP Configuration

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.175.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.92.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter 本地连接:

Connection-specific DNS Suffix . : private
IP Address. . . . . . . . . . . . : 192.168.1.99
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter {9520B654-1AD5-41FC-87ED-6157797D31E9}:

Media State . . . . . . . . . . . : Media disconnected

其中,第一个和第二个大类安装了虚拟机,虚拟机虚拟了两个网卡的结果,没影响,你只看 本地链接 那个!
第四行中,有:
Default Gateway . . . . . . . . . : 192.168.1.1

其中,192.168.1.1就是网关!

说明,我的机器是在局域网中的,所以,为192.168.1.1,你的机器如果是其它方式上风,肯定是不是这个!