Victor Ryzhenkin | a95d173 | 2017-11-16 19:02:19 +0400 | [diff] [blame] | 1 | ## Last commit: 2017-05-18 08:39:52 UTC by root |
| 2 | version 12.1X46-D20.5; |
| 3 | system { |
| 4 | host-name vsrx1; |
| 5 | root-authentication { |
| 6 | encrypted-password "$1$gpbfk/Jr$lF2foqHYBd/Sp56dlmkXH1"; ## SECRET-DATA |
| 7 | } |
| 8 | name-server { |
| 9 | 8.8.8.8; |
| 10 | 8.8.4.4; |
| 11 | } |
| 12 | services { |
| 13 | ssh; |
| 14 | web-management { |
| 15 | http { |
| 16 | interface ge-0/0/0.0; |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | syslog { |
| 21 | file messages { |
| 22 | any any; |
| 23 | } |
| 24 | } |
| 25 | license { |
| 26 | autoupdate { |
| 27 | url https://ae1.juniper.net/junos/key_retrieval; |
| 28 | } |
| 29 | } |
| 30 | ntp { |
| 31 | peer 46.243.48.4; |
| 32 | peer 147.251.48.140; |
| 33 | peer 46.243.48.88; |
| 34 | } |
| 35 | } |
| 36 | interfaces { |
| 37 | ge-0/0/0 { |
| 38 | unit 0 { |
| 39 | family inet { |
| 40 | address {{ private_address }}/24; |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | ge-0/0/1 { |
| 45 | unit 0 { |
| 46 | family inet { |
| 47 | address {{ public_address }}/24; |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | ge-0/0/2 { |
| 52 | unit 0 { |
| 53 | family inet { |
| 54 | address {{ admin_address }}; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | routing-options { |
| 60 | route-distinguisher-id {{ private_address }}; |
| 61 | autonomous-system 64512; |
| 62 | dynamic-tunnels { |
| 63 | dynamic_overlay_tunnels { |
| 64 | source-address {{ private_address }}; |
| 65 | gre; |
| 66 | destination-networks { |
| 67 | {{ private_network }}/24; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | protocols { |
| 73 | mpls { |
| 74 | interface all; |
| 75 | } |
| 76 | bgp { |
| 77 | group Contrail_Controller { |
| 78 | type internal; |
| 79 | local-address 172.16.10.90; |
| 80 | keep all; |
| 81 | family inet-vpn { |
| 82 | unicast; |
| 83 | } |
| 84 | allow {{ private_network }}/24; |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | security { |
| 89 | forwarding-options { |
| 90 | family { |
| 91 | mpls { |
| 92 | mode packet-based; |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | routing-instances { |
| 98 | public { |
| 99 | instance-type vrf; |
| 100 | interface ge-0/0/1.0; |
| 101 | vrf-target target:64512:10000; |
| 102 | vrf-table-label; |
| 103 | routing-options { |
| 104 | static { |
| 105 | route {{ public_network }} discard; |
| 106 | route 0.0.0.0/0 next-hop {{ public_network_gateway }}; |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | } |