免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-30 15:35 |只看该作者 |倒序浏览
首先说明,偶不是网管,所以没有什么权限。
以下操作都是针对偶的机器,双网卡,本地连接是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网段(内网)又不能使用了,我该怎么办?
如何才能够同时访问两个网段?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP