免费注册 查看新帖 |

Chinaunix

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

help!! nat问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-10 11:09 |只看该作者 |倒序浏览
rotuer A
-------------------------------------------
Building configuration ...
!
service password-encryption
service timestamps debug
!
hostname router
!
interface ethernet 1
  ip address 10.54.1.200 255.255.255.0
  ip nat outside
!
interface ethernet 2
!
interface serial 1
  encapsulation hdlc
  ip address 10.54.127.229 255.255.255.252
  ip nat inside
!
interface serial 2
!
interface async 1
!
interface async 2
!
line vty 0 31
!
ip route 10.54.10.0 255.255.255.0 10.54.127.230
ip nat pool snail 10.54.1.201 10.54.1.201 netmask 255.255.255.0
ip nat inside source list 2 pool snail
!
access-list 2 permit 10.54.10.252 0.0.0.0
!
end


router B
---------------------------------------------------------------

snail_config#sh run
building configuration...

nodename snail
e0
ip add 10.54.10.252    255.255.255.0
quit
s0
encapsulate hdlc
ip add 10.54.127.230   255.255.255.252
map add 10.54.127.229
quit
route add 10.0.0.0        255.0.0.0       10.54.127.229   1




两路由器配置如上。
希望实现把router B的10.54.10.252 在router A上nat转换成10.54.1.201
现在是,在router A 上可以PING 通10.54.10.252。 但ping不通10.54.1.201

我的配置对嘛?为什么ping不通10.54.1.201呢?

论坛徽章:
0
2 [报告]
发表于 2004-03-10 11:17 |只看该作者

help!! nat问题

10.54.1.201是pool地址,你试试用另外一种转换:
ip nat inside source static 10.54.10.252  10.54.1.201

论坛徽章:
0
3 [报告]
发表于 2004-03-10 11:54 |只看该作者

help!! nat问题

试过了,还是不行啊

救命啊........

论坛徽章:
0
4 [报告]
发表于 2004-03-10 12:05 |只看该作者

help!! nat问题

pool地址不要用10.54.1.201.用别的ip,在用楼上的命令.

论坛徽章:
0
5 [报告]
发表于 2004-03-10 12:49 |只看该作者

help!! nat问题

access-list 2 permit 10.54.10.252 0.0.0.0
换成:
access-list 101 permit ip 10.54.10.252 0.0.0.0 0.0.0.0 255.255.255.255
ip net inside source list 101 pool snail
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP