Mục tiêu thực hành:
- Cấu hình quảng bá Default-Route bằng OSPF trên VPN.RT vs Firewall phối hợp với hiệu chỉnh Metric và Metric-Type sao cho CoreSwitch học được 2 Default-Route.
- Cấu hình quảng bá Default-Route bằng OSPF trên VPN.RT vs Firewall phối hợp với hiệu chỉnh Metric và Metric-Type sao cho CoreSwitch học được Default-Route thông qua Firewall là đường chính Primary, Default-Route thông qua VPN.RT là đường phụ Backup.
Truy cập vào "Lab 3-8 - Cau hinh dinh tuyen dong OSPF tren Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình quảng bá Default-Route bằng OSPF trên VPN.RT vs Firewall phối hợp với hiệu chỉnh Metric và Metric-Type sao cho CoreSwitch học được 2 Default-Route.
- Phân biệt Metric-Type 1 (Hoạt động ổn định trên Unetlab) vs Metric-Type 2 (Không hoạt động ổn định trên Unetlab).
- Cấu hình trên VPN.RT.
router ospf 1default-information originate metric 10 metric-type 1exit
- Cấu hình trên Firewall.
router ospf 1default-information originate metric 10 metric-type 1exit
- Kiểm tra bảng Routing trên CoreSwitch trước khi hiệu chỉnh Cost trên Interface VL100.
CoreSwitch#show ip ospf interface briefInterface PID Area IP Address/Mask Cost State Nbrs F/CEt0/0 1 0 10.0.0.9/29 10 BDR 1/1Vl100 1 0 10.0.0.1/29 1 BDR 1/1Vl40 1 0 10.0.40.1/24 1 DR 0/0Vl30 1 0 10.0.30.1/24 1 DR 0/0Vl20 1 0 10.0.20.1/24 1 DOWN 0/0Vl18 1 0 10.0.18.1/24 1 DR 0/0Vl17 1 0 10.0.17.1/24 1 DR 0/0Vl16 1 0 10.0.16.1/24 1 DR 0/0Vl15 1 0 10.0.15.1/24 1 DR 0/0Vl14 1 0 10.0.14.1/24 1 DR 0/0Vl13 1 0 10.0.13.1/24 1 DR 0/0Vl12 1 0 10.0.12.1/24 1 DR 0/0Vl11 1 0 10.0.11.1/24 1 DR 0/0Vl10 1 0 10.0.10.1/24 1 DR 0/0CoreSwitch#
CoreSwitch#show ip route ospfCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop overrideGateway of last resort is 10.0.0.3 to network 0.0.0.0O*E1 0.0.0.0/0 [110/11] via 10.0.0.3, 00:02:31, Vlan100CoreSwitch#
- Kiểm tra bảng Routing trên CoreSwitch sau khi hiệu chỉnh Cost trên Interface VL100.
CoreSwitch#show running-config interface vlan 100Building configuration...Current configuration : 97 bytes!interface Vlan100ip address 10.0.0.1 255.255.255.248ip ospf 1 area 0ip ospf cost 10endCoreSwitch#
CoreSwitch#show ip ospf interface briefInterface PID Area IP Address/Mask Cost State Nbrs F/CEt0/0 1 0 10.0.0.9/29 10 BDR 1/1Vl100 1 0 10.0.0.1/29 10 BDR 1/1Vl40 1 0 10.0.40.1/24 1 DR 0/0Vl30 1 0 10.0.30.1/24 1 DR 0/0Vl20 1 0 10.0.20.1/24 1 DOWN 0/0Vl18 1 0 10.0.18.1/24 1 DR 0/0Vl17 1 0 10.0.17.1/24 1 DR 0/0Vl16 1 0 10.0.16.1/24 1 DR 0/0Vl15 1 0 10.0.15.1/24 1 DR 0/0Vl14 1 0 10.0.14.1/24 1 DR 0/0Vl13 1 0 10.0.13.1/24 1 DR 0/0Vl12 1 0 10.0.12.1/24 1 DR 0/0Vl11 1 0 10.0.11.1/24 1 DR 0/0Vl10 1 0 10.0.10.1/24 1 DR 0/0CoreSwitch#
CoreSwitch#show ip route ospfCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop overrideGateway of last resort is 10.0.0.10 to network 0.0.0.0O*E1 0.0.0.0/0 [110/20] via 10.0.0.10, 00:09:56, Ethernet0/0[110/20] via 10.0.0.3, 00:09:56, Vlan100CoreSwitch#
Cấu hình quảng bá Default-Route bằng OSPF trên VPN.RT vs Firewall phối hợp với hiệu chỉnh Metric và Metric-Type sao cho CoreSwitch học được Default-Route thông qua Firewall là đường chính Primary, Default-Route thông qua VPN.RT là đường phụ Backup.
- OSPF sẽ ưu tiên Route nào có Metric thấp hơn, do vậy ta sẽ tiến hành giảm Metric trên Interface e0/0 từ 10 xuống 1.
CoreSwitch#show running-config interface e0/0Building configuration...Current configuration : 110 bytes!interface Ethernet0/0no switchportip address 10.0.0.9 255.255.255.248ip ospf cost 1duplex autoendCoreSwitch#
CoreSwitch#show ip ospf interface briefInterface PID Area IP Address/Mask Cost State Nbrs F/CEt0/0 1 0 10.0.0.9/29 1 BDR 1/1Vl100 1 0 10.0.0.1/29 10 BDR 1/1Vl40 1 0 10.0.40.1/24 1 DR 0/0Vl30 1 0 10.0.30.1/24 1 DR 0/0Vl20 1 0 10.0.20.1/24 1 DOWN 0/0Vl18 1 0 10.0.18.1/24 1 DR 0/0Vl17 1 0 10.0.17.1/24 1 DR 0/0Vl16 1 0 10.0.16.1/24 1 DR 0/0Vl15 1 0 10.0.15.1/24 1 DR 0/0Vl14 1 0 10.0.14.1/24 1 DR 0/0Vl13 1 0 10.0.13.1/24 1 DR 0/0Vl12 1 0 10.0.12.1/24 1 DR 0/0Vl11 1 0 10.0.11.1/24 1 DR 0/0Vl10 1 0 10.0.10.1/24 1 DR 0/0CoreSwitch#
- Kiểm tra bảng định tuyến trên CoreSwitch sau khi hiệu chỉnh Metric.
CoreSwitch#show ip route ospfCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop overrideGateway of last resort is 10.0.0.10 to network 0.0.0.0O*E1 0.0.0.0/0 [110/11] via 10.0.0.10, 00:00:41, Ethernet0/0CoreSwitch#
- Nếu kết nối Internet trên Firewall gặp sự cố thì bảng định tuyến trên CoreSwitch sẽ xuất hiện Default-Route qua hướng VPN.RT.
Firewall(config)#interface e0/1Firewall(config-if)#shutdownFirewall(config-if)#*Mar 2 09:19:14.462: %LINK-5-CHANGED: Interface Ethernet0/1, changed state to administratively down*Mar 2 09:19:15.462: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to downFirewall(config-if)#
CoreSwitch#show ip route ospfCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop overrideGateway of last resort is 10.0.0.3 to network 0.0.0.0O*E1 0.0.0.0/0 [110/20] via 10.0.0.3, 00:01:18, Vlan100CoreSwitch#
Thực hành thêm các bài Lab cơ bản khác tại hạng mục Học Network CCNA R&S thông qua các bài thực hành.
0 comments