取消
显示结果 
搜索替代 
您的意思是: 
cancel
7632
查看次数
0
有帮助
6
回复

2811 映射

yoyoskay
Level 1
Level 1
您好,我在使用思科路由器2811过程中,遇到一点问题,希望通过大家的力量,解决问题 谢谢。
我在配置映射时,遇到问题,我映射的端口是62370和1433,ip是221.配置如下所示,配置完后,无法在网内使用ip 221,即使路由器只挂一台单机,配置ip 221,路由器提示说网内已经存在一个ip为221的主机,不知道哪里出现问题,麻烦您帮我看下。谢谢
User Access Verification
Password:
Router>enable
Password:
Router#show run
Building configuration...
Current configuration : 1373 bytes
!
! Last configuration change at 07:58:38 UTC Wed Apr 15 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable password 保密
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!
ip cef
!
!
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
!
!
!
!
license udi pid CISCO2811C/K9 sn
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 123.20.155.62 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.2.254 255.255.255.0 secondary
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
ip forward-protocol nd
ip http server
no ip http secure-server
!
!
ip nat inside source list 100 interface FastEthernet0/0 overload
ip nat outside source static tcp 123.20.155.62 1433 192.168.1.221 1433 extendabl
e
ip nat outside source static tcp 123.20.155.62 62370 192.168.1.221 62370 extenda
ble
ip route 0.0.0.0 0.0.0.0 111.20.155.61
!
access-list 100 permit ip 192.168.0.0 0.0.255.255 any
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
end
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 123.20.155.61 2 286e.d40d.991e ARPA FastEthernet0/0
Internet 123.20.155.62 - 08d0.9fd2.eb80 ARPA FastEthernet0/0
Internet 192.168.1.45 0 Incomplete ARPA
Internet 192.168.1.111 3 0024.1dc6.42d4 ARPA FastEthernet0/1
Internet 192.168.1.220 1 0024.1dc6.42d4 ARPA FastEthernet0/1
Internet 192.168.1.221 - 08d0.9fd2.eb81 ARPA FastEthernet0/1
Internet 192.168.1.254 - 08d0.9fd2.eb81 ARPA FastEthernet0/1
Internet 192.168.2.254 - 08d0.9fd2.eb81 ARPA FastEthernet0/1
Router#
Router#
1 个已接受解答

已接受的解答

huoran1234
Spotlight
Spotlight
不知道你的具体需求是什么,如果只是想把内网的221某些端口映射为外部的,应该去掉
ip nat outside source static tcp 123.20.155.62 1433 192.168.1.221 1433 extendable
ip nat outside source static tcp 123.20.155.62 62370 192.168.1.221 62370 extendable
改为
ip nat inside source static tcp 192.168.1.221 1433 123.20.155.62 1433 extendable
ip nat inside source static tcp 192.168.1.221 62370 123.20.155.62 62370 extendable

在原帖中查看解决方案

6 条回复6

huoran1234
Spotlight
Spotlight
不知道你的具体需求是什么,如果只是想把内网的221某些端口映射为外部的,应该去掉
ip nat outside source static tcp 123.20.155.62 1433 192.168.1.221 1433 extendable
ip nat outside source static tcp 123.20.155.62 62370 192.168.1.221 62370 extendable
改为
ip nat inside source static tcp 192.168.1.221 1433 123.20.155.62 1433 extendable
ip nat inside source static tcp 192.168.1.221 62370 123.20.155.62 62370 extendable

297481507
Level 1
Level 1
学习学习

13nash
Level 8
Level 8
好像有人发现问题了

Yanli Sun
Community Manager
Community Manager
您好,已经有人回复您的问题了,不知您的问题是否已经得到满意答复,如果是请您选择“已解决”,感谢您的支持~~~

fortune
VIP Alumni
VIP Alumni
1.inside source :这种NAT 是数据初始于inside一方向outside 方发送,在outside接口执行翻译,把源地址翻译的动作。
2.outside source:这种NAT是 初始于outside一方 向inside方发送,在inside接口执行翻译,把源地址翻译的动作。
3.inside destination: 这种NAT 是连接初始于outside 一方,向inside方发送,在outside接口执行翻译操作,把目标地址翻译的动作。
4.outside destination:这种NAT是初始于 inside方向,向outside方发送,在inside接口执行翻译,把目标地址翻译的动作。

fortune
VIP Alumni
VIP Alumni
你的NAT 配置错了,ip nat outside 是匹配某个来自外网的source,但是你outside 是N多不同的source
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接