I. Mô hình và yêu cầu
1. Mô hình
2. Sơ đồ IP
3. Yêu cầu
- Cấu hình IP và các domain Routing như trong hình ở trên
- Cấu hình Redistribute sao cho
II. Triển khai
1. Cấu hình IP và các domain routing
- Trên R1
- Trên R2
- Trên R3
- Trên R4
- Trên R5
Kiểm tra trạng thái bảng định tuyến trên các Route
- Trên R1
- Trên R2
- Trên R3
- Trên R4
- Trên R5
1. Mô hình
2. Sơ đồ IP
R1 | f0/0 f0/1 | 14.14.14.1/24 13.13.13.1/24 |
R2 | f0/0 f0/1 | 24.24.24.2/24 23.23.23.2/24 |
R3 | f0/0 f0/1 f1/0 | 13.13.13.3/24 23.23.23.3/24 35.35.35.3/24 |
R4 | f0/0 f0/1 | 24.24.24.4/24 14.14.14.4/24 |
R5 | f0/0 | 35.35.35.5/24 |
3. Yêu cầu
- Cấu hình IP và các domain Routing như trong hình ở trên
- Cấu hình Redistribute sao cho
- Cấu hình để R1 chỉ quảng bá domain Routing EIGRP
- Cấu hình để R2 chỉ quáng bá domain Routing OSPF
- Cấu hình để R3 chỉ quáng bá domain Routing EIGRP
=> Kết quả là R4 chỉ thấy vùng OSPF mà không nhìn thấy vùng RIP và tương tự R5 cũng chỉ nhìn thấy vùng EIGRP mà không nhìn thấy vùng RIP
II. Triển khai
1. Cấu hình IP và các domain routing
- Trên R1
R1(config-if)#interface f0/0 R1(config-if)#ip address 14.14.14.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#int f0/1 R1(config-if)#ip address 13.13.13.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#router rip R1(config-router)# version 2 R1(config-router)# network 13.13.13.0 R1(config-router)# no auto-summary R1(config-router)# router eigrp 1 R1(config-router)# network 14.14.14.0 R1(config-router)# no auto-summary |
- Trên R2
R2(config-if)#interface f0/0 R2(config-if)#ip address 24.24.24.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#int f0/1 R2(config-if)#ip address 23.23.23.2 255.255.255.0 R2(config-if)#no shutdown R2(config)#router rip R2(config-router)# version 2 R2(config-router)# network 23.23.23.0 R2(config-router)# no auto-summary R2(config-router)# router eigrp 1 R2(config-router)# network 24.24.24.0 R2(config-router)# no auto-summary |
R3(config-if)#interface f0/0 R3(config-if)#ip address 13.13.13.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#int f0/1 R3(config-if)#ip address 23.23.23.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#int f1/0 R3(config-if)#ip address 35.35.35.3 255.255.255.0 R3(config-if)#no shutdown R3(config)#router rip R3(config-router)# version 2 R3(config-router)# network 13.13.13.0 R3(config-router)# network 23.23.23.0 R3(config-router)# no auto-summary R3(config-router)# router ospf 1 R3(config-router)# network 35.35.35.0 0.0.0.255 area 0 |
R4(config-if)#interface f0/0 R4(config-if)#ip address 24.24.24.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#int f0/1 R4(config-if)#ip address 14.14.14.4 255.255.255.0 R4(config-if)#no shutdown R4(config)#router eigrp 1 R4(config-router)# network 14.14.14.0 R4(config-router)# network 24.24.24.0 R4(config-router)# no auto-summary |
R5(config-if)#interface f0/0 R5(config-if)#ip address 35.35.35.5 255.255.255.0 R5(config-if)#no shutdown R5(config)#router ospf 1 R5(config-router)# network 35.35.35.0 0.0.0.255 area 0 |
- Trên R1
Code:
R1#sh ip route | begin set
Gateway of last resort is not set
35.0.0.0/24 is subnetted, 1 subnets
R 35.35.35.0 [120/5] via 13.13.13.3, 00:00:16, FastEthernet0/1
23.0.0.0/24 is subnetted, 1 subnets
R 23.23.23.0 [120/1] via 13.13.13.3, 00:00:16, FastEthernet0/1
24.0.0.0/24 is subnetted, 1 subnets
D 24.24.24.0 [90/307200] via 14.14.14.4, 01:24:05, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, FastEthernet0/1
14.0.0.0/24 is subnetted, 1 subnets
C 14.14.14.0 is directly connected, FastEthernet0/0
Code:
R2#sh ip route | begin set
Gateway of last resort is not set
35.0.0.0/24 is subnetted, 1 subnets
R 35.35.35.0 [120/5] via 23.23.23.3, 00:00:23, FastEthernet0/1
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
24.0.0.0/24 is subnetted, 1 subnets
C 24.24.24.0 is directly connected, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
R 13.13.13.0 [120/1] via 23.23.23.3, 00:00:23, FastEthernet0/1
14.0.0.0/24 is subnetted, 1 subnets
D 14.14.14.0 [90/307200] via 24.24.24.4, 01:24:39, FastEthernet0/0
Code:
R3#sh ip route | begin set
Gateway of last resort is not set
35.0.0.0/24 is subnetted, 1 subnets
C 35.35.35.0 is directly connected, FastEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, FastEthernet0/0
Code:
R4#sh ip route | begin set
Gateway of last resort is not set
24.0.0.0/24 is subnetted, 1 subnets
C 24.24.24.0 is directly connected, FastEthernet0/0
14.0.0.0/24 is subnetted, 1 subnets
C 14.14.14.0 is directly connected, FastEthernet0/1
Code:
R5#sh ip route | begin set
Gateway of last resort is not set
35.0.0.0/24 is subnetted, 1 subnets
C 35.35.35.0 is directly connected, FastEthernet0/0