Cisco 2911 Router 配置范例

本文涉及的产品
公网NAT网关,每月750个小时 15CU
简介:
Cisco代码   收藏代码
  1. 2911#show run   
  2. Building configuration...   
  3.    
  4. Current configuration : 5167 bytes   
  5. !   
  6. ! Last configuration change at 08:22:41 UTC Wed May 2 2012 by cisco   
  7. ! NVRAM config last updated at 05:49:51 UTC Wed May 2 2012 by cisco   
  8. ! NVRAM config last updated at 05:49:51 UTC Wed May 2 2012 by cisco   
  9. version 15.1   
  10. service timestamps debug datetime msec   
  11. service timestamps log datetime msec   
  12. no service password-encryption   
  13. !   
  14. hostname 2911   
  15. !   
  16. boot-start-marker   
  17. boot-end-marker   
  18. !   
  19. !   
  20. logging buffered 51200 warnings   
  21. enable secret 5 $1$6CYn$PRxXJhbBSFS65Q/8HfIJu.   
  22. !   
  23. no aaa new-model   
  24. !   
  25. !   
  26. no ipv6 cef   
  27. ip source-route   
  28. ip cef   
  29. !   
  30. !   
  31. !   
  32. ip dhcp excluded-address 192.168.40.250 192.168.40.254   
  33. ip dhcp excluded-address 192.168.50.250 192.168.50.254   
  34. !   
  35. ip dhcp pool Song   
  36.  network 192.168.40.240 255.255.255.240   
  37.  default-router 192.168.40.254    
  38.  dns-server 208.67.222.222 208.67.220.220    
  39.  lease 7   
  40. !   
  41. ip dhcp pool Sheng   
  42.  network 192.168.50.128 255.255.255.128   
  43.  default-router 192.168.50.254    
  44.  dns-server 208.67.222.222 208.67.220.220    
  45.  lease 7   
  46. !   
  47. !   
  48. no ip domain lookup   
  49. ip domain name cisco.com   
  50. !   
  51. multilink bundle-name authenticated   
  52. !   
  53. !   
  54. crypto pki token default removal timeout 0   
  55. !   
  56. crypto pki trustpoint TP-self-signed-433792230   
  57.  enrollment selfsigned   
  58.  subject-name cn=IOS-Self-Signed-Certificate-433792230   
  59.  revocation-check none   
  60.  rsakeypair TP-self-signed-433792230   
  61. !   
  62. !   
  63. crypto pki certificate chain TP-self-signed-433792230   
  64.  certificate self-signed 01   
  65.   30820229 30820192 A0030201 02020101 300D0609 2A864886 F70D0101 05050030    
  66.   30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274    
  67.   69666963 6174652D 34333337 39323233 30301E17 0D313230 32313630 32303430    
  68.   335A170D 32303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F    
  69.   532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3433 33373932    
  70.   32333030 819F300D 06092A86 4886F70D 01010105 0003818D 00308189 02818100    
  71.   E227E899 E664CFEA 3E43A483 DD44A491 1B3C6C44 1D3C61B4 BC0F5E20 E6C19746    
  72.   A4558A00 4FBEB2D9 CC13A63C C97581DA 3F84AFFA 8FF22356 08E48D25 AFC42034    
  73.   B1690136 2871D7B9 69C69F78 6F6E766A 7DB95B73 E99B3613 AAF708C5 182BE89C    
  74.   798E02C8 BB016A10 81C5AE6A 4A2D38E2 D866D5E9 070C87AF 7D323594 EE8A2883    
  75.   02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F 0603551D    
  76.   23041830 168014FB 5B2A0956 C7F0A82B 3AFC39E5 7B3E270D 17129F30 1D060355    
  77.   1D0E0416 0414FB5B 2A0956C7 F0A82B3A FC39E57B 3E270D17 129F300D 06092A86    
  78.   4886F70D 01010505 00038181 00B10707 EEF7114E 68A39A24 D7365669 F9D8FE81    
  79.   ED70AD0C BDAEF025 87FD4757 9F9CBD56 9D5EF743 CDD8F84C 2AD8682C B347D84C    
  80.   C514A4BD E4FD17CB 93C02A68 E8BF35C7 2690CBDF D798EFC0 D68EF7CF A8FD94F8    
  81.   4EBDA7E7 06E4BD80 6A427477 33D9250D E98CBECD D8A0EA15 87997D69 24813DE6    
  82.   CF0935FF B09CD7AB 78DF8902 12   
  83.     quit   
  84. license udi pid CISCO2911/K9 sn FGL1607125L   
  85. !   
  86. !   
  87. username cisco privilege 15 secret 5 $1$JrAE$HttKboGTO2saXiStVoO1   
  88. username mgmt secret 5 $1$Z.np$KplCwsSkQox8zQV8NqR6/   
  89. !   
  90. redundancy   
  91. !   
  92. !   
  93. !   
  94. !   
  95. !    
  96. !   
  97. !   
  98. !   
  99. !   
  100. !   
  101. !   
  102. interface Embedded-Service-Engine0/0   
  103.  no ip address   
  104.  shutdown   
  105. !   
  106. interface GigabitEthernet0/0   
  107.  description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$   
  108.  ip address 10.10.10.1 255.255.255.248   
  109.  duplex auto   
  110.  speed auto   
  111. !            
  112. interface GigabitEthernet0/1   
  113.  description Song   
  114.  ip address 192.168.40.254 255.255.255.240   
  115.  ip nat inside   
  116.  ip virtual-reassembly in   
  117.  duplex auto   
  118.  speed auto   
  119. !   
  120. interface GigabitEthernet0/2   
  121.  description Sheng   
  122.  ip address 192.168.50.254 255.255.255.128   
  123.  ip nat inside   
  124.  ip virtual-reassembly in   
  125.  duplex full   
  126.  speed auto   
  127. !   
  128. interface FastEthernet0/0/0   
  129.  description Default-Shenzhen-IPLC-Hongkong-WAN   
  130.  ip address 202.134.11.134 255.255.255.252   
  131.  ip flow ingress   
  132.  ip nat outside   
  133.  ip virtual-reassembly in   
  134.  duplex auto   
  135.  speed auto   
  136. !   
  137. interface FastEthernet0/0/1   
  138.  description Shenzhen-IPLC-Hongkong-IDC   
  139.  ip address 172.16.0.254 255.255.255.0   
  140.  ip virtual-reassembly in   
  141.  duplex auto   
  142.  speed auto   
  143. !   
  144. router ospf 1   
  145.  network 172.16.0.0 0.0.0.255 area 1   
  146.  network 192.168.40.240 0.0.0.15 area 1   
  147.  network 192.168.50.128 0.0.0.127 area 1   
  148. !   
  149. ip forward-protocol nd   
  150. !   
  151. ip http server   
  152. ip http access-class 23   
  153. ip http authentication local   
  154. ip http secure-server   
  155. ip http timeout-policy idle 60 life 86400 requests 10000   
  156. ip flow-export source FastEthernet0/0/0   
  157. ip flow-export version 9   
  158. ip flow-export destination 192.168.2.5 2055   
  159. !   
  160. ip nat inside source list nat interface FastEthernet0/0/0 overload   
  161. ip nat inside source static tcp 192.168.2.1 3690 202.134.11.134 3690 extendable   
  162. ip route 0.0.0.0 0.0.0.0 202.134.11.133   
  163. !   
  164. ip access-list standard login   
  165.  permit 192.168.50.0 0.0.0.128   
  166.  permit 172.16.0.0 0.0.0.255   
  167.  permit 192.168.40.0 0.0.0.255   
  168.  permit 192.168.0.0 0.0.255.255   
  169. !   
  170. ip access-list extended nat   
  171.  permit ip any any   
  172. !   
  173. !   
  174. !   
  175. !   
  176. !   
  177. !   
  178. snmp-server community public RO   
  179. snmp-server location Shenzhen   
  180. snmp-server contact netkiller@msn.com   
  181. snmp-server host 192.168.2.5 ro    
  182. !   
  183. control-plane   
  184. !   
  185. !   
  186. !   
  187. line con 0   
  188.  login local   
  189. line aux 0   
  190. line 2   
  191.  no activation-character   
  192.  no exec   
  193.  transport preferred none   
  194.  transport input all   
  195.  transport output pad telnet rlogin lapb-ta mop udptn v120 ssh   
  196.  stopbits 1   
  197. line vty 0 4   
  198.  access-class login in   
  199.  privilege level 15   
  200.  login local   
  201.  transport input telnet ssh   
  202. line vty 5 15   
  203.  access-class 23 in   
  204.  privilege level 15   
  205.  login local   
  206.  transport input telnet ssh   
  207. !   
  208. scheduler allocate 20000 1000   
  209. end   
目录
相关文章
|
3月前
|
前端开发 JavaScript UED
探索应用程序的指路明灯:Route 和 Router 入门指南(下)
探索应用程序的指路明灯:Route 和 Router 入门指南(下)
探索应用程序的指路明灯:Route 和 Router 入门指南(下)
|
3月前
|
JavaScript 前端开发 API
探索应用程序的指路明灯:Route 和 Router 入门指南(上)
探索应用程序的指路明灯:Route 和 Router 入门指南(上)
探索应用程序的指路明灯:Route 和 Router 入门指南(上)
|
JavaScript 前端开发 网络架构
router路由简介与使用
Vue Router 是 Vue.js 官方的路由管理器。它和 Vue.js 的核心深度集成,让构建单页面应用变得易如反掌。路由实际上就是可以理解为指向,就是我在页面上点击一个按钮需要跳转到对应的页面,这就是路由跳转;
176 0
router路由简介与使用
|
数据安全/隐私保护 网络架构
|
网络架构 iOS开发 Linux
|
数据库 数据安全/隐私保护 网络协议