中国网管论坛's Archiver

zlw8677 发表于 2007-5-28 10:54

NAT 配置

Router#sh run            
Building configuration...                        
Current configuration : 895 bytes                                 
!
version 12.2            
service timestamps debug uptime                              
service timestamps log uptime                             
no service password-encryption                              
!
hostname Router               
!
enable secret 5 $1$q/VK$6wtzbW35PuHL0OD6qqZ.H1                                             
!
ip subnet-zero              
!
!
!
!
!
!
interface FastEthernet0/0                        
ip address 192.168.1.254 255.255.255.0                                       
ip nat inside              
duplex auto            
speed auto           
!
interface Serial0/0                  
no ip address              
shutdown         
no fair-queue              
!
interface FastEthernet0/1                        
bandwidth 100000                 
ip address 61.177.137.X  255.255.255.248                           
ip nat outside               
no ip mroute-cache                  
duplex auto            
speed auto           
!
interface Serial0/1
no ip address
shutdown
!
ip nat pool  wl 61.177.137.X 61.177.137.X netmask 255.255.255.248
ip nat inside source list 1 pool wl overload
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1
ip http server
ip pim bidir-enable
!
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
大家帮我看看我配的NAT对不对啊?

zlw8677 发表于 2007-5-28 11:26

配好后不通,邦我看看哪出错了,电信网关能通的,客户端就不能上网。

yonx 发表于 2007-5-28 19:19

采用overload只需要一个IP地址就够了,不需要地址池,但是错误很可能不在这里,可以使用debug ip nat命令进行调试

怕瓦落地 发表于 2007-5-28 19:43

从sh run里看出,是你的配置顺序出错了吧。

既然要在F0/1端口上使用nat功能,  
应该在该接口下直接使用ip nat outside 。

页: [1]

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