免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3354 | 回复: 0
打印 上一主题 下一主题

双网卡跨网段的同时访问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-30 15:35 |只看该作者 |倒序浏览
首先说明,偶不是网管,所以没有什么权限。\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如何才能够同时访问两个网段?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP