` ospf(四) | 听云轩

ospf(四)

关于OSPF的综合实验

这个的话在IOU上做的,配置导出可能有问题,一切以最终的实现结果为准吧。

Awz6aT.md.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf authentication-key cisco
ip ospf 1 area 0
interface Ethernet0/0
ip address 192.168.18.1 255.255.255.0
ip ospf priority 5
ip ospf 1 area 3
interface Ethernet0/1
ip address 192.168.12.1 255.255.255.0
ip ospf authentication-key cisco
ip ospf priority 5
ip ospf 1 area 0
interface Ethernet0/2
ip address 192.168.13.1 255.255.255.0
ip ospf authentication-key cisco
ip ospf priority 5
ip ospf 1 area 0
router ospf 1
area 0 authentication
area 3 stub no-summary
area 3 range 172.16.0.0 255.255.252.0

R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip ospf authentication-key cisco
ip ospf 1 area 0
interface Ethernet0/0
ip address 192.168.12.2 255.255.255.0
ip ospf authentication-key cisco
ip ospf 1 area 0
router ospf 1
area 0 authentication

R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip ospf authentication-key cisco
ip ospf 1 area 0
interface Ethernet0/0
ip address 192.168.13.3 255.255.255.0
ip ospf authentication-key cisco
ip ospf 1 area 0
interface Ethernet0/1
ip address 192.168.34.3 255.255.255.0
ip ospf message-digest-key 1 md5 ospf
ip ospf network point-to-point
ip ospf 1 area 1
router ospf 1
area 0 authentication
area 1 authentication message-digest
area 1 virtual-link 4.4.4.4 authentication authentication-key huawei

R4:
interface Loopback0
ip address 4.4.4.4 255.255.255.255
ip ospf 1 area 1
interface Ethernet0/0
ip address 192.168.34.4 255.255.255.0
ip ospf message-digest-key 1 md5 ospf
ip ospf network point-to-point
ip ospf 1 area 1
interface Ethernet0/1
ip address 192.168.45.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 2
router ospf 1
area 1 authentication message-digest
area 1 virtual-link 3.3.3.3 authentication authentication-key huawei
area 2 nssa no-summary

R5:
interface Loopback0
ip address 5.5.5.5 255.255.255.255
ip ospf 1 area 2
interface Ethernet0/0
ip address 192.168.45.5 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 2
interface Ethernet0/1
ip address 192.168.56.5 255.255.255.0
router ospf 1
area 2 nssa
summary-address 6.6.0.0 255.255.0.0
redistribute rip metric 5 subnets
router rip
version 2
redistribute ospf 2 metric 5
network 192.168.56.0
no auto-summary

R6:
interface Loopback0
ip address 6.6.6.6 255.255.255.255
interface Loopback1
ip address 6.6.1.1 255.255.255.0
interface Loopback2
ip address 6.6.2.1 255.255.255.0
interface Loopback3
ip address 6.6.3.1 255.255.255.0
interface Ethernet0/0
ip address 192.168.56.6 255.255.255.0
interface Ethernet0/3
no ip address
shutdown
router rip
version 2
network 6.0.0.0
network 192.168.56.0
no auto-summary
ip route 0.0.0.0 0.0.0.0 192.168.56.5

R7:
interface Loopback0
ip address 7.7.7.7 255.255.255.255
ip ospf 1 area 3
interface Loopback1
ip address 172.16.1.1 255.255.255.0
ip ospf 1 area 3
interface Loopback2
ip address 172.16.2.1 255.255.255.0
ip ospf 1 area 3
interface Loopback3
ip address 172.16.3.1 255.255.255.0
ip ospf 1 area 3
interface Ethernet0/0
ip address 192.168.78.7 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 3
router ospf 1
area 3 stub no-summary

R8:
interface Loopback0
ip address 8.8.8.8 255.255.255.255
ip ospf 1 area 3
interface Ethernet0/0
ip address 192.168.78.8 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 3
interface Ethernet0/1
ip address 192.168.18.8 255.255.255.0
ip ospf 1 area 3
router ospf 1
area 3 stub
------ 本文结束 ------
您的支持将鼓励我继续创作