I. Sơ đồ và yêu cầu
1. Sơ đồ
2. Yêu cầu:
- Thiết lập thiết bị như sơ đồ
- Cấu hình IP và các domain Routing trên các Router
- Cấu hình để các Router vùng ISIS và OSPF có thể nhìn thấy nhau
II. Triển khai
1. Cấu hình IP và Domain Routing
- Trên R1
- Trên R2
- Trên R3
- Trên R4
- Trên R5
2. Kiểm tra bảng định tuyến các Router
- Trên R1
- Trên R2
- Trên R3
- Trên R4
- Trên R5
1. Sơ đồ
2. Yêu cầu:
- Thiết lập thiết bị như sơ đồ
- Cấu hình IP và các domain Routing trên các Router
- Cấu hình để các Router vùng ISIS và OSPF có thể nhìn thấy nhau
II. Triển khai
1. Cấu hình IP và Domain Routing
- Trên R1
R1(config)#int f0/0 R1(config-if)#ip address 172.16.1.1 255.255.255.0 R1(config-if)#ip router isis R1(config-if)#no shutdown R1(config-if)#int s1/0 R1(config-if)#ip address 172.16.2.1 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#router isis R1(config-router)#net 49.0001.1111.1111.1111.00 R1(config)#router ospf 1 R1(config-router)#network 172.16.2.0 0.0.0.3 area 0 R1(config-router)#exit |
R2(config-if)#int s1/0 R2(config-if)#ip address 172.16.2.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#int f0/0 R2(config-if)#ip address 192.168.4.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#router ospf 1 R2(config-router)#network 192.168.4.0 0.0.0.255 area 0 R2(config-router)#network 172.16.2.0 0.0.0.3 area 0 R2(config-router)#exit |
R3(config-if)#int f0/0 R3(config-if)#ip address 192.168.4.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#int f0/1 R3(config-if)#ip address 192.168.1.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#router ospf 1 R3(config-router)#network 192.168.4.0 0.0.0.255 area 0 R3(config-router)#network 192.168.1.0 0.0.0.255 area 0 R3(config-router)#exit |
R4(config-if)#int f0/0 R4(config-if)#ip address 172.16.1.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#int f0/1 R4(config-if)#ip address 192.168.1.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#exit R4(config-if)#int s1/0 R4(config-if)#ip address 192.168.2.1 255.255.255.252 R4(config-if)#ip router isis R4(config-if)#no shutdown R4(config-if)#exit R4(config)#router ospf 1 R4(config-router)#network 192.168.1.0 0.0.0.255 area 0 R4(config-router)#exit R4(config)#clns routing R4(config)#router isis R4(config-router)#net 49.0001.4444.4444.4444.00 |
R5(config-if)#int s1/0 R5(config-if)#ip address 192.168.2.2 255.255.255.252 R5(config-if)#ip router isis R5(config-if)#no shutdown R4(config-if)#int f0/0 R4(config-if)#ip address 172.16.1.5 255.255.255.0 R5(config-if)#ip router isis R4(config-if)#no shutdown R5(config-if)#int loopback 0 R4(config-if)#ip address 5.5.5.5 255.255.255.0 R5(config-if)#ip router isis R5(config-if)#exit R5(config)#clns routing R5(config)#router isis R5(config-router)#net 49.0001.5555.5555.5555.00 |
- Trên R1
Code:
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
5.0.0.0/24 is subnetted, 1 subnets
i L1 5.5.5.0 [115/20] via 172.16.1.5, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
C 172.16.2.0/30 is directly connected, Serial1/0
O 192.168.4.0/24 [110/74] via 172.16.2.2, 00:30:18, Serial1/0
O 192.168.1.0/24 [110/84] via 172.16.2.2, 00:28:08, Serial1/0
192.168.2.0/30 is subnetted, 1 subnets
i L1 192.168.2.0 [115/20] via 172.16.1.5, FastEthernet0/0
Code:
R2#sh ip route | begin set
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 1 subnets
C 172.16.2.0 is directly connected, Serial1/0
C 192.168.4.0/24 is directly connected, FastEthernet0/0
O 192.168.1.0/24 [110/20] via 192.168.4.3, 00:31:28, FastEthernet0/0
Code:
R3#sh ip route | begin
R3#sh ip route | begin set
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 1 subnets
O 172.16.2.0 [110/74] via 192.168.4.2, 00:31:56, FastEthernet0/0
C 192.168.4.0/24 is directly connected, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
Code:
R4#sh ip route | begin set
Gateway of last resort is not set
5.0.0.0/24 is subnetted, 1 subnets
i L1 5.5.5.0 [115/20] via 192.168.2.2, Serial1/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
i L1 172.16.1.0/24 [115/20] via 192.168.2.2, Serial1/0
O 172.16.2.0/30 [110/84] via 192.168.1.3, 00:28:01, FastEthernet0/1
O 192.168.4.0/24 [110/20] via 192.168.1.3, 00:28:01, FastEthernet0/1
C 192.168.1.0/24 is directly connected, FastEthernet0/1
192.168.2.0/30 is subnetted, 1 subnets
C 192.168.2.0 is directly connected, Serial1/0
Code:
R5#sh ip route | begin set
Gateway of last resort is not set
5.0.0.0/24 is subnetted, 1 subnets
C 5.5.5.0 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.1.0 is directly connected, FastEthernet0/0
192.168.2.0/30 is subnetted, 1 subnets
C 192.168.2.0 is directly connected, Serial1/0