计算机技术论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

  • 欢迎访问 计算机技术论坛-电脑迷与初学者的家园!由于论坛管理严格,新注册会员可能遇到各种问题,无法解决的请发邮件 admin@jsjbbs.cn
查看: 4255|回复: 2

单网卡绑定双IP,如何能同时上内外网????????

[复制链接]
huangyj5858 该用户已被删除
发表于 2009-3-10 22:59:24 | 显示全部楼层 |阅读模式
我单位是两条ADSL,用双路由同时拨号上网(一个内网一个外网),现两个路由并连起来(用交换机),电脑只有一张网卡。
当网卡IP设为:192.168.2.*,网关设为192.168.2.1时,电脑可以上外网,路由表是:
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 21 06 8d 08 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC -
数据包计划程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.2.1    192.168.2.15       20
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.2.0    255.255.255.0     192.168.2.15    192.168.2.15       20
     192.168.2.15  255.255.255.255        127.0.0.1       127.0.0.1       20
    192.168.2.255  255.255.255.255     192.168.2.15    192.168.2.15       20
        224.0.0.0        240.0.0.0     192.168.2.15    192.168.2.15       20
  255.255.255.255  255.255.255.255     192.168.2.15    192.168.2.15       1
Default Gateway:       192.168.2.1
===========================================================================
Persistent Routes:
  None

如果把网卡IP换成192.168.1.*,网关为192.168.1.1的时候电脑能上内网,路由表是:
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 21 06 8d 08 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC -
数据包计划程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1    192.168.1.15       20
        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.15    192.168.1.15       20
     192.168.1.15  255.255.255.255        127.0.0.1       127.0.0.1       20
    192.168.1.255  255.255.255.255     192.168.1.15    192.168.1.15       20
        224.0.0.0        240.0.0.0     192.168.1.15    192.168.1.15       20
  255.255.255.255  255.255.255.255     192.168.1.15    192.168.1.15       1
Default Gateway:       192.168.1.1
===========================================================================
Persistent Routes:
  None
当把网卡设置为双IP、双网关时,即IP:192.168.1.*,192.168.2.*,网关:192.168.1.1,192.168.2.1时,电脑只能上外网,不能上内网,路由表为:
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 21 06 8d 08 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC -
数据包计划程序微型端口
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1    192.168.1.15       20
          0.0.0.0          0.0.0.0      192.168.2.1    192.168.1.15       20
        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.15    192.168.1.15       20
     192.168.1.15  255.255.255.255        127.0.0.1       127.0.0.1       20
    192.168.1.255  255.255.255.255     192.168.1.15    192.168.1.15       20
      192.168.2.0    255.255.255.0     192.168.2.15    192.168.1.15       20
     192.168.2.15  255.255.255.255        127.0.0.1       127.0.0.1       20
    192.168.2.255  255.255.255.255     192.168.2.15    192.168.1.15       20
        224.0.0.0        240.0.0.0     192.168.1.15    192.168.1.15       20
  255.255.255.255  255.255.255.255     192.168.1.15    192.168.1.15       1
Default Gateway:       192.168.2.1
===========================================================================
Persistent Routes:
  None
如何设置才能不用换IP和网关而同时能上内网和外网?
发表于 2009-3-11 09:03:56 | 显示全部楼层
谢谢分享!!!
goodmiang 该用户已被删除
发表于 2009-3-21 03:08:47 | 显示全部楼层
顶贴!!多多发好贴!!!:handshake
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

无图版|手机版|计算机技术论坛 JSJBBS.CN @ 2008-2024 ( 鲁ICP备17021708号 )

技术支持 : 北京康盛新创科技有限责任公司

快速回复 返回顶部 返回列表