当前位置:   article > 正文

eNSP毕业设计系列-《大型企业网》-BGP网络无nat

eNSP毕业设计系列-《大型企业网》-BGP网络无nat

客户主要需求:需要有三栋楼,每栋楼有三个业务。

又新增了要求,要双核心、双防火墙。

所以我根据客户的需求,完成了如下组网设计。

主要技术,MSTP+VRRP+链路聚合+OSPF传统纵网,(万金油组合)

防火墙技术:HRP+IP-LINK(主要做远端探测,上下链路接口联动,实现主备切换)+OSPF

路由器:BGP将企业网内网路由传递至骨干网中(骨干网不是重点忽略即可)

我们在做毕设的时候可以用万金油组合来套用各种实验,但又时可以做点这种稍微大型的,放弃nat,用bgp来做,显得大气些

分享主要配置

汇聚交换机

  1. #
  2. sysname HJ-1
  3. #
  4. vlan batch 10 20 30 100
  5. #
  6. stp instance 1 root primary
  7. stp instance 2 root primary
  8. stp instance 3 root primary
  9. #
  10. dhcp enable
  11. #
  12. stp region-configuration
  13. region-name huawei
  14. instance 1 vlan 10
  15. instance 2 vlan 20
  16. instance 3 vlan 30
  17. active region-configuration
  18. #
  19. ip pool vlan10
  20. gateway-list 10.1.10.254
  21. network 10.1.10.0 mask 255.255.255.0
  22. #
  23. ip pool vlan20
  24. gateway-list 10.1.20.254
  25. network 10.1.20.0 mask 255.255.255.0
  26. #
  27. ip pool vlan30
  28. gateway-list 10.1.30.254
  29. network 10.1.30.0 mask 255.255.255.0
  30. #
  31. interface Vlanif10
  32. ip address 10.1.10.252 255.255.255.0
  33. vrrp vrid 10 virtual-ip 10.1.10.254
  34. vrrp vrid 10 priority 120
  35. vrrp vrid 10 track interface GigabitEthernet0/0/1 reduced 30
  36. dhcp select global
  37. #
  38. interface Vlanif20
  39. ip address 10.1.20.252 255.255.255.0
  40. vrrp vrid 20 virtual-ip 10.1.20.254
  41. vrrp vrid 20 priority 120
  42. vrrp vrid 20 track interface GigabitEthernet0/0/1 reduced 30
  43. dhcp select global
  44. #
  45. interface Vlanif30
  46. ip address 10.1.30.252 255.255.255.0
  47. vrrp vrid 30 virtual-ip 10.1.30.254
  48. vrrp vrid 30 priority 120
  49. vrrp vrid 30 track interface GigabitEthernet0/0/1 reduced 30
  50. dhcp select global
  51. #
  52. interface Vlanif100
  53. ip address 10.1.1.2 255.255.255.252
  54. #
  55. interface Eth-Trunk1
  56. port link-type trunk
  57. port trunk allow-pass vlan 10 20 30
  58. #
  59. interface GigabitEthernet0/0/1
  60. port link-type access
  61. port default vlan 100
  62. stp edged-port enable
  63. #
  64. interface GigabitEthernet0/0/2
  65. port link-type trunk
  66. port trunk allow-pass vlan 10 20 30
  67. #
  68. interface GigabitEthernet0/0/3
  69. eth-trunk 1
  70. #
  71. interface GigabitEthernet0/0/4
  72. eth-trunk 1
  73. #
  74. interface GigabitEthernet0/0/5
  75. port link-type trunk
  76. port trunk allow-pass vlan 10 20 30
  77. #
  78. interface GigabitEthernet0/0/6
  79. port link-type trunk
  80. port trunk allow-pass vlan 10 20 30
  81. #
  82. ospf 1 router-id 1.1.1.1
  83. area 0.0.0.0
  84. network 10.1.1.0 0.0.0.3
  85. area 0.0.0.1
  86. network 10.1.10.0 0.0.0.255
  87. network 10.1.20.0 0.0.0.255
  88. network 10.1.30.0 0.0.0.255
  89. #
  90. sysname HJ-2
  91. #
  92. vlan batch 10 20 30 100
  93. #
  94. stp instance 1 root secondary
  95. stp instance 2 root secondary
  96. stp instance 3 root secondary
  97. #
  98. dhcp enable
  99. #
  100. stp region-configuration
  101. region-name huawei
  102. instance 1 vlan 10
  103. instance 2 vlan 20
  104. instance 3 vlan 30
  105. active region-configuration
  106. #
  107. ip pool vlan10
  108. gateway-list 10.1.10.254
  109. network 10.1.10.0 mask 255.255.255.0
  110. #
  111. ip pool vlan20
  112. gateway-list 10.1.20.254
  113. network 10.1.20.0 mask 255.255.255.0
  114. #
  115. ip pool vlan30
  116. gateway-list 10.1.30.254
  117. network 10.1.30.0 mask 255.255.255.0
  118. #
  119. interface Vlanif10
  120. ip address 10.1.10.253 255.255.255.0
  121. vrrp vrid 10 virtual-ip 10.1.10.254
  122. dhcp select global
  123. #
  124. interface Vlanif20
  125. ip address 10.1.20.253 255.255.255.0
  126. vrrp vrid 20 virtual-ip 10.1.20.254
  127. dhcp select global
  128. #
  129. interface Vlanif30
  130. ip address 10.1.30.253 255.255.255.0
  131. vrrp vrid 30 virtual-ip 10.1.30.254
  132. dhcp select global
  133. #
  134. interface Vlanif100
  135. ip address 10.1.1.6 255.255.255.252
  136. #
  137. interface Eth-Trunk1
  138. port link-type trunk
  139. port trunk allow-pass vlan 10 20 30
  140. #
  141. interface GigabitEthernet0/0/1
  142. port link-type access
  143. port default vlan 100
  144. stp edged-port enable
  145. #
  146. interface GigabitEthernet0/0/2
  147. port link-type trunk
  148. port trunk allow-pass vlan 10 20 30
  149. #
  150. interface GigabitEthernet0/0/3
  151. eth-trunk 1
  152. #
  153. interface GigabitEthernet0/0/4
  154. eth-trunk 1
  155. #
  156. interface GigabitEthernet0/0/5
  157. port link-type trunk
  158. port trunk allow-pass vlan 10 20 30
  159. #
  160. interface GigabitEthernet0/0/6
  161. port link-type trunk
  162. port trunk allow-pass vlan 10 20 30
  163. #
  164. ospf 1 router-id 1.1.1.2
  165. area 0.0.0.0
  166. network 10.1.1.4 0.0.0.3
  167. area 0.0.0.1
  168. network 10.1.10.0 0.0.0.255
  169. network 10.1.20.0 0.0.0.255
  170. network 10.1.30.0 0.0.0.255

防火墙

  1. sysname fw-1
  2. #
  3. hrp enable
  4. hrp interface GigabitEthernet1/0/1 remote 1.1.1.2
  5. hrp standby config enable
  6. hrp track interface GigabitEthernet1/0/0
  7. hrp track interface GigabitEthernet1/0/2
  8. #
  9. ip-link check enable
  10. ip-link name test
  11. destination 20.1.1.2 interface GigabitEthernet1/0/0 mode icmp
  12. #
  13. interface GigabitEthernet1/0/0
  14. undo shutdown
  15. ip address 10.1.1.10 255.255.255.252
  16. link-group 1
  17. service-manage ping permit
  18. #
  19. interface GigabitEthernet1/0/1
  20. undo shutdown
  21. ip address 1.1.1.1 255.255.255.252
  22. #
  23. interface GigabitEthernet1/0/2
  24. undo shutdown
  25. ip address 10.1.1.1 255.255.255.252
  26. link-group 1
  27. #
  28. firewall zone trust
  29. set priority 85
  30. add interface GigabitEthernet0/0/0
  31. add interface GigabitEthernet1/0/2
  32. #
  33. firewall zone untrust
  34. set priority 5
  35. add interface GigabitEthernet1/0/0
  36. #
  37. firewall zone dmz
  38. set priority 50
  39. add interface GigabitEthernet1/0/1
  40. #
  41. ospf 1 router-id 1.1.1.3
  42. area 0.0.0.0
  43. network 10.1.1.0 0.0.0.3
  44. network 10.1.1.8 0.0.0.3
  45. #
  46. security-policy
  47. rule name L-U
  48. source-zone local
  49. source-zone untrust
  50. destination-zone local
  51. destination-zone untrust
  52. action permit
  53. rule name sec
  54. source-zone trust
  55. destination-zone untrust
  56. source-address 10.1.10.0 mask 255.255.255.0
  57. source-address 10.1.20.0 mask 255.255.255.0
  58. source-address 10.1.30.0 mask 255.255.255.0
  59. action permit
  60. sysname fw-2
  61. #
  62. hrp enable
  63. hrp standby-device
  64. hrp interface GigabitEthernet1/0/1 remote 1.1.1.1
  65. hrp standby config enable
  66. hrp track interface GigabitEthernet1/0/0
  67. hrp track interface GigabitEthernet1/0/2
  68. #
  69. ip-link check enable
  70. ip-link name test
  71. destination 20.1.1.6 interface GigabitEthernet1/0/0 mode icmp
  72. #
  73. interface GigabitEthernet1/0/0
  74. undo shutdown
  75. ip address 10.1.1.14 255.255.255.252
  76. link-group 1
  77. service-manage ping permit
  78. #
  79. interface GigabitEthernet1/0/1
  80. undo shutdown
  81. ip address 1.1.1.2 255.255.255.252
  82. #
  83. interface GigabitEthernet1/0/2
  84. undo shutdown
  85. ip address 10.1.1.5 255.255.255.252
  86. link-group 1
  87. #
  88. firewall zone trust
  89. set priority 85
  90. add interface GigabitEthernet0/0/0
  91. add interface GigabitEthernet1/0/2
  92. #
  93. firewall zone untrust
  94. set priority 5
  95. add interface GigabitEthernet1/0/0
  96. #
  97. firewall zone dmz
  98. set priority 50
  99. add interface GigabitEthernet1/0/1
  100. #
  101. ospf 1 router-id 1.1.1.4
  102. area 0.0.0.0
  103. network 10.1.1.4 0.0.0.3
  104. network 10.1.1.12 0.0.0.3
  105. #
  106. security-policy
  107. rule name L-U
  108. source-zone local
  109. source-zone untrust
  110. destination-zone local
  111. destination-zone untrust
  112. action permit
  113. rule name sec
  114. source-zone trust
  115. destination-zone untrust
  116. source-address 10.1.10.0 mask 255.255.255.0
  117. source-address 10.1.20.0 mask 255.255.255.0
  118. source-address 10.1.30.0 mask 255.255.255.0
  119. action permit

核心路由器

  1. #
  2. sysname Core-1
  3. #
  4. interface GigabitEthernet0/0/0
  5. ip address 10.1.1.17 255.255.255.252
  6. #
  7. interface GigabitEthernet0/0/1
  8. ip address 10.1.1.9 255.255.255.252
  9. #
  10. interface GigabitEthernet0/0/2
  11. ip address 20.1.1.2 255.255.255.252
  12. #
  13. bgp 65001
  14. peer 10.1.1.18 as-number 65001
  15. peer 20.1.1.1 as-number 65002
  16. #
  17. ipv4-family unicast
  18. undo synchronization
  19. network 10.1.10.0 255.255.255.0
  20. network 10.1.20.0 255.255.255.0
  21. network 10.1.30.0 255.255.255.0
  22. peer 10.1.1.18 enable
  23. peer 10.1.1.18 next-hop-local
  24. peer 20.1.1.1 enable
  25. #
  26. ospf 1 router-id 1.1.1.5
  27. import-route bgp
  28. area 0.0.0.0
  29. network 10.1.1.8 0.0.0.3
  30. network 10.1.1.16 0.0.0.3
  31. #
  32. sysname Core-2
  33. #
  34. interface GigabitEthernet0/0/0
  35. ip address 10.1.1.18 255.255.255.252
  36. #
  37. interface GigabitEthernet0/0/1
  38. ip address 10.1.1.13 255.255.255.252
  39. #
  40. interface GigabitEthernet0/0/2
  41. ip address 20.1.1.6 255.255.255.252
  42. #
  43. bgp 65001
  44. peer 10.1.1.17 as-number 65001
  45. peer 20.1.1.5 as-number 65002
  46. #
  47. ipv4-family unicast
  48. undo synchronization
  49. network 10.1.10.0 255.255.255.0
  50. network 10.1.20.0 255.255.255.0
  51. network 10.1.30.0 255.255.255.0
  52. peer 10.1.1.17 enable
  53. peer 10.1.1.17 next-hop-local
  54. peer 20.1.1.5 enable
  55. #
  56. ospf 1 router-id 1.1.1.6
  57. import-route bgp
  58. area 0.0.0.0
  59. network 10.1.1.12 0.0.0.3
  60. network 10.1.1.16 0.0.0.3

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

闽ICP备14008679号