Mô hình Trong mô hình ta sử dụng 2 giao thức định tuyến: giao thức EIGRP (giao thức định tuyến độc quyền của Cisco) và OSPF. Router R3 có nhiệm vụ đứng giữa và phân phối các lớp mạng qua lại lẫn nhau. Địa chỉ IP và các Interface được chỉ định theo như mô hình trên. Cấu hình địa chỉ IP như hình trên lần lượt như sau. Router 1 R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int f0/0 R1(config-if)#ip add 192.168.10.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#exit R1(config)#int loopback 0 R1(config-if)#ip add 1.1.1.1 255.255.255.255 R1(config-if)#no shut Router 2 R2#conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)#int f0/0 R2(config-if)#ip add 192.168.10.2 255.255.255.0 R2(config-if)#no shut R2(config-if)#exit R2(config)#int loopback 0 R2(config-if)#ip add 2.2.2.2 255.255.255.255 R2(config-if)#no shut Router 3 R3#conf t Enter configuration commands, one per line. End with CNTL/Z. R3(config)#int f0/0 R3(config-if)#ip add 192.168.10.3 255.255.255.0 R3(config-if)#no shut R3(config-if)#exit R3(config)#int loopback 0 R3(config-if)#ip add 3.3.3.3 255.255.255.255 R3(config-if)#no shut R3(config-if)#exit R3(config)#int f0/1 R3(config-if)#ip add 192.168.20.3 255.255.255.0 R3(config-if)#no shut Router 4 R4#conf t Enter configuration commands, one per line. End with CNTL/Z. R4(config)#int f0/1 R4(config-if)#ip add 192.168.20.4 255.255.255.0 R4(config-if)#no shut R4(config-if)#exit R4(config)#int loopback 0 R4(config-if)#ip add 4.4.4.4 255.255.255.255 R4(config-if)#no shut Router 5 R5#conf t Enter configuration commands, one per line. End with CNTL/Z. R5(config)#int f0/1 R5(config-if)#ip add 192.168.20.5 255.255.255.0 R5(config-if)#no shut R5(config-if)#exit R5(config)#int loopback 0 R5(config-if)#ip add 5.5.5.5 255.255.255.255 R5(config-if)#no shut Cấu hình Route trên các Router Router 1 R1#conf t R1(config)#router ospf 1 R1(config-router)#network 1.1.1.1 255.255.255.255 area 0 R1(config-router)#network 192.168.10.0 0.0.0.255 area 0 Router 2 R2#conf t R2(config)#router ospf 1 R2(config-router)#network 2.2.2.2 255.255.255.255 area 0 R2(config-router)#network 192.168.10.0 0.0.0.255 area 0 Router 3 Cấu hình OSPF R3#conf t R3(config)#router ospf 1 R3(config-router)#network 3.3.3.3 255.255.255.255 area 0 R3(config-router)#network 192.168.10.0 0.0.0.255 area 0 Cấu hình EIGRP R3#conf t R3(config)#router eigrp 100 R3(config-router)#network 3.3.3.3 255.255.255.255 R3(config-router)#network 192.168.20.0 0.0.0.255 Router 4 R4#conf t R4(config)#router eigrp 100 R4(config-router)#network 4.4.4.4 255.255.255.255 R4(config-router)#network 192.168.20.0 0.0.0.255 Router 5 R5#conf t R5(config)#router eigrp 100 R5(config-router)#network 5.5.5.5 255.255.255.255 R5(config-router)#network 192.168.20.0 0.0.0.255 Show ip route trên các router R1 R2 R3 R4 R5 Thực hiện Redistribute trên Router 3 R3#conf t R3(config)#router ospf 1 R3(config-router)# redistribute eigrp 100 subnets R3(config-router)#exit R3(config)#router eigrp 100 R3(config-router)#redistribute ospf 1 metric 10000 100 255 1 1500 Show ip route khi đã thực hiện redistribute R1 R2 R4 R5 Thực hiện ping kiểm tra R1 ping R4,R5 R2 ping R4,R5 R4 ping R1,R2 R5 ping R1, R2 Ta thấy ping thông suốt. Chứng tỏ Redistribution giữa EIGRP và OSPF trên Router 3 đã thành công. Bài viết liên quan: - Hợp nhất (Redistribute) hai giao thức định tuyến trên hệ thống mạng có nhiều giao thức định tuyến