w_shuan 发表于 2012-10-19 17:55:27

cisco 2600路由器配置求教导

   我配置了基本的参数,现在可以正常上网,但是在路由器里ping DNS服务器不通,但通过笔记本可以通:

还有就是我想做个映射,从外网222.173.82.66映射到内网192.168.4.200的计算机上,该怎么做啊 ,帮忙看下我的running-config怎么修改?都了半天没整明白!!
代码入下:
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
   default-router 192.168.4.1
   dns-server 219.147.1.66
   dns-server 219.146.1.66
!
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 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 yinhejituan200602
login
!
!
!
end

victor_huang 发表于 2012-10-19 18:49:29

你的路由器ping不同DNS服务器哦。
外网222.173.82.66映射到内网192.168.4.200,可以做静态的NAT

w_shuan 发表于 2012-10-19 19:02:49

victor_huang 发表于 2012-10-19 18:49 static/image/common/back.gif
你的路由器ping不同DNS服务器哦。
外网222.173.82.66映射到内网192.168.4.200,可以做静态的NAT

但是我通过路由器的电脑可以ping通啊,还有我做静态映射,别的内网IP还能上网吗?
页: [1]
查看完整版本: cisco 2600路由器配置求教导