SHOW:
|
|
- or go back to the newest paste.
1 | TOPOLOGY | |
2 | http://joxi.ru/v29aW86u3Pbxj2 | |
3 | ||
4 | CONFIG: | |
5 | R1: | |
6 | /interface bridge | |
7 | add name=bridge1 | |
8 | /routing ospf instance | |
9 | set [ find default=yes ] redistribute-connected=as-type-2 | |
10 | /ip address | |
11 | add address=10.0.0.1/24 interface=ether1 network=10.0.0.0 | |
12 | add address=192.168.1.1/24 interface=bridge1 network=192.168.1.0 | |
13 | add address=192.168.2.1/24 interface=bridge1 network=192.168.2.0 | |
14 | add address=192.168.3.1/24 interface=bridge1 network=192.168.3.0 | |
15 | /routing ospf network | |
16 | add area=backbone network=10.0.0.0/24 | |
17 | /system identity | |
18 | set name=R1-ASBR-bb | |
19 | ||
20 | R2: | |
21 | /routing ospf area | |
22 | add area-id=0.0.0.1 default-cost=1 inject-summary-lsas=no name=nssa-area1 translator-role=\ | |
23 | translate-never type=nssa | |
24 | /ip address | |
25 | add address=10.0.0.2/24 interface=ether1 network=10.0.0.0 | |
26 | add address=10.0.1.1/24 interface=ether2 network=10.0.1.0 | |
27 | /routing ospf network | |
28 | add area=backbone network=10.0.0.0/24 | |
29 | add area=nssa-area1 network=10.0.1.0/24 | |
30 | /system identity | |
31 | set name=R2-ABR | |
32 | ||
33 | ||
34 | R3: | |
35 | /routing ospf area | |
36 | add area-id=0.0.0.1 default-cost=1 name=nssa-area1 type=nssa | |
37 | /ip address | |
38 | add address=10.0.1.2/24 interface=ether1 network=10.0.1.0 | |
39 | /routing ospf network | |
40 | add area=nssa-area1 network=10.0.1.0/24 | |
41 | /system identity | |
42 | set name=R3-IR-NSSA | |
43 | ||
44 | STATE: | |
45 | R1: | |
46 | [admin@R1-ASBR-bb] > ip ro print | |
47 | Flags: X - disabled, A - active, D - dynamic, | |
48 | C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, | |
49 | B - blackhole, U - unreachable, P - prohibit | |
50 | # DST-ADDRESS PREF-SRC GATEWAY DISTANCE | |
51 | 0 ADC 10.0.0.0/24 10.0.0.1 ether1 0 | |
52 | 1 ADo 10.0.1.0/24 10.0.0.2 110 | |
53 | 2 ADC 192.168.1.0/24 192.168.1.1 bridge1 0 | |
54 | 3 ADC 192.168.2.0/24 192.168.2.1 bridge1 0 | |
55 | 4 ADC 192.168.3.0/24 192.168.3.1 bridge1 0 | |
56 | ||
57 | R2: | |
58 | [admin@R2-ABR] > ip ro print | |
59 | Flags: X - disabled, A - active, D - dynamic, | |
60 | C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, | |
61 | B - blackhole, U - unreachable, P - prohibit | |
62 | # DST-ADDRESS PREF-SRC GATEWAY DISTANCE | |
63 | 0 ADC 10.0.0.0/24 10.0.0.2 ether1 0 | |
64 | 1 ADC 10.0.1.0/24 10.0.1.1 ether2 0 | |
65 | 2 ADo 192.168.1.0/24 10.0.0.1 110 | |
66 | 3 ADo 192.168.2.0/24 10.0.0.1 110 | |
67 | 4 ADo 192.168.3.0/24 10.0.0.1 110 | |
68 | ||
69 | R3: | |
70 | [admin@R3-IR-NSSA] > ip ro print | |
71 | Flags: X - disabled, A - active, D - dynamic, | |
72 | C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, | |
73 | B - blackhole, U - unreachable, P - prohibit | |
74 | # DST-ADDRESS PREF-SRC GATEWAY DISTANCE | |
75 | 0 ADo 0.0.0.0/0 10.0.1.1 110 | |
76 | - | 1 ADo 10.0.0.0/24 10.0.1.1 110 |
76 | + | 1 ADC 10.0.1.0/24 10.0.1.2 ether1 0 |