-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopo1_Tutorial.txt
More file actions
213 lines (175 loc) · 3.16 KB
/
Copy pathTopo1_Tutorial.txt
File metadata and controls
213 lines (175 loc) · 3.16 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
Bài 1:
206.0.78.0/24
v = 200
n = 7
SM cũ: 255.255.255.0 (24)
SM mới:255.255.255.224(27)
206.0.78.0/27
206.0.78.32/27
206.0.78.64/27
206.0.78.96/27
206.0.78.128/27
206.0.78.160/27
206.0.78.192/27
206.0.78.224/27
Bước 1: PC----------------------------------------
--PC0 :
206.0.78.2
255.255.255.224
206.0.78.1
--PC1:
206.0.78.3
255.255.255.224
206.0.78.1
--PC2:
206.0.78.34
255.255.255.224
206.0.78.33
--PC3:
206.0.78.35
255.255.255.224
206.0.78.33
--PC4:
206.0.78.162
255.255.255.224
206.0.78.161
--PC5:
206.0.78.163
255.255.255.224
206.0.78.161
--PC6:
206.0.78.194
255.255.255.224
206.0.78.193
--PC7:
206.0.78.195
255.255.255.224
206.0.78.193
Bước 2: Switch------------------------------------
--S-0:
en
conf t
hostname S-0
vlan 278
ex
vlan 279
ex
//Đối với PC trong vlan
inter fa 0/2
switchport access vlan 278
ex
inter fa 0/3
switchport access vlan 278
ex
inter fa 0/4
switchport access vlan 279
ex
inter fa 0/5
switchport access vlan 279
ex
//Đối với Router
inter fa 0/1
switchport mode trunk
--S-1:
en
conf t
hostname S-1
vlan 280
ex
vlan 281
ex
//Đối với PC trong vlan
inter fa 0/2
switchport access vlan 280
ex
inter fa 0/3
switchport access vlan 280
ex
inter fa 0/4
switchport access vlan 281
ex
inter fa 0/5
switchport access vlan 281
ex
//Đối với Router
inter fa 0/1
switchport mode trunk
Bước 3: Router------------------------------------
--R-0:
en
conf t
hostname R-0
inter fa 0/0
no sh
ex
inter fa 0/0.1
encapsulation dot1Q 278
ip add 206.0.78.1 255.255.255.224
ex
inter fa 0/0.2
encapsulation dot1Q 279
ip add 206.0.78.33 255.255.255.224
ex
inter se 0/0
ip add 206.0.78.65 255.255.255.224
no sh
ex
inter fa 0/1
ip add 206.0.78.97 255.255.255.224
no sh
ex
--R-1:
en
conf t
hostname R-1
inter fa 0/0
no sh
ex
inter fa 0/0.1
encapsulation dot1Q 280
ip add 206.0.78.161 255.255.255.224
ex
inter fa 0/0.2
encapsulation dot1Q 281
ip add 206.0.78.193 255.255.255.224
ex
inter se 0/0
ip add 206.0.78.66 255.255.255.224
no sh
ex
inter fa 0/1
ip add 206.0.78.130 255.255.255.224
no sh
ex
--R-2:
en
conf t
hostname R-2
inter fa 0/0
ip add 206.0.78.98 255.255.255.224
no sh
ex
inter fa 0/1
ip add 206.0.78.129 255.255.255.224
no sh
ex
Bước 4: Show ip route của-------------------------
R-0: 4 mạng => 0//32//64//96
R-1: 4 mạng => 64//128//160//192
R-2: 2 mạng => 96//128
====> Phải 7 mạng cho mỗi cái
--R-0:
ip route 206.0.78.128 255.255.255.224 206.0.78.98
ip route 206.0.78.160 255.255.255.224 206.0.78.66
ip route 206.0.78.192 255.255.255.224 206.0.78.66
--R-1:
ip route 206.0.78.0 255.255.255.224 206.0.78.65 (lỗi)
ip route 206.0.78.0 255.255.255.224 206.0.78.97 (sửa)
ip route 206.0.78.32 255.255.255.224 206.0.78.97
ip route 206.0.78.96 255.255.255.224 206.0.78.129
--R-2:
ip route 206.0.78.0 255.255.255.224 206.0.78.97
ip route 206.0.78.32 255.255.255.224 206.0.78.97
ip route 206.0.78.160 255.255.255.224 206.0.78.130
ip route 206.0.78.192 255.255.255.224 206.0.78.130
ip route 206.0.78.64 255.255.255.224 206.0.78.130