| 5 | = Configuration = |
| 6 | |
| 7 | {{{ |
| 8 | version 8.0R2.8; |
| 9 | system { |
| 10 | host-name r2.core2; |
| 11 | domain-name root; |
| 12 | time-zone Europe/Paris; |
| 13 | root-authentication { |
| 14 | encrypted-password "$1$dP5t5p72$f4BS40jyZzAmoZ0BjYz4L/"; |
| 15 | } |
| 16 | login { |
| 17 | user florian { |
| 18 | full-name "Florian Le Goff"; |
| 19 | uid 2000; |
| 20 | class super-user; |
| 21 | authentication { |
| 22 | encrypted-password "$1$i6vCpHQB$wzZ8o8eoyQ4yJCNQO1y1X/"; |
| 23 | } |
| 24 | } |
| 25 | user yjarma { |
| 26 | full-name "Yesid Jarma"; |
| 27 | uid 2002; |
| 28 | class super-user; |
| 29 | authentication { |
| 30 | encrypted-password "$1$LTKrjR7r$hzU61Fq8V65yX4iQNln590"; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | services { |
| 35 | ssh { |
| 36 | root-login allow; |
| 37 | } |
| 38 | telnet; |
| 39 | web-management { |
| 40 | http { |
| 41 | interface ge-0/0/3.0; |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | syslog { |
| 46 | user * { |
| 47 | any emergency; |
| 48 | } |
| 49 | file messages { |
| 50 | any any; |
| 51 | authorization info; |
| 52 | } |
| 53 | file interactive-commands { |
| 54 | interactive-commands any; |
| 55 | } |
| 56 | } |
| 57 | ntp { |
| 58 | server 10.30.253.3; |
| 59 | } |
| 60 | } |
| 61 | interfaces { |
| 62 | ge-0/0/0 { |
| 63 | unit 0 { |
| 64 | description toR2.Core1link; |
| 65 | family inet { |
| 66 | address 10.30.254.5/30; |
| 67 | } |
| 68 | family inet6 { |
| 69 | address 2001:db8:0:1001::1/64; |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | ge-0/0/1 { |
| 74 | unit 0 { |
| 75 | description toR1link; |
| 76 | family inet { |
| 77 | address 10.30.254.14/30; |
| 78 | } |
| 79 | family inet6 { |
| 80 | address 2001:db8:0:2003::2/64; |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | ge-0/0/2 { |
| 85 | unit 0 { |
| 86 | description toR4link; |
| 87 | family inet { |
| 88 | address 10.30.254.21/30; |
| 89 | } |
| 90 | family inet6 { |
| 91 | address 2001:db8:0:2002::1/64; |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | ge-0/0/3 { |
| 96 | unit 0 { |
| 97 | description VLAN_admin; |
| 98 | family inet { |
| 99 | address 10.30.253.11/24; |
| 100 | } |
| 101 | family inet6 { |
| 102 | address 2001:db8:0:3000::2/64; |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | lo0 { |
| 107 | unit 0 { |
| 108 | family inet { |
| 109 | address 127.0.0.1/32; |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | snmp { |
| 115 | description R2; |
| 116 | location "Baie AS3 / Salle 747 / LIP6"; |
| 117 | contact "AS3 Mainteners"; |
| 118 | community public { |
| 119 | authorization read-only; |
| 120 | } |
| 121 | } |
| 122 | routing-options { |
| 123 | static { |
| 124 | route 10.30.0.0/16 discard; |
| 125 | } |
| 126 | router-id 10.30.253.11; |
| 127 | autonomous-system 65003; |
| 128 | } |
| 129 | protocols { |
| 130 | bgp { |
| 131 | group core1-bgp { |
| 132 | type external; |
| 133 | export export-external; |
| 134 | peer-as 65002; |
| 135 | neighbor 10.30.254.6; |
| 136 | } |
| 137 | group internal-21 { |
| 138 | type internal; |
| 139 | export set-nexthop-self; |
| 140 | neighbor 10.30.254.13; |
| 141 | } |
| 142 | group internal-24 { |
| 143 | type internal; |
| 144 | export set-nexthop-self; |
| 145 | neighbor 10.30.254.22; |
| 146 | } |
| 147 | group internal-25 { |
| 148 | type internal; |
| 149 | export set-nexthop-self; |
| 150 | neighbor 10.30.254.18; |
| 151 | } |
| 152 | } |
| 153 | ospf { |
| 154 | area 2.2.2.2 { |
| 155 | interface ge-0/0/2.0; |
| 156 | } |
| 157 | area 6.6.6.6 { |
| 158 | interface ge-0/0/0.0 { |
| 159 | passive; |
| 160 | } |
| 161 | } |
| 162 | area 0.0.0.0 { |
| 163 | interface ge-0/0/1.0; |
| 164 | } |
| 165 | } |
| 166 | ospf3 { |
| 167 | area 2.2.2.2 { |
| 168 | interface ge-0/0/2.0; |
| 169 | } |
| 170 | area 6.6.6.6 { |
| 171 | interface ge-0/0/0.0 { |
| 172 | passive; |
| 173 | } |
| 174 | } |
| 175 | area 0.0.0.0 { |
| 176 | interface ge-0/0/1.0; |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | policy-options { |
| 181 | policy-statement export-external { |
| 182 | from protocol [ bgp static ]; |
| 183 | then { |
| 184 | next-hop self; |
| 185 | accept; |
| 186 | } |
| 187 | } |
| 188 | policy-statement set-nexthop-self { |
| 189 | from protocol bgp; |
| 190 | then { |
| 191 | next-hop self; |
| 192 | } |
| 193 | } |
| 194 | } |
| 195 | }}} |
| 196 | |