当前位置:   article > 正文

多出口NAT策略路由案例_match ip address 10

match ip address 10

配置思路:

  1. 基础拓扑搭建.
  2. 划分VLAN,配置access/trunk/SVI,IP 地址
  3. 配置内网路由(汇聚于核心跑OSPF)
  4. 规划外网路由与NAT

 

通过配置实现:

  1. 宿舍区访问互联网使用电信出口.教学区使用联通出口
  2. 任何一条链路故障,能够自动切换
  3. 宿舍区和教学区均使用路由器出口地址做PAT

目录

配置思路:

通过配置实现:

R1

liantong

dianxin

sw2

pc1

pc2


如何实现,让宿舍区192. 168.10.0走电信
如何实现,让教学区192. 168.20.0走联通
access-list 10 permit 192.1 68.10.0 0.0.0.255 //匹配宿舍区 VLAN10流量
route-map fenliu permit 10
match ip address 10//宿舍区流量
set ip default next-hop 50.1.1.2 60.1.1.2 //宿舍区流量优先走电信出口,电信down走联通.
access-list 20 permit 192.168.20.0 0.0.0.255 //匹配教学区 VLAN20流量
route- map fenliu permit 20
match ip address 20
//教学区流量
set set ip next-hop 60.1.1.2 50.1.1.2 //教学区 流量优先走联通出口,联通down走电信
interface FastEthernet0/0
ip policy route-map fenliu


interface FastEthernet0/1
ip policy route-map fenliu
 

如何让走电信出口的,利用电信的NAT地址池/电信接口地址做PAT(为何要这样?因为如果你使用了电信的NAT地址从联通出去了,数据包可以回来吗?如果你访问的电信的地址,网通ISP没有这条目的地的路由就无法通信)
access-list 10 permit 192. 168.1.0 0.0.0.255 (上面已经配置过,无需再次配置)
ip nat inside source list 10 interface s 1/0 overload
access-list 20 permit 192. 168.2.0 0.0.0.255 (上面已经配置过,无需再次配置)
ip nat inside source list 20 interface s1/1 overload
步骤

R1

  1. R1(config)#do sh run
  2. Building configuration...
  3. Current configuration : 2712 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. !
  10. hostname R1
  11. !
  12. boot-start-marker
  13. boot-end-marker
  14. !
  15. !
  16. no aaa new-model
  17. !
  18. resource policy
  19. !
  20. ip subnet-zero
  21. no ip icmp rate-limit unreachable
  22. !
  23. !
  24. ip tcp synwait-time 5
  25. ip cef
  26. no ip domain lookup
  27. !
  28. !
  29. !
  30. !
  31. !
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. !
  40. !
  41. !
  42. !
  43. !
  44. !
  45. !
  46. !
  47. !
  48. !
  49. !
  50. interface FastEthernet0/0
  51. ip address 30.1.1.2 255.255.255.0
  52. ip nat inside
  53. ip virtual-reassembly
  54. ip policy route-map cisco
  55. duplex auto
  56. speed auto
  57. !
  58. interface FastEthernet0/1
  59. ip address 40.1.1.2 255.255.255.0
  60. ip nat inside
  61. ip virtual-reassembly
  62. ip policy route-map cisco
  63. duplex auto
  64. speed auto
  65. !
  66. interface Serial1/0
  67. ip address 50.1.1.1 255.255.255.0
  68. ip nat outside
  69. ip virtual-reassembly
  70. serial restart-delay 0
  71. !
  72. interface Serial1/1
  73. ip address 60.1.1.1 255.255.255.0
  74. ip nat outside
  75. ip virtual-reassembly
  76. serial restart-delay 0
  77. !
  78. interface Serial1/2
  79. no ip address
  80. shutdown
  81. serial restart-delay 0
  82. !
  83. interface Serial1/3
  84. no ip address
  85. shutdown
  86. serial restart-delay 0
  87. !
  88. interface Serial2/0
  89. no ip address
  90. shutdown
  91. serial restart-delay 0
  92. !
  93. interface Serial2/1
  94. no ip address
  95. shutdown
  96. serial restart-delay 0
  97. !
  98. interface Serial2/2
  99. no ip address
  100. shutdown
  101. serial restart-delay 0
  102. !
  103. interface Serial2/3
  104. no ip address
  105. shutdown
  106. serial restart-delay 0
  107. !
  108. interface Serial3/0
  109. no ip address
  110. shutdown
  111. serial restart-delay 0
  112. !
  113. interface Serial3/1
  114. no ip address
  115. shutdown
  116. serial restart-delay 0
  117. !
  118. interface Serial3/2
  119. no ip address
  120. shutdown
  121. serial restart-delay 0
  122. !
  123. interface Serial3/3
  124. no ip address
  125. shutdown
  126. serial restart-delay 0
  127. !
  128. router ospf 1
  129. router-id 1.1.1.1
  130. log-adjacency-changes
  131. network 30.1.1.0 0.0.0.255 area 0
  132. network 40.1.1.0 0.0.0.255 area 0
  133. default-information originate always
  134. !
  135. router rip
  136. version 2
  137. network 50.0.0.0
  138. network 60.0.0.0
  139. no auto-summary
  140. !
  141. ip classless
  142. !
  143. no ip http server
  144. no ip http secure-server
  145. !
  146. ip nat inside source route-map dianxin interface Serial1/0 overload
  147. ip nat inside source route-map liantong interface Serial1/1 overload
  148. !
  149. access-list 10 permit 192.168.10.0 0.0.0.255
  150. access-list 20 permit 192.168.20.0 0.0.0.255
  151. no cdp log mismatch duplex
  152. !
  153. route-map liantong permit 20
  154. match interface Serial1/1
  155. !
  156. route-map cisco permit 10
  157. match ip address 10
  158. set ip next-hop 50.1.1.2 60.1.1.2
  159. !
  160. route-map cisco permit 20
  161. match ip address 20
  162. set ip next-hop 60.1.1.2 50.1.1.2
  163. !
  164. route-map dianxin permit 10
  165. match interface Serial1/0
  166. !
  167. !
  168. !
  169. !
  170. control-plane
  171. !
  172. !
  173. !
  174. !
  175. !
  176. !
  177. gatekeeper
  178. shutdown
  179. !
  180. !
  181. line con 0
  182. exec-timeout 0 0
  183. privilege level 15
  184. logging synchronous
  185. stopbits 1
  186. line aux 0
  187. exec-timeout 0 0
  188. privilege level 15
  189. logging synchronous
  190. stopbits 1
  191. line vty 0 4
  192. login
  193. !
  194. !
  195. end
  196. R1(config)#

liantong

  1. liantong#sh run
  2. Building configuration...
  3. Current configuration : 1136 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. !
  10. hostname liantong
  11. !
  12. boot-start-marker
  13. boot-end-marker
  14. !
  15. !
  16. no aaa new-model
  17. memory-size iomem 5
  18. no ip icmp rate-limit unreachable
  19. ip tcp synwait-time 5
  20. !
  21. !
  22. ip cef
  23. no ip domain lookup
  24. !
  25. !
  26. !
  27. !
  28. !
  29. !
  30. !
  31. !
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. !
  40. !
  41. !
  42. interface Loopback0
  43. ip address 200.1.1.1 255.255.255.0
  44. !
  45. interface FastEthernet0/0
  46. ip address 90.1.1.1 255.255.255.0
  47. duplex auto
  48. speed auto
  49. !
  50. interface Serial1/0
  51. no ip address
  52. shutdown
  53. serial restart-delay 0
  54. !
  55. interface Serial1/1
  56. ip address 60.1.1.2 255.255.255.0
  57. serial restart-delay 0
  58. !
  59. interface Serial1/2
  60. no ip address
  61. shutdown
  62. serial restart-delay 0
  63. !
  64. interface Serial1/3
  65. no ip address
  66. shutdown
  67. serial restart-delay 0
  68. !
  69. router rip
  70. version 2
  71. network 60.0.0.0
  72. network 90.0.0.0
  73. network 200.1.1.0
  74. no auto-summary
  75. !
  76. no ip http server
  77. !
  78. !
  79. !
  80. no cdp log mismatch duplex
  81. !
  82. !
  83. !
  84. control-plane
  85. !
  86. !
  87. !
  88. !
  89. !
  90. !
  91. !
  92. !
  93. !
  94. line con 0
  95. exec-timeout 0 0
  96. privilege level 15
  97. logging synchronous
  98. line aux 0
  99. exec-timeout 0 0
  100. privilege level 15
  101. logging synchronous
  102. line vty 0 4
  103. login
  104. !
  105. !
  106. end
  107. liantong#

dianxin

  1. dianxin(config-if)#do sh run
  2. Building configuration...
  3. Current configuration : 1172 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. !
  10. hostname dianxin
  11. !
  12. boot-start-marker
  13. boot-end-marker
  14. !
  15. !
  16. no aaa new-model
  17. memory-size iomem 5
  18. no ip icmp rate-limit unreachable
  19. ip tcp synwait-time 5
  20. !
  21. !
  22. ip cef
  23. no ip domain lookup
  24. !
  25. !
  26. !
  27. !
  28. !
  29. !
  30. !
  31. !
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. !
  40. !
  41. !
  42. interface Loopback0
  43. ip address 100.1.1.1 255.255.255.0
  44. !
  45. interface Loopback1
  46. no ip address
  47. !
  48. interface FastEthernet0/0
  49. ip address 90.1.1.2 255.255.255.0
  50. duplex auto
  51. speed auto
  52. !
  53. interface Serial1/0
  54. ip address 50.1.1.2 255.255.255.0
  55. serial restart-delay 0
  56. !
  57. interface Serial1/1
  58. no ip address
  59. shutdown
  60. serial restart-delay 0
  61. !
  62. interface Serial1/2
  63. no ip address
  64. shutdown
  65. serial restart-delay 0
  66. !
  67. interface Serial1/3
  68. no ip address
  69. shutdown
  70. serial restart-delay 0
  71. !
  72. router rip
  73. version 2
  74. network 50.0.0.0
  75. network 90.0.0.0
  76. network 100.0.0.0
  77. no auto-summary
  78. !
  79. no ip http server
  80. !
  81. !
  82. !
  83. no cdp log mismatch duplex
  84. !
  85. !
  86. !
  87. control-plane
  88. !
  89. !
  90. !
  91. !
  92. !
  93. !
  94. !
  95. !
  96. !
  97. line con 0
  98. exec-timeout 0 0
  99. privilege level 15
  100. logging synchronous
  101. line aux 0
  102. exec-timeout 0 0
  103. privilege level 15
  104. logging synchronous
  105. line vty 0 4
  106. login
  107. !
  108. !
  109. end
  110. dianxin(config-if)#

sw1

  1. SW1(config-if)#do sh run
  2. Building configuration...
  3. Current configuration : 2912 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. no service dhcp
  10. !
  11. hostname SW1
  12. !
  13. boot-start-marker
  14. boot-end-marker
  15. !
  16. !
  17. no aaa new-model
  18. memory-size iomem 5
  19. no ip icmp rate-limit unreachable
  20. ip cef
  21. ip tcp synwait-time 5
  22. !
  23. !
  24. !
  25. !
  26. no ip domain lookup
  27. !
  28. multilink bundle-name authenticated
  29. !
  30. !
  31. !
  32. !
  33. macro name add_vlan
  34. end
  35. vlan database
  36. vlan $v
  37. exit
  38. @
  39. macro name del_vlan
  40. end
  41. vlan database
  42. no vlan $v
  43. exit
  44. @
  45. !
  46. vtp file nvram:vlan.dat
  47. !
  48. !
  49. !
  50. !
  51. !
  52. !
  53. interface FastEthernet0/0
  54. description *** Unused for Layer2 EtherSwitch ***
  55. ip address 30.1.1.1 255.255.255.0
  56. duplex auto
  57. speed auto
  58. !
  59. interface FastEthernet0/1
  60. description *** Unused for Layer2 EtherSwitch ***
  61. no ip address
  62. shutdown
  63. duplex auto
  64. speed auto
  65. !
  66. interface FastEthernet1/0
  67. switchport access vlan 10
  68. duplex full
  69. speed 100
  70. !
  71. interface FastEthernet1/1
  72. duplex full
  73. speed 100
  74. !
  75. interface FastEthernet1/2
  76. duplex full
  77. speed 100
  78. !
  79. interface FastEthernet1/3
  80. duplex full
  81. speed 100
  82. !
  83. interface FastEthernet1/4
  84. duplex full
  85. speed 100
  86. !
  87. interface FastEthernet1/5
  88. duplex full
  89. speed 100
  90. !
  91. interface FastEthernet1/6
  92. duplex full
  93. speed 100
  94. !
  95. interface FastEthernet1/7
  96. duplex full
  97. speed 100
  98. !
  99. interface FastEthernet1/8
  100. duplex full
  101. speed 100
  102. !
  103. interface FastEthernet1/9
  104. duplex full
  105. speed 100
  106. !
  107. interface FastEthernet1/10
  108. duplex full
  109. speed 100
  110. !
  111. interface FastEthernet1/11
  112. duplex full
  113. speed 100
  114. !
  115. interface FastEthernet1/12
  116. duplex full
  117. speed 100
  118. !
  119. interface FastEthernet1/13
  120. duplex full
  121. speed 100
  122. !
  123. interface FastEthernet1/14
  124. duplex full
  125. speed 100
  126. !
  127. interface FastEthernet1/15
  128. duplex full
  129. speed 100
  130. !
  131. interface Vlan1
  132. no ip address
  133. shutdown
  134. !
  135. interface Vlan10
  136. ip address 192.168.10.254 255.255.255.0
  137. !
  138. router ospf 1
  139. router-id 2.2.2.2
  140. log-adjacency-changes
  141. network 30.1.1.0 0.0.0.255 area 0
  142. network 192.168.10.0 0.0.0.255 area 0
  143. !
  144. !
  145. !
  146. no ip http server
  147. no ip http secure-server
  148. !
  149. no cdp log mismatch duplex
  150. !
  151. !
  152. !
  153. !
  154. !
  155. control-plane
  156. !
  157. !
  158. banner exec ^C
  159. ***************************************************************
  160. This is a normal Router with a Switch module inside (NM-16ESW)
  161. It has been pre-configured with hard-coded speed and duplex
  162. To create vlans use the command "vlan database" in exec mode
  163. After creating all desired vlans use "exit" to apply the config
  164. To view existing vlans use the command "show vlan-switch brief"
  165. Alias(exec) : vl - "show vlan-switch brief" command
  166. Alias(configure): va X - macro to add vlan X
  167. Alias(configure): vd X - macro to delete vlan X
  168. ***************************************************************
  169. ^C
  170. alias configure va macro global trace add_vlan $v
  171. alias configure vd macro global trace del_vlan $v
  172. alias exec vl show vlan-switch brief
  173. !
  174. line con 0
  175. exec-timeout 0 0
  176. privilege level 15
  177. logging synchronous
  178. line aux 0
  179. exec-timeout 0 0
  180. privilege level 15
  181. logging synchronous
  182. line vty 0 4
  183. login
  184. !
  185. !
  186. end
  187. SW1(config-if)#

sw2

  1. SW2(config-router)#do sh run
  2. Building configuration...
  3. Current configuration : 2912 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. no service dhcp
  10. !
  11. hostname SW2
  12. !
  13. boot-start-marker
  14. boot-end-marker
  15. !
  16. !
  17. no aaa new-model
  18. memory-size iomem 5
  19. no ip icmp rate-limit unreachable
  20. ip cef
  21. ip tcp synwait-time 5
  22. !
  23. !
  24. !
  25. !
  26. no ip domain lookup
  27. !
  28. multilink bundle-name authenticated
  29. !
  30. !
  31. !
  32. !
  33. macro name add_vlan
  34. end
  35. vlan database
  36. vlan $v
  37. exit
  38. @
  39. macro name del_vlan
  40. end
  41. vlan database
  42. no vlan $v
  43. exit
  44. @
  45. !
  46. vtp file nvram:vlan.dat
  47. !
  48. !
  49. !
  50. !
  51. !
  52. !
  53. interface FastEthernet0/0
  54. description *** Unused for Layer2 EtherSwitch ***
  55. no ip address
  56. shutdown
  57. duplex auto
  58. speed auto
  59. !
  60. interface FastEthernet0/1
  61. description *** Unused for Layer2 EtherSwitch ***
  62. ip address 40.1.1.1 255.255.255.0
  63. duplex auto
  64. speed auto
  65. !
  66. interface FastEthernet1/0
  67. switchport access vlan 20
  68. duplex full
  69. speed 100
  70. !
  71. interface FastEthernet1/1
  72. duplex full
  73. speed 100
  74. !
  75. interface FastEthernet1/2
  76. duplex full
  77. speed 100
  78. !
  79. interface FastEthernet1/3
  80. duplex full
  81. speed 100
  82. !
  83. interface FastEthernet1/4
  84. duplex full
  85. speed 100
  86. !
  87. interface FastEthernet1/5
  88. duplex full
  89. speed 100
  90. !
  91. interface FastEthernet1/6
  92. duplex full
  93. speed 100
  94. !
  95. interface FastEthernet1/7
  96. duplex full
  97. speed 100
  98. !
  99. interface FastEthernet1/8
  100. duplex full
  101. speed 100
  102. !
  103. interface FastEthernet1/9
  104. duplex full
  105. speed 100
  106. !
  107. interface FastEthernet1/10
  108. duplex full
  109. speed 100
  110. !
  111. interface FastEthernet1/11
  112. duplex full
  113. speed 100
  114. !
  115. interface FastEthernet1/12
  116. duplex full
  117. speed 100
  118. !
  119. interface FastEthernet1/13
  120. duplex full
  121. speed 100
  122. !
  123. interface FastEthernet1/14
  124. duplex full
  125. speed 100
  126. !
  127. interface FastEthernet1/15
  128. duplex full
  129. speed 100
  130. !
  131. interface Vlan1
  132. no ip address
  133. shutdown
  134. !
  135. interface Vlan20
  136. ip address 192.168.20.254 255.255.255.0
  137. !
  138. router ospf 1
  139. router-id 3.3.3.3
  140. log-adjacency-changes
  141. network 40.1.1.0 0.0.0.255 area 0
  142. network 192.168.20.0 0.0.0.255 area 0
  143. !
  144. !
  145. !
  146. no ip http server
  147. no ip http secure-server
  148. !
  149. no cdp log mismatch duplex
  150. !
  151. !
  152. !
  153. !
  154. !
  155. control-plane
  156. !
  157. !
  158. banner exec ^C
  159. ***************************************************************
  160. This is a normal Router with a Switch module inside (NM-16ESW)
  161. It has been pre-configured with hard-coded speed and duplex
  162. To create vlans use the command "vlan database" in exec mode
  163. After creating all desired vlans use "exit" to apply the config
  164. To view existing vlans use the command "show vlan-switch brief"
  165. Alias(exec) : vl - "show vlan-switch brief" command
  166. Alias(configure): va X - macro to add vlan X
  167. Alias(configure): vd X - macro to delete vlan X
  168. ***************************************************************
  169. ^C
  170. alias configure va macro global trace add_vlan $v
  171. alias configure vd macro global trace del_vlan $v
  172. alias exec vl show vlan-switch brief
  173. !
  174. line con 0
  175. exec-timeout 0 0
  176. privilege level 15
  177. logging synchronous
  178. line aux 0
  179. exec-timeout 0 0
  180. privilege level 15
  181. logging synchronous
  182. line vty 0 4
  183. login
  184. !
  185. !
  186. end
  187. SW2(config-router)#

pc1

  1. pc1#sh run
  2. Building configuration...
  3. Current configuration : 1587 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. !
  10. hostname pc1
  11. !
  12. boot-start-marker
  13. boot-end-marker
  14. !
  15. !
  16. no aaa new-model
  17. memory-size iomem 5
  18. no ip routing
  19. no ip icmp rate-limit unreachable
  20. ip tcp synwait-time 5
  21. !
  22. !
  23. no ip cef
  24. no ip domain lookup
  25. !
  26. !
  27. !
  28. !
  29. !
  30. !
  31. !
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. !
  40. !
  41. !
  42. !
  43. interface FastEthernet0/0
  44. ip address 192.168.10.1 255.255.255.0
  45. no ip route-cache
  46. duplex auto
  47. speed auto
  48. !
  49. interface Ethernet1/0
  50. no ip address
  51. no ip route-cache
  52. shutdown
  53. half-duplex
  54. !
  55. interface Ethernet1/1
  56. no ip address
  57. no ip route-cache
  58. shutdown
  59. half-duplex
  60. !
  61. interface Ethernet1/2
  62. no ip address
  63. no ip route-cache
  64. shutdown
  65. half-duplex
  66. !
  67. interface Ethernet1/3
  68. no ip address
  69. no ip route-cache
  70. shutdown
  71. half-duplex
  72. !
  73. interface FastEthernet2/0
  74. !
  75. interface FastEthernet2/1
  76. !
  77. interface FastEthernet2/2
  78. !
  79. interface FastEthernet2/3
  80. !
  81. interface FastEthernet2/4
  82. !
  83. interface FastEthernet2/5
  84. !
  85. interface FastEthernet2/6
  86. !
  87. interface FastEthernet2/7
  88. !
  89. interface FastEthernet2/8
  90. !
  91. interface FastEthernet2/9
  92. !
  93. interface FastEthernet2/10
  94. !
  95. interface FastEthernet2/11
  96. !
  97. interface FastEthernet2/12
  98. !
  99. interface FastEthernet2/13
  100. !
  101. interface FastEthernet2/14
  102. !
  103. interface FastEthernet2/15
  104. !
  105. interface Vlan1
  106. no ip address
  107. no ip route-cache
  108. !
  109. ip default-gateway 192.168.10.254
  110. no ip http server
  111. !
  112. !
  113. !
  114. no cdp log mismatch duplex
  115. !
  116. !
  117. !
  118. control-plane
  119. !
  120. !
  121. !
  122. !
  123. !
  124. !
  125. !
  126. !
  127. !
  128. line con 0
  129. exec-timeout 0 0
  130. privilege level 15
  131. logging synchronous
  132. line aux 0
  133. exec-timeout 0 0
  134. privilege level 15
  135. logging synchronous
  136. line vty 0 4
  137. login
  138. !
  139. !
  140. pc1#

pc2

  1. pc2#sh run
  2. Building configuration...
  3. Current configuration : 1587 bytes
  4. !
  5. version 12.4
  6. service timestamps debug datetime msec
  7. service timestamps log datetime msec
  8. no service password-encryption
  9. !
  10. hostname pc2
  11. !
  12. boot-start-marker
  13. boot-end-marker
  14. !
  15. !
  16. no aaa new-model
  17. memory-size iomem 5
  18. no ip routing
  19. no ip icmp rate-limit unreachable
  20. ip tcp synwait-time 5
  21. !
  22. !
  23. no ip cef
  24. no ip domain lookup
  25. !
  26. !
  27. !
  28. !
  29. !
  30. !
  31. !
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. !
  40. !
  41. !
  42. !
  43. interface FastEthernet0/0
  44. ip address 192.168.20.1 255.255.255.0
  45. no ip route-cache
  46. duplex auto
  47. speed auto
  48. !
  49. interface Ethernet1/0
  50. no ip address
  51. no ip route-cache
  52. shutdown
  53. half-duplex
  54. !
  55. interface Ethernet1/1
  56. no ip address
  57. no ip route-cache
  58. shutdown
  59. half-duplex
  60. !
  61. interface Ethernet1/2
  62. no ip address
  63. no ip route-cache
  64. shutdown
  65. half-duplex
  66. !
  67. interface Ethernet1/3
  68. no ip address
  69. no ip route-cache
  70. shutdown
  71. half-duplex
  72. !
  73. interface FastEthernet2/0
  74. !
  75. interface FastEthernet2/1
  76. !
  77. interface FastEthernet2/2
  78. !
  79. interface FastEthernet2/3
  80. !
  81. interface FastEthernet2/4
  82. !
  83. interface FastEthernet2/5
  84. !
  85. interface FastEthernet2/6
  86. !
  87. interface FastEthernet2/7
  88. !
  89. interface FastEthernet2/8
  90. !
  91. interface FastEthernet2/9
  92. !
  93. interface FastEthernet2/10
  94. !
  95. interface FastEthernet2/11
  96. !
  97. interface FastEthernet2/12
  98. !
  99. interface FastEthernet2/13
  100. !
  101. interface FastEthernet2/14
  102. !
  103. interface FastEthernet2/15
  104. !
  105. interface Vlan1
  106. no ip address
  107. no ip route-cache
  108. !
  109. ip default-gateway 192.168.20.254
  110. no ip http server
  111. !
  112. !
  113. !
  114. no cdp log mismatch duplex
  115. !
  116. !
  117. !
  118. control-plane
  119. !
  120. !
  121. !
  122. !
  123. !
  124. !
  125. !
  126. !
  127. !
  128. line con 0
  129. exec-timeout 0 0
  130. privilege level 15
  131. logging synchronous
  132. line aux 0
  133. exec-timeout 0 0
  134. privilege level 15
  135. logging synchronous
  136. line vty 0 4
  137. login
  138. !
  139. !
  140. end
  141. pc2#

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/504222
推荐阅读
相关标签
  

闽ICP备14008679号