如果实现双网卡访问两个不同网段数据

HJDY 2009-05-13 09:22:36
电脑A,电脑B,电脑C,A的IP为192.168.1.95/255.255.255.0,192.168.1.1(网关),B机为双网卡,WIN2003操作系统,C的IP为129.7.7.2/255.255.255.0,如何通过B机实现C机访问A机.越详细越好!最终是在B机上实现数据隔离,以保证数据安全!
...全文
1626 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
maj314 2011-12-29
  • 打赏
  • 举报
回复
这个我亲自实现过,哈哈,开始一头雾水,后来感觉挺简单的。
francis86 2009-12-04
  • 打赏
  • 举报
回复
将这台机器上的两块网卡的地址分别配置成另外两台主机的网关效果类似的路由器配置如下(在Cisco Packet Tracer 5.1模拟器中的Cisco 2621XM型号的路由器为例):

Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface fastethernet 0/1
Router(config-if)#ip address 172.16.0.1 255.255.0.0
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 172.16.0.0/16 is directly connected, FastEthernet0/1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
Router#ping 192.168.1.95

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.95, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 2/5/7 ms

Router#ping 172.16.1.95

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.95, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 2/4/6 ms

Router#





Packet Tracer PC Command Line 1.0
PC>ipconfig

IP Address......................: 192.168.1.95
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.1

PC>ping 192.168.1.95

Pinging 192.168.1.95 with 32 bytes of data:

Reply from 192.168.1.95: bytes=32 time=2ms TTL=128
Reply from 192.168.1.95: bytes=32 time=0ms TTL=128
Reply from 192.168.1.95: bytes=32 time=3ms TTL=128
Reply from 192.168.1.95: bytes=32 time=2ms TTL=128

Ping statistics for 192.168.1.95:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 3ms, Average = 1ms

PC>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=7ms TTL=255
Reply from 192.168.1.1: bytes=32 time=2ms TTL=255
Reply from 192.168.1.1: bytes=32 time=2ms TTL=255
Reply from 192.168.1.1: bytes=32 time=3ms TTL=255

Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 7ms, Average = 3ms

PC>ping 172.16.0.1

Pinging 172.16.0.1 with 32 bytes of data:

Reply from 172.16.0.1: bytes=32 time=3ms TTL=255
Reply from 172.16.0.1: bytes=32 time=3ms TTL=255
Reply from 172.16.0.1: bytes=32 time=5ms TTL=255
Reply from 172.16.0.1: bytes=32 time=5ms TTL=255

Ping statistics for 172.16.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 5ms, Average = 4ms

PC>ping 172.16.1.95

Pinging 172.16.1.95 with 32 bytes of data:

Reply from 172.16.1.95: bytes=32 time=14ms TTL=127
Reply from 172.16.1.95: bytes=32 time=15ms TTL=127
Reply from 172.16.1.95: bytes=32 time=11ms TTL=127
Reply from 172.16.1.95: bytes=32 time=10ms TTL=127

Ping statistics for 172.16.1.95:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 15ms, Average = 12ms

PC>






Packet Tracer PC Command Line 1.0
PC>ipconfig

IP Address......................: 172.16.1.95
Subnet Mask.....................: 255.255.0.0
Default Gateway.................: 172.16.0.1

PC>ping 172.16.1.95

Pinging 172.16.1.95 with 32 bytes of data:

Reply from 172.16.1.95: bytes=32 time=0ms TTL=128
Reply from 172.16.1.95: bytes=32 time=20ms TTL=128
Reply from 172.16.1.95: bytes=32 time=5ms TTL=128
Reply from 172.16.1.95: bytes=32 time=0ms TTL=128

Ping statistics for 172.16.1.95:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 20ms, Average = 6ms

PC>ping 172.16.0.1

Pinging 172.16.0.1 with 32 bytes of data:

Reply from 172.16.0.1: bytes=32 time=4ms TTL=255
Reply from 172.16.0.1: bytes=32 time=5ms TTL=255
Reply from 172.16.0.1: bytes=32 time=7ms TTL=255
Reply from 172.16.0.1: bytes=32 time=5ms TTL=255

Ping statistics for 172.16.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 4ms, Maximum = 7ms, Average = 5ms

PC>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=5ms TTL=255
Reply from 192.168.1.1: bytes=32 time=8ms TTL=255
Reply from 192.168.1.1: bytes=32 time=4ms TTL=255
Reply from 192.168.1.1: bytes=32 time=5ms TTL=255

Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 4ms, Maximum = 8ms, Average = 5ms

PC>ping 192.168.1.95

Pinging 192.168.1.95 with 32 bytes of data:

Reply from 192.168.1.95: bytes=32 time=11ms TTL=127
Reply from 192.168.1.95: bytes=32 time=7ms TTL=127
Reply from 192.168.1.95: bytes=32 time=13ms TTL=127
Reply from 192.168.1.95: bytes=32 time=8ms TTL=127

Ping statistics for 192.168.1.95:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 7ms, Maximum = 13ms, Average = 9ms

PC>
francis86 2009-12-04
  • 打赏
  • 举报
回复
安装“路由与远程访问”组件,启用“路由与远程访问”服务,默认情况下将这台机器上的两块网卡的地址分别配置成主机A、主机C的网关就可以通信,好比一台路由器两端的两个直连网络可以直接通信。
也可以使用网络地址转换(NAT)、或者在自定义选项中配置静态路由。
夏脑 2009-05-18
  • 打赏
  • 举报
回复
在B机上安装“路由与远程访问”组件
SunFulong 2009-05-18
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 HJDY 的回复:]
将B机的外网网关设置成默认网关,手工增加一条B机的内网路由,在C机上能PING通B的内,外网IP,但不能PING通到A机。
[/Quote]需要在B上做NAT的,否则是C和A是完全独立啦
HJDY 2009-05-18
  • 打赏
  • 举报
回复
将B机的外网网关设置成默认网关,手工增加一条B机的内网路由,在C机上能PING通B的内,外网IP,但不能PING通到A机。
svnLight 2009-05-17
  • 打赏
  • 举报
回复
分别为B机的两个网卡加上静态路由即可。
命令为route add
可以查看route,得到帮助信息。
yoyoma 2009-05-14
  • 打赏
  • 举报
回复
你说的"实现数据隔离"不太明白是什么意思.
1、你可以设文件用户权限
2、你可以在B机上整个软件防火墙,如楼上说的ISA
yoyoma 2009-05-14
  • 打赏
  • 举报
回复
这个很简单,你在B机上把邮路和远程,起动服务,建一个叫LAN路由(名字不记得了,意思是这个),就行了
puheavy123 2009-05-14
  • 打赏
  • 举报
回复
route
ecee2u 2009-05-14
  • 打赏
  • 举报
回复
1、B双网卡分别配制192.168.1.*和129.7.7.*,加静态路由(http://www.itkhl.com/Article/itkhl-18422.html)
2、A共享一个文件夹
3、B映射一个驱动器(E:\)指向A共享文件夹
4、B共享E:\
5、C访问B的共享
fox19850518 2009-05-14
  • 打赏
  • 举报
回复
去网上查查怎么建立VPN服务器。里面有详细的步骤。然后用VPN客户端拨号登录就可以了。
HJDY 2009-05-14
  • 打赏
  • 举报
回复
使用windows2003自带的功能!怎么设置?
YmirBoy 2009-05-14
  • 打赏
  • 举报
回复
B的机器上装ISA2006,建立访问策略,即可
SunFulong 2009-05-14
  • 打赏
  • 举报
回复
1. NAT
2. NAT + VPN
3. Proxy

6,849

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧