- 论坛徽章:
- 0
|
首先说明,偶不是网管,所以没有什么权限。
以下操作都是针对偶的机器,双网卡,本地连接是Broadcom NetXtreme Gigabi,
无线连接是HP WLAN 802.11a/b/g W500。
命令inconfig/all输出如下:
Windows IP Configuration
Host Name . . . . . . . . . . . . : Microsoft
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : domain
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . : domain
Description . . . . . . . . . . . : Broadcom NetXtreme Gigabi
Physical Address. . . . . . . . . : 00-08-02-E6-C8-EF
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.104
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 202.96.134.133
192.168.1.1
202.96.134.188
Lease Obtained. . . . . . . . . . : 2007年4月30日 14:55:07
Lease Expires . . . . . . . . . . : 2007年5月2日 3:35:07
Ethernet adapter 无线网络连接:
Connection-specific DNS Suffix . : domain
Description . . . . . . . . . . . : HP WLAN 802.11a/b/g W500
Physical Address. . . . . . . . . : 00-12-79-42-26-C9
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.55.128
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.55.1
DHCP Server . . . . . . . . . . . : 192.168.55.1
DNS Servers . . . . . . . . . . . : 211.136.17.107
211.142.210.98
Lease Obtained. . . . . . . . . . : 2007年4月30日 14:55:19
Lease Expires . . . . . . . . . . : 2007年4月30日 15:55:19
指令route print输出如下:
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 08 02 e6 c8 ef ...... Broadcom NetXtreme Gigabit Ethernet - 数据包计划
程序微型端口
0x3 ...00 12 79 42 26 c9 ...... HP WLAN 802.11a/b/g W500 - 数据包计划程序微型端
口
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.104 20
0.0.0.0 0.0.0.0 192.168.55.1 192.168.55.128 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.104 192.168.1.104 20
192.168.1.104 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.104 192.168.1.104 20
192.168.55.0 255.255.255.0 192.168.55.128 192.168.55.128 30
192.168.55.128 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.55.255 255.255.255.255 192.168.55.128 192.168.55.128 30
224.0.0.0 240.0.0.0 192.168.1.104 192.168.1.104 20
224.0.0.0 240.0.0.0 192.168.55.128 192.168.55.128 30
255.255.255.255 255.255.255.255 192.168.1.104 192.168.1.104 1
255.255.255.255 255.255.255.255 192.168.55.128 192.168.55.128 1
Default Gateway: 192.168.1.1
===========================================================================
按照这个route设置,明显的只能够使用192.168.1.1网段(内网),无法使用192.168.55.1网段(外网)。
所以我做了如下修正:
route delete 0.0.0.0
route add 0.0.0.0 MASK 0.0.0.0 192.168.55.1 METRIC 1
这样,可以使用192.168.55.1网段(外网),但是192.168.1.1网段(内网)又不能使用了,我该怎么办?
如何才能够同时访问两个网段? |
|