中国网管论坛's Archiver

lzq122 发表于 2007-9-25 09:00

思科端口映射的问题

现在有这样一个网络环境。[url=http://detail.zol.com.cn/switche_index/subcate46_list_1.html][color=black]交换机[/color][/url](cisco3560)接[url=http://detail.zol.com.cn/router_index/subcate44_list_1.html][color=black]路由器[/color][/url](cisco2800)上网,有固定IP。交换机里划分了5个VLAN。如今需要将VLAN2上的一台主机(EX:192.168.2.100)的1433端口映射到路由器上的(EX:10.10.10.0)1433端口。配置命令如下:
[font=Times New Roman]interface FastEthernet0/0[/font]
[font=Times New Roman]
description NeiKou[/font]
[font=Times New Roman]
ip address 192.168.100.2 255.255.255.252[/font]
[font=Times New Roman]
[size=4][b]ip nat inside[/b][/size][/font]
[font=Times New Roman]
duplex auto[/font]
[font=Times New Roman]
speed auto[/font]
[font=Times New Roman]![/font]
[font=Times New Roman]interface FastEthernet0/1[/font]
[font=Times New Roman]
description WaiKou[/font]
[font=Times New Roman]
ip address 10.10.10.0 255.255.255.252[/font]
[font=Times New Roman]
[size=4][b]ip nat outside[/b][/size][/font]
[font=Times New Roman]
duplex auto[/font]
[font=Times New Roman]
speed auto[/font]
[font=Times New Roman]![/font]
[font=Times New Roman]no ip http server[/font]
[font=Times New Roman]ip http authentication local[/font]
[font=Times New Roman]ip nat inside source list 11 interface FastEthernet0/1 overload[/font]
[font=Times New Roman][size=4][b]ip nat inside source static tcp 192.168.2.100 1433 10.10.10.0 1433 extendable[/b][/size][/font]


交换机(192.168.100.1)上的VLAN2:[font=Times New Roman]interface FastEthernet0/4[/font]
[font=Times New Roman][/font]
[font=Times New Roman]但不能正常访问,我怀疑是VLAN的缘故。请高手们赐教。。。。。![/font]

yonx 发表于 2007-9-25 09:11

10.10.10.0?这是网络号啊,不是可用的IP地址。

lzq122 发表于 2007-9-25 09:51

回复 #2 yonx 的帖子

我随便给的一个地址,不用管。你就当是个固定IP了

yonx 发表于 2007-9-25 10:04

是吗?应该和VLAN无关,因为VLAN也要通过路由器进行互通的

lzq122 发表于 2007-9-25 11:35

回复 #4 yonx 的帖子

可你看上面的配置有问题吗?
还有是不是1433端口需要独立开呀?

yonx 发表于 2007-9-25 12:58

光这个配置看不出问题来,不知道其他配置有没有问题

随便什么端口不都一样配置吗

lzq122 发表于 2007-9-25 13:42

回复 #6 yonx 的帖子

其它上都正常的。以前在没VLAN的网络中实现过。可现在踫到这问题

lzq122 发表于 2007-9-27 16:54

回复 #6 yonx 的帖子

问题已解决
内网是不能直接访问的,而外网可以访问。

yifei191016110 发表于 2007-10-13 22:08

xuexie xia

qwok888 发表于 2007-10-15 13:28

.......有没有图。。。然我看看阿

页: [1]

Powered by Discuz! Archiver 6.1.0  © 1999-2008 bbs.bitsCN.com