cd5cd94f09af8b7aafa873b75780fe74ece3d297
EdgeOS-GRE-IPsec-Example.md
... | ... | @@ -184,6 +184,13 @@ If your peer sends you a key in PEM format (starts with `-----BEGIN PUBLIC KEY-- |
184 | 184 | } |
185 | 185 | } |
186 | 186 | policy { |
187 | + prefix-list AS64746-IPv4 { |
|
188 | + rule 1 { |
|
189 | + action permit |
|
190 | + le 32 |
|
191 | + prefix 172.23.248.0/24 |
|
192 | + } |
|
193 | + } |
|
187 | 194 | prefix-list DN42-IPv4 { |
188 | 195 | rule 1 { |
189 | 196 | action permit |
... | ... | @@ -211,6 +218,18 @@ If your peer sends you a key in PEM format (starts with `-----BEGIN PUBLIC KEY-- |
211 | 218 | prefix 172.31.0.0/16 |
212 | 219 | } |
213 | 220 | } |
221 | + route-map AS64746 { |
|
222 | + rule 1 { |
|
223 | + action permit |
|
224 | + match { |
|
225 | + ip { |
|
226 | + address { |
|
227 | + prefix-list AS64746-IPv4 |
|
228 | + } |
|
229 | + } |
|
230 | + } |
|
231 | + } |
|
232 | + } |
|
214 | 233 | route-map DN42 { |
215 | 234 | rule 1 { |
216 | 235 | action permit |
... | ... | @@ -249,6 +268,11 @@ If your peer sends you a key in PEM format (starts with `-----BEGIN PUBLIC KEY-- |
249 | 268 | inbound |
250 | 269 | } |
251 | 270 | } |
271 | + redistribute { |
|
272 | + connected { |
|
273 | + route-map AS64746 |
|
274 | + } |
|
275 | + } |
|
252 | 276 | } |
253 | 277 | static { |
254 | 278 | route 0.0.0.0/0 { |