Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. RIPng:
  2. ipv6 unicast-routing
  3. ipv6 router rip routing-ripng
  4. exit
  5. int xx
  6. ipv6 rip routing-ripng enable
  7. ipv6 rip rout default-information originate/only
  8.  
  9. EIGRP:
  10. router eigrp 100
  11. network x.x.x.x
  12. variance (unequal load-balancing, esim 2 x feasible distance)
  13.  
  14. EIGRP stub:
  15. int
  16. ip summary eigrp 100 x x (haluttuun routeriin menevään inttiin)
  17. router eigrp 100
  18. eigrp stub
  19. (redistribute static jos static)
  20.  
  21. EIGRP named:
  22. eigrp -> address-family ipv4 unicast autonomous-system 4
  23.  
  24. OSPF virtual links:
  25. interfaceihin ip ospf network point-to-point jos haluat loopbackin olevan network eikä 1 host
  26. clear ip ospf 1 process jos id ei vaihdu
  27.  
  28. networkit area 0
  29. networkit area 2
  30. networkit area 3
  31.  
  32. virtual linkin luominen area 3 -> 0
  33. router ospf 1
  34. area 2(väliarea) virtual link (vastaanottavareititin)
  35. ospf
  36. area 3 range x.x.x.x x.x.x.x
  37.  
  38. default routen mainostaminen
  39. ospf -> default-info orig always
  40.  
  41. MULTI-AREA OSPF:
  42. interfaceihin voi laittaa ip ospf 1 area 0 sen sijasta että konffaa sen ospf
  43. static route toiseen networkkiin: ip route x.x.x.x x.x.x.x output ip
  44. redistribute static subnets
  45. ospf -> area 2 stub molempiin routereihin, tai area 2 stub no-summary jos haluat totally stubby (pelkkä 1 default route)
  46.  
  47. OSPF EIGRP REDIST:
  48. router eigrp 1
  49. no auto-summary
  50. networkit
  51.  
  52. ulosmenevään inttiin voi laittaa ip summary-add eigrp 1 x.x.x.x x.x.x.x summaryt
  53.  
  54. ospf:lle point-to-pointit intteihin loopback
  55. ospf networkit
  56.  
  57. routerille, joka on molemmissa -
  58. router ospf 1
  59. redist eigrp 1 subnets
  60.  
  61. router eigrp 1
  62. redist ospf 1 metric 10000 100 255 1 1500
  63. summary verkko ospf:ään
  64. ospf 1 -> summary-add x.x.x.x x.x.x.x
  65.  
  66. CONTROLLING ROUTING UPDATES:
  67. distributeevalla routerilla ACL
  68. ip acc standard OSPF20-FILTER
  69. deny x.x.x.x x.x.x.x
  70. permit any
  71. router eigrp 1
  72. distribute-list OSPF20-FILTER out ospf 1
  73.  
  74. TAI
  75.  
  76. ip prefix-list EIGRP-FILTER permit x.x.x.x/x le 24
  77. router ospf 1
  78. distribute-list prefix EIGRP-FILTER out eigrp 1
  79.  
  80. TAI
  81.  
  82. ip acc standard R3-ACL
  83. permit x.x.x.x x.x.x.x
  84.  
  85. route-map R3-FILTER deny 10
  86. match ip add R3-ACL
  87. route-map R3-FILTER permit 20
  88. exit
  89.  
  90. router eigrp 1
  91. redist ospf 1 route-map R3-FILTER metric 64 100 255 1 1500
  92.  
  93. TAI
  94.  
  95. ip prefix-list R1-PL permit 172.16.12.0/24
  96.  
  97. route-map R1-FILTER permit 10
  98. match ip add prefix-list R1-PL
  99. set metric 25
  100. set metric-type type-1
  101. route-map R1-FILTER permit 20
  102. exit
  103. router ospf 1
  104. redist eigrp 1 subnets route-map R1-FILTER
  105.  
  106.  
  107. PBR:
  108. ip acc standa PBR-ACL
  109. permit x.x.x.x x.x.x.x
  110.  
  111. route-map R3-to-R1 permit
  112. match ip add PBR-ACL
  113. set ip next-hop x.x.x.x
  114. int x
  115. ip policy route-map R3-to-R1
  116.  
  117. SLA:
  118.  
  119. ip sla 11
  120. icmp-echo x.x.x.x
  121. freq 10
  122. ip sla sched 11 life forever start-time now
  123.  
  124. track 1 ip sla 11 reachability
  125. delay down 10 up 1
  126. ip route 0.0.0.0 0.0.0.0 nexthop 2 track 1
  127.  
  128. NAT:
  129.  
  130. ip acc ext HQ-NAT-ACL
  131. permit ip x.x.x.x x.x.x.x any
  132.  
  133. ip nat pool HQ-NAT-POOL x.x.x.x x.x.x.x prefix-length 29
  134. ip nat inside source list HQ-NAT-ACL pool HQ-NAT-POOL
  135. ip nat inside source static x.x.x.x x.x.x.x
  136. int
  137. ip nat inside / outside
  138.  
  139. BGP config:
  140.  
  141. router bgp 100
  142. neighbor (neighbor ip) remote-as (neighbor as)
  143. network x.x.x.x (mask x.x.x.x)
  144.  
  145. acl 1 permit haluttu network mainostukseen
  146. router bgp 100
  147. neighbor x.x.x.x distribute-list 1 out
  148.  
  149. restarttaa bgp, clear ip bgp *
  150.  
  151. floating static routet -
  152. ip route 0.0.0.0 0.0.0.0 haluttuykkösrouteri 210
  153. ip route 0.0.0.0 0.0.0.0 haluttubackuprouteri 220
  154.  
  155. default routet bgp:llä -
  156. ykkösrouterilla:
  157. router bgp 200
  158. neighbor x.x.x.x default-originate
  159.  
  160. BGP AS-PATH:
  161.  
  162. router bgp 300
  163. neighbor x.x.x.x remove-private-as
  164.  
  165. ip as-path access-list 1 deny ^100$
  166. ip as-path acs 1 permit .*
  167. router bgp 300
  168. neighbor x.x.x.x filter-list 1 out
  169.  
  170. IBGP/EBGP:
  171.  
  172. router bgp 64512
  173. neighbor sisäinen remote-as 64512
  174. neighbot sisäinen update-source lo0
  175. toiselle sisäiselle samat
  176.  
  177. ulkoiselle:
  178. router bgp 200
  179. neighbor x.x.x.x remote-as 64512
  180. toiselle sama
  181. network x.x.x.x
  182.  
  183. sisäiselle discard route:
  184. ip route sisäsubnet null0
  185.  
  186. sisäiselle ebgp isp:lle
  187. router bgp 64512
  188. neighbor x.x.x.x remote-as 200
  189. network sisänet
  190.  
  191. toiselle samat
  192.  
  193. clear ip bgp *
  194.  
  195. välilinkit isp bgp:hen
  196. router bgp 200
  197. network x.x.x.x mask x.x.x.x
  198.  
  199. toinen vaihtoehto välilinkeille -
  200. sisäroutereille:
  201. router bgp 64512
  202. neighb x.x.x.x next-hop-self
  203. clear ip bgp *
  204. mainrouterille:
  205. route-map PRIMARY_T1_IN permit 10
  206. set local-pref 150
  207. router bgp 64512
  208. neighbor ulkoreititin route-map PRIMARY_T1_IN in
  209.  
  210. backuprouterille:
  211. route-map SECONDARY_T1_IN permit 10
  212. set local-pref 125
  213. router bgp 64512
  214. neighbor ulkoreititin route-map SECONDARY_T1_IN in
  215.  
  216. isp -> sisätrafficille:
  217. route-map PRIMARY_T1_MED_OUT permit 10
  218. set metric 50
  219. router bgp 64512
  220. neighbor ulkorouter route-map PRIMARY_T1_MED_OUT out
  221.  
  222. route-map SECONDARY_T1_MED_OUT permit 10
  223. set metric 75
  224. router BGP 64512
  225. neighbor ulkorouter route-map SECONDARY_T1_MED_OUT out
  226.  
  227. clear ip bgp
  228.  
  229. luodaan vielä default route ISP:lle
  230.  
  231. router bgp 200
  232. neighbor x.x.x.x default-originate
  233. neighbor x.x.x.x default-originate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement