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