雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1135|回复: 2

[讨论/求助] cisco2000路由器NAT求助,急。。。。

[复制链接]
发表于 2012-10-21 08:04:55 | 显示全部楼层 |阅读模式


为什么连接在路由器下得计算机可以ping通baidu,直接在路由器上ping不同,到DNS服务器219.146.1.66都不通?


我想在路由器上做个PAT,通过访问外网能映射的内网的192.168.4.200的设备上,同时内网的其他设备还可以上网,改怎么修改我的配置啊,求帮忙!!
Router#show running-config
Building configuration...
Current configuration : 1140 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no network-clock-participate slot 1
no network-clock-participate wic 0
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip dhcp pool yinhe
   network 192.168.4.0 255.255.255.0
   dns-server 219.146.1.66
   default-router 192.168.4.1
!
ip name-server 219.147.1.66
ip name-server 219.146.1.66
no ftp-server write-enable
!
!
!
!
interface FastEthernet0/0
ip address 222.173.82.66 255.255.255.252
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
ip default-gateway 222.173.82.65
ip nat pool yinhe 222.173.82.66 222.173.82.66 prefix-length 30
ip nat inside source list 101 pool yinhe overload
ip nat inside source static 192.168.4.200 222.173.82.66 extendable
ip classless
ip route 0.0.0.0 0.0.0.0 222.173.82.65
ip http server
!
access-list 101 permit ip 192.168.4.0 0.0.0.255 any
!
line con 0
line aux 0
line vty 0 4
password 200602
login

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2012-10-21 09:34:42 | 显示全部楼层
用一个IP既用pat又用nat吗
发表于 2012-10-22 09:49:08 | 显示全部楼层
1.你的计算机上能够ping通域名,表示你的计算机上的DNS工作正常,并且从内网到外网的通信时正常的。
2.你的计算机的IP地址和DNS是不是从路由器上的DHCP池里获取的?
3.路由器上的 ip  domain-lookup 打开?使用inside口做源地址ping DNS服务器的IP地址。
4.ip default-gateway 222.173.82.65 ,只有在关闭ip routing的时候有点用。
5.只有一个公网地址,服务器的映射就做端口映射吧。需要什么服务就开什么端口。
6.ip nat inside source list 【ACL-号】interface fastethernet 0/0 overload
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-3-29 03:43 , Processed in 0.082011 second(s), 23 queries , Gzip On.

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