Tải bản đầy đủ (.pdf) (45 trang)

Chương 5: Route optimization - Thực hành

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.3 MB, 45 trang )

Giáo trình thực hành BSCI Chương 5 – Route Optimization
152

C
C
h
h
ư
ư
ơ
ơ
n
n
g
g


5
5


-
-


R
R
O
O
U
U


T
T
E
E


O
O
P
P
T
T
I
I
M
M
I
I
Z
Z
A
A
T
T
I
I
O
O
N
N





B
B
à
à
i
i


5
5
.
.
1
1


R
R
e
e
d
d
i
i
s
s

t
t
r
r
i
i
b
b
u
u
t
t
e
e


g
g
i
i


a
a


R
R
I
I

P
P


v
v
à
à


E
E
I
I
G
G
R
R
P
P


5
5
.
.
1
1
.
.

1
1


S
S
ơ
ơ


đ
đ




l
l
u
u


n
n


l
l
ý
ý



S0/3/1
S0/3/0
S0/0/1
10.1.102.0/29
10.1.203.0/29
Lo0: 10.2.2.0/24
R1 R3
R2
S0/3/0
Lo1 : 192.168.1.0/24
Lo2 : 192.168.2.0/24
Lo3 : 192.168.3.0/24
Lo4 : 192.168.4.0/24
Lo5 : 192.168.5.0/24
Lo6 : 192.168.6.0/24
Lo7 : 192.168.7.0/24
Lo8 : 192.168.8.0/24
EIGRP
100
RIP v2

Hình 5.1.1-1: Hình vẽ sơ đồ luận lý
5
5
.
.
1
1

.
.
2
2


M
M


c
c


t
t
i
i
ê
ê
u
u


c
c


a
a



b
b
à
à
i
i


t
t
h
h


c
c


h
h
à
à
n
n
h
h



Redistribute RIP routes vào EIGRP
Redistribute EIGRP routes vào RIP.
5
5
.
.
1
1
.
.
3
3


C
C


u
u


h
h
ì
ì
n
n
h
h



v
v
à
à


h
h
ì
ì
n
n
h
h


v
v




m
m
i
i
n
n

h
h


h
h


a
a


Bước 1: Cấu hình cơ bản cho R1, R2, R3.
Giáo trình thực hành BSCI Chương 5 – Route Optimization
153

R1
Router(config)#hostname R1
R1(config)#enable password cisco
R1(config)#no ip domain-lookup
R1(config)#banner motd ^C R1^C
R1(config)#line console 0
R1(config-line)# logging synchronous
R1(config-line)# password cisco
R1(config-line)# login
R1(config)#line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login

R1(config)#interface Serial 0/3/0

R1(config-if)# ip address 10.1.102.1 255.255.255.248
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config)#interface loopback 5
R1(config-if)#ip address 192.168.5.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 6
R1(config-if)#ip address 192.168.6.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 7
R1(config-if)#ip address 192.168.7.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 8
R1(config-if)#ip address 192.168.8.1 255.255.255.0
R1(config-if)#exit

R2
Router(config)#hostname R2
R2(config)#enable password cisco
R2(config)#no ip domain-lookup
R2(config)#banner motd ^C R2^C
R2(config)#line console 0
R2(config-line)# logging synchronous
R2(config-line)# password cisco
R2(config-line)# login
R2(config)#line vty 0 4
Giáo trình thực hành BSCI Chương 5 – Route Optimization
154

R2(config-line)# password cisco

R2(config-line)# login

R2(config)#interface Serial 0/3/0
R2(config-if)#ip address 10.1.203.1 255.255.255.248
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config)#interface serial 0/3/1
R2(config-if)#ip address 10.1.102.2 255.255.255.248
R2(config-if)#no shutdown
R2(config)#interface loopback 0
R2(config-if)#ip address 10.2.2.1 255.255.255.0
R2(config-if)#exit
R3
Router(config)#hostname R3
R3(config)#enable password cisco
R3(config)#no ip domain-lookup
R3(config)#banner motd ^C R3^C
R3(config)#line console 0
R3(config-line)# logging synchronous
R3(config-line)# password cisco
R3(config-line)# login
R3(config)#line vty 0 4
R3(config-line)# password cisco
R3(config-line)# login

R3(config)#interface Serial 0/0/1
R3(config-if)# ip address 10.1.203.2 255.255.255.248
R3(config-if)#no shutdown
R3(config)#interface loopback 1
R3(config-if)# ip address 192.168.1.1 255.255.255.0

R3(config-if)#exit
R3(config)#interface loopback 2
R3(config-if)# ip address 192.168.2.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 3
R3(config-if)# ip address 192.168.3.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 4
R3(config-if)# ip address 192.168.4.1 255.255.255.0
Giáo trình thực hành BSCI Chương 5 – Route Optimization
155

R3(config-if)#exit

Bước 2: Cấu hình Ripv2 và EIGRP như trên hình
Cấu hình Ripv2 trên R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 10.1.102.0
R1(config-router)#network 192.168.5.0
R1(config-router)#network 192.168.6.0
R1(config-router)#network 192.168.7.0
R1(config-router)#network 192.168.8.0
R1(config-router)#passive-interface loopback 5
R1(config-router)#passive-interface loopback 6
R1(config-router)#passive-interface loopback 7
R1(config-router)#passive-interface loopback 8
R1(config-router)#end
Cấu hình Ripv2 trên R2

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 10.0.0.0
R2(config-router)#passive-interface loopback 0
R2(config-router)#end
Giáo trình thực hành BSCI Chương 5 – Route Optimization
156

Kiểm tra cấu hình RIP trên R1 và R2

Hình 5.1.3-1: Show ip protocols trên R1

Hình 5.1.3-2: Show ip rip database trên R1

Hình 5.1.3-3: Show ip route rip trên R1
Giáo trình thực hành BSCI Chương 5 – Route Optimization
157


Hình 5.1.3-4: Show ip protocols trên R2

Hình 5.1.3-5: Show ip rip database trên R2

Hình 5.1.3-6: Show ip route rip trên R2

Cấu hình EIGRP trên R2
R2(config)#router eigrp 1
R2(config-router)#network 10.1.203.1 0.0.0.0
R2(config-router)#no auto-summary

R2(config-router)#end
Cấu hình EIGRP trên R3
R3(config)#router eigrp 1
R3(config-router)#network 10.1.203.2 0.0.0.0
R3(config-router)#network 192.168.1.1 0.0.0.0
R3(config-router)#network 192.168.2.1 0.0.0.0
Giáo trình thực hành BSCI Chương 5 – Route Optimization
158

R3(config-router)#network 192.168.3.1 0.0.0.0
R3(config-router)#network 192.168.4.1 0.0.0.0
R3(config-router)#passive-interface default
R3(config-router)#no passive-interface Serial 0/0/1
R3(config-router)#no auto-summary
R3(config-router)#end
Kiểm tra cấu hình EIGRP trên R2 và R3

Hình 5.1.3-7: Show ip eigrp neighbors trên R2

Hình 5.1.3-8: Show ip protocols trên R2

Hình 5.1.3-9: Show ip rotue eigrp trên R2

Hình 5.1.3-10: Show ip eigrp neighbors trên R3
Giáo trình thực hành BSCI Chương 5 – Route Optimization
159


Hình 5.1.3-11: Show ip protocols trên R2
Bước 3: Redistribute giữa 2 routing protocols

Redistribute từ RIP qua EIGRP trên R2
R2(config)#router eigrp 1
R2(config-router)#redistribute rip
R2(config-router)#default-metric 1000 100 250 100 1500
R2(config-router)#end
Redistribute từ EIGRP qua RIP trên R2
R2(config)#router rip
R2(config-router)#redistribute eigrp 1 metric 3
R2(config-router)#end
Giáo trình thực hành BSCI Chương 5 – Route Optimization
160

Kiểm tra cấu hình sau khi redistribute giữa RIP và EIGRP

Hình 5.1.3-12: Show ip route trên R1 sau khi redistribute

Hình 5.1.3-13: Show ip route trên R2 sau khi redistribute
Giáo trình thực hành BSCI Chương 5 – Route Optimization
161


Hình 5.1.3-14: Show ip route trên R3 sau khi redistribute
Giáo trình thực hành BSCI Chương 5 – Route Optimization
162


B
B
à
à

i
i


5
5
.
.
2
2


R
R
e
e
d
d
i
i
s
s
t
t
r
r
i
i
b
b

u
u
t
t
e
e


B
B
e
e
t
t
w
w
e
e
e
e
n
n


E
E
I
I
G
G

R
R
P
P


a
a
n
n
d
d


O
O
S
S
P
P
F
F


5
5
.
.
2
2

.
.
1
1


S
S
ơ
ơ


đ
đ




l
l
u
u


n
n


l
l

ý
ý


S0/3/1
S0/3/0
S0/0/1
10.1.102.0/29
10.1.203.0/29
Lo0 : 10.1.1.0/24
Lo0 : 10.3.3.0/24
Lo0 : 10.2.2.0/24
R1 R3
R2
S0/3/0
Lo1 : 192.168.1.0/24
Lo2 : 192.168.2.0/24
Lo3 : 192.168.3.0/24
Lo4 : 192.168.4.0/24
Lo5 : 192.168.5.0/24
Lo6 : 192.168.6.0/24
Lo7 : 192.168.7.0/24
Lo8 : 192.168.8.0/24
EIGRP
100
OSPF
0
Lo1 : 10.4.4.0/24
Lo1 : 192.168.9.0/24
Lo2 : 192.168.10.0/24

Lo3 : 192.168.11.0/24
Lo4 : 192.168.12.0/24
OSPF 10
OSPF 20

Hình 5.2.1-1: Hình vẽ sơ đồ luận lý
5
5
.
.
2
2
.
.
2
2


M
M


c
c


t
t
i
i

ê
ê
u
u


c
c


a
a


b
b
à
à
i
i


t
t
h
h


c
c



h
h
à
à
n
n
h
h


Redistribution giữa EIGRP và OSPF
Summarize routes trong EIGRP, OSPF
5
5
.
.
2
2
.
.
3
3


C
C



u
u


h
h
ì
ì
n
n
h
h


v
v
à
à


h
h
ì
ì
n
n
h
h



v
v




m
m
i
i
n
n
h
h


h
h


a
a


Bước 1: Cấu hình cơ bản cho R1, R2, R3
R1
Router(config)#hostname R1
R1(config)#enable password cisco
Giáo trình thực hành BSCI Chương 5 – Route Optimization
163


R1(config)#no ip domain-lookup
R1(config)#banner motd ^C R1^C
R1(config)#line console 0
R1(config-line)# logging synchronous
R1(config-line)# password cisco
R1(config-line)# login
R1(config)#line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login

R1(config)#interface Serial 0/3/0
R1(config-if)#ip address 10.1.102.1 255.255.255.248
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config)#interface loopback 0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 1
R1(config-if)#ip address 192.168.9.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 2
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 3
R1(config-if)#ip address 192.168.11.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 4
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#exit

R2
Router(config)#hostname R2
R2(config)#enable password cisco
R2(config)#no ip domain-lookup
R2(config)#banner motd ^C R2^C
R2(config)#line console 0
R2(config-line)# logging synchronous
R2(config-line)# password cisco
R2(config-line)# login
R2(config)#line vty 0 4
R2(config-line)# password cisco
Giáo trình thực hành BSCI Chương 5 – Route Optimization
164

R2(config-line)# login

R2(config)#interface Serial 0/3/0
R2(config-if)#ip address 10.1.203.1 255.255.255.248
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config)#interface serial 0/3/1
R2(config-if)#ip address 10.1.102.2 255.255.255.248
R2(config-if)#no shutdown
R2(config)#interface loopback 0
R2(config-if)#ip address 10.2.2.1 255.255.255.0
R2(config-if)#exit
R2(config)#interface loopback 1
R2(config-if)#ip address 10.4.4.1 255.255.255.0
R2(config-if)#exit
R3

Router(config)#hostname R3
R3(config)#enable password cisco
R3(config)#no ip domain-lookup
R3(config)#banner motd ^C R3^C
R3(config)#line console 0
R3(config-line)# logging synchronous
R3(config-line)# password cisco
R3(config-line)# login
R3(config)#line vty 0 4
R3(config-line)# password cisco
R3(config-line)# login

R3(config)#interface Serial 0/0/1
R3(config-if)#ip address 10.1.203.2 255.255.255.248
R3(config-if)#no shutdown
R3(config)#interface loopback 0
R3(config-if)# ip address 10.3.3.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 1
R3(config-if)# ip address 192.168.1.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 2
R3(config-if)# ip address 192.168.2.1 255.255.255.0
R3(config-if)#exit
Giáo trình thực hành BSCI Chương 5 – Route Optimization
165

R3(config)#interface loopback 3
R3(config-if)# ip address 192.168.3.1 255.255.255.0
R3(config-if)#exit

R3(config)#interface loopback 4
R3(config-if)# ip address 192.168.4.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 5
R3(config-if)# ip address 192.168.5.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 6
R3(config-if)# ip address 192.168.6.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 7
R3(config-if)# ip address 192.168.7.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 8
R3(config-if)# ip address 192.168.8.1 255.255.255.0
R3(config-if)#exit
Bước 2: Cấu hình OSPF và EIGRP
Cấu hình EIGRP cho R1
R1(config)#router eigrp 100
R1(config-router)#network 10.1.102.1 0.0.0.0
R1(config-router)#network 10.1.1.1 0.0.0.0
R1(config-router)#network 192.168.9.1 0.0.0.0
R1(config-router)#network 192.168.10.1 0.0.0.0
R1(config-router)#network 192.168.11.1 0.0.0.0
R1(config-router)#network 192.168.12.1 0.0.0.0
R1(config-router)#passive-interface default
R1(config-router)#no passive-interface Serial 0/3/0
R1(config-router)#no auto-summary
R1(config-router)#end
Cấu hình EIGRP cho R2
R2(config)#router eigrp 100

R2(config-router)#network 10.2.2.1 0.0.0.0
R2(config-router)#network 10.1.102.2 0.0.0.0
R2(config-router)#passive-interface loopback 0
R2(config-router)#no auto-summary
R2(config-router)#end
Giáo trình thực hành BSCI Chương 5 – Route Optimization
166

Kiểm tra cấu hình EIGRP trên R1 và R2

Hình 5.2.3-1: Show ip eigrp neighbors trên R1

Hình 5.2.3-2: Show ip route eigrp trên R1

Hình 5.2.3-3: Show ip protocols trên R1

Hình 5.2.3-4: Show ip eigrp neighbors trên R2

Hình 5.2.3-5: Show ip route eigrp trên R2
Giáo trình thực hành BSCI Chương 5 – Route Optimization
167


Hình 5.2.3-6: Show ip protocols trên R2
Cấu hình OSPF cho R2
R2(config)#router ospf 100
R2(config-router)#router-id 10.4.4.1
R2(config-router)#network 10.1.203.1 0.0.0.0 area 0
R2(config-router)#network 10.4.4.1 0.0.0.0 area 10
R2(config-router)#passive-interface loopback 1

R2(config-router)#end
Cấu hình OSPF cho R3
R3(config)#router ospf 100
R3(config-router)#router-id 10.3.3.1
R3(config-router)#network 10.1.203.2 0.0.0.0 area 0
R3(config-router)#network 10.3.3.1 0.0.0.0 area 0
R3(config-router)#network 192.168.1.1 0.0.0.0 area 0
R3(config-router)#network 192.168.2.1 0.0.0.0 area 0
R3(config-router)#network 192.168.3.1 0.0.0.0 area 0
R3(config-router)#network 192.168.4.1 0.0.0.0 area 0
R3(config-router)#network 192.168.5.1 0.0.0.0 area 20
R3(config-router)#network 192.168.6.1 0.0.0.0 area 20
R3(config-router)#network 192.168.7.1 0.0.0.0 area 20
R3(config-router)#network 192.168.8.1 0.0.0.0 area 20
R3(config-router)#passive-interface default
R3(config-router)#no passive-interface S0/0/1
R3(config-router)#end
Giáo trình thực hành BSCI Chương 5 – Route Optimization
168

Kiểm tra cấu hình OSPF trên R2 và R3

Hình 5.2.3-7: Show ip ospf neighbor trên R2

Hình 5.2.3-8: Show ip protocols trên R2

Hình 5.2.3-9: Show ip route ospf trên R2

Hình 5.2.3-10: Show ip ospf neighbor trên R3
Giáo trình thực hành BSCI Chương 5 – Route Optimization

169


Hình 5.2.3-11: Show ip protocols trên R2

Hình 5.2.3-12: Show ip route ospf trên R2
Bước 3: Redistribute OSPF vào EIGRP
Cấu hình Redistribute vào EIGRP
R2(config)#router eigrp 100
R2(config-router)#redistribute ospf 100 metric 10000 100 255 1 1500
R2(config-router)#end
Giáo trình thực hành BSCI Chương 5 – Route Optimization
170

Kiểm tra cấu hình sau khi Redistribute vào EIGRP

Hình 5.2.3-13: Show ip protocols sau khi redistribute vào EIGPR trên R2

Hình 5.2.3-14: Show ip route sau khi redistribute vào EIGRP trên R1
Bước 4: Redistribute EIGRP vào OSPF
Cấu hình Redistribute vào OSPF
R2(config)#router ospf 100
R2(config-router)#redistribute eigrp 100 subnets
R2(config-router)#end
Giáo trình thực hành BSCI Chương 5 – Route Optimization
171

Kiểm tra cấu hình sau khi Redistribute vào OSPF

Hình 5.2.3-15: Show ip protocols sau khi redistribute vào OSPF trên R2


Hình 5.2.3-16: Show ip route sau khi redistribute vào OSPF trên R3
Bước 5: Summarize routes trong EIGRP, OSPF
Cấu hình Summarize trong EIGRP
R1(config)#interface serial 0/3/0
R1(config-if)#ip summary-address eigrp 100 192.168.8.0 255.255.248.0
R1(config-if)#end
Kiểm tra cấu hình sau khi Summarize trong EIGRP

Hình 5.2.3-17: Show ip route trên R1 kiểm tra đường null0

Hình 5.2.3-18: Show ip route trên R2 kiểm tra đường summarize
Giáo trình thực hành BSCI Chương 5 – Route Optimization
172


Hình 5.2.3-19: Show ip route 192.168.8.0/21
Giáo trình thực hành BSCI Chương 5 – Route Optimization
173


B
B
à
à
i
i


5

5
.
.
3
3


R
R
e
e
d
d
i
i
s
s
t
t
r
r
i
i
b
b
u
u
t
t
e

e


g
g
i
i


a
a


R
R
i
i
p
p


v
v
à
à


O
O
S

S
P
P
F
F




5
5
.
.
3
3
.
.
1
1


S
S
ơ
ơ


đ
đ





l
l
u
u


n
n


l
l
ý
ý


R3
S0/1
Lo1: 192.168.31.1/24
Lo2: 192.168.32.1/24
S0/1
Lo1 : 192.168.11.1/24
Lo2 : 192.168.12.1/24
S0/0
R1
R2
S0/0

192
.
168
.
12
.
0
/
30
192
.
168
.
23
.
0
/
30
RIP OSPF

Hình 5.3.1-1 : Hình vẽ sơ đồ luận lý
5
5
.
.
3
3
.
.
2

2


M
M


c
c


t
t
i
i
ê
ê
u
u


b
b
à
à
i
i


t

t
h
h


c
c


h
h
à
à
n
n
h
h


Redistribute giữa Rip và OSPF với các metric-type của OSPF
5
5
.
.
3
3
.
.
3
3



C
C


u
u


h
h
ì
ì
n
n
h
h


v
v
à
à


h
h
ì
ì

n
n
h
h


v
v




m
m
i
i
n
n
h
h


h
h


a
a



Bước 1: Cấu hình cơ bản R1, R2, R3
R1
Router(config)#hostname R1
R1(config)#enable password cisco
R1(config)#no ip domain-lookup
R1(config)#banner motd ^C R1^C
R1(config)#line console 0
R1(config-line)# logging synchronous
R1(config-line)# password cisco
R1(config-line)# login
R1(config)#line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
Giáo trình thực hành BSCI Chương 5 – Route Optimization
174


R1(config)#interface Serial 0/0
R1(config-if)#ip address 172.16.12.1 255.255.255.252
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config)#interface loopback 1
R1(config-if)#ip address 192.168.11.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface loopback 2
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#exit
R2
Router(config)#hostname R2
R2(config)#enable password cisco

R2(config)#no ip domain-lookup
R2(config)#banner motd ^C R2^C
R2(config)#line console 0
R2(config-line)# logging synchronous
R2(config-line)# password cisco
R2(config-line)# login
R2(config)#line vty 0 4
R2(config-line)# password cisco
R2(config-line)# login

R2(config)#interface Serial 0/0
R2(config-if)#ip address 172.16.23.2 255.255.255.252
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config)#interface serial 0/1
R2(config-if)#ip address 172.16.12.2 255.255.255.252
R2(config-if)#no shutdown
R3
Router(config)#hostname R3
R3(config)#enable password cisco
R3(config)#no ip domain-lookup
R3(config)#banner motd ^C R3^C
R3(config)#line console 0
R3(config-line)# logging synchronous
R3(config-line)# password cisco
R3(config-line)# login
Giáo trình thực hành BSCI Chương 5 – Route Optimization
175

R3(config)#line vty 0 4

R3(config-line)# password cisco
R3(config-line)# login

R3(config)#interface Serial 0/1
R3(config-if)#ip address 172.16.23.1 255.255.255.252
R3(config-if)#no shutdown
R3(config)#interface loopback 1
R3(config-if)# ip address 192.168.31.1 255.255.255.0
R3(config-if)#exit
R3(config)#interface loopback 2
R3(config-if)# ip address 192.168.32.1 255.255.255.0
R3(config-if)#exit
Bước 2: Cấu hình RIP và OSPF
Cấu hình trên R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 172.16.0.0
R1(config-router)#network 192.168.11.0
R1(config-router)#network 192.168.12.0
R1(config-router)#end
Cấu hình trên R2
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 172.16.0.0
R2(config-router)#end

R2(config)#router ospf 100
R2(config-router)#network 172.16.23.0 0.0.0.3 area 0

R2(config-router)#end
Cấu hình trên R3
R3(config)#router ospf 100
R3(config-router)#network 172.16.23.0 0.0.0.3 area 0
R3(config-router)#network 192.168.31.0 0.0.0.255 area 0
R3(config-router)#network 192.168.32.0 0.0.0.255 area 0
R3(config-router)#end
Kiểm tra cấu hình
Giáo trình thực hành BSCI Chương 5 – Route Optimization
176


Hình 5.3.3-1: Show ip route trên R1

Hình 5.3.3-2: Show ip route trên R3
Bước 3: Redistribute RIP vào OSPF với metric-type 2
R2(config)#router ospf 100
R2(config-router)# redistribute rip metric 1800 metric-type 2 subnets
R2(config-router)#end

Hình 5.3.3-3: Show ip route ospf trên R3
Bước 4: Redistribute OSPF vào RIP
R2(config)#router rip
R2(config-router)# redistribute ospf 100 metric 5 match internal
R2(config-router)#end

Hình 5.3.3-4: Show ip route rip trên R1

×