GZICP.com   
 
    返回首页
    联系我们
 
 
     

通过DDN专线访问Internet

www.gzicp.com   2004年6月8日 23:56:37
 
  service timestamps debug uptime                
  service timestamps log uptime                    
  service password-encryption                        
  no service tcp-small-servers                      
  no service udp-small-servers                      
  !                                                                            
  hostname <您路由器的名称>

  !                                                                            
  enable password <进入特权模式的口令>

  !                                                                            
  no ip name-server                                            
  !                                                                            
  ip subnet-zero                                                  
  no ip domain-lookup                                        
  ip routing                                                          
  !                                                                            
  interface Ethernet 0                                      
  no shutdown                                                        
  description connected to EthernetLAN      
  ip address <以太网口IP地址及子网掩码>

  ip nat inside                                                    
  keepalive 10                                                      
  !                                                                            
  interface Serial 0                                          
  no shutdown                                                        
  description connected to Internet            
  ip address <广域网口IP地址及子网掩码>

  ip nat outside                                                  
  encapsulation hdlc                                          
  !                                                                            
  ! Access Control List 1                                
  !                                                                            
  no access-list 1                                              
  access-list 1 permit <内网网段地址及子网掩码反码>

  !                                                                            
  ! Dynamic NAT                                                    
  !                                                                            
  ip nat translation timeout 86400              
  ip nat translation tcp-timeout 86400      
  ip nat translation udp-timeout 300          
  ip nat translation dns-timeout 60            
  ip nat translation finrst-timeout 60      
  ip nat pool <外部地址池名称> <外部地址池范围> netmask <外部地址掩码>

  ip nat inside source list 1 pool <外部地址池名称> overload

  !                                                                            
  router rip                                                          
  version 2                                                            
  network <内网网段地址>

  passive-interface Serial 0                          
  no auto-summary                                                
  !                                                                            
  !                                                                            
  ip classless                                                      
  !                                                                            
  ! IP Static Routes                                          
  ip route 0.0.0.0 0.0.0.0 Serial 0            
  no ip http server                                            
  snmp-server community public RO                
  no snmp-server location                                
  no snmp-server contact                                  
  !                                                                            
  line console 0                                                  
  exec-timeout 0 0                                              
  password <从控制台端口登录进用户模式所需口令>

  login                                                                    
  !                                                                            
  line vty 0 4                                                      
  password

  login                                                                    
  !                                                                            
  end                                                                       

 

 

ChinaITLab 

最新文章
·DDN配置及26XX口令恢复  (2004年06月09日)
·调试好的ISDN备份DDN的脚本  (2004年06月09日)
·Cisco2501路由器DDN配置方法  (2004年06月09日)
·DDN经典实例  (2004年06月08日)
·两个局域网通过DDN连接问题  (2004年06月08日)
·DDN网络的优化  (2004年06月08日)





 
 
Copyright © 1999-2005 GZICP.com All Rights Reserved