Lab 3.8: (1.3) Cấu hình định tuyến động OSPF trên Cisco Router (Quảng bá Default-Route, Hiệu chỉnh Metric vs Metric-Type)

By , 0 View

 


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 1
 default-information originate metric 10 metric-type 1
 exit

- Cấu hình trên Firewall.
router ospf 1
 default-information originate metric 10 metric-type 1
 exit

- 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 brief 
Interface    PID   Area            IP Address/Mask    Cost  State Nbrs F/C
Et0/0        1     0               10.0.0.9/29        10    BDR   1/1
Vl100        1     0               10.0.0.1/29           BDR   1/1
Vl40         1     0               10.0.40.1/24       1     DR    0/0
Vl30         1     0               10.0.30.1/24       1     DR    0/0
Vl20         1     0               10.0.20.1/24       1     DOWN  0/0
Vl18         1     0               10.0.18.1/24       1     DR    0/0
Vl17         1     0               10.0.17.1/24       1     DR    0/0
Vl16         1     0               10.0.16.1/24       1     DR    0/0
Vl15         1     0               10.0.15.1/24       1     DR    0/0
Vl14         1     0               10.0.14.1/24       1     DR    0/0
Vl13         1     0               10.0.13.1/24       1     DR    0/0
Vl12         1     0               10.0.12.1/24       1     DR    0/0
Vl11         1     0               10.0.11.1/24       1     DR    0/0
Vl10         1     0               10.0.10.1/24       1     DR    0/0
CoreSwitch#

CoreSwitch#show ip route ospf
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is 10.0.0.3 to network 0.0.0.0

O*E1  0.0.0.0/0 [110/11] via 10.0.0.3, 00:02:31, Vlan100
CoreSwitch#

- 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 100
Building configuration...

Current configuration : 97 bytes
!
interface Vlan100
 ip address 10.0.0.1 255.255.255.248
 ip ospf 1 area 0
 ip ospf cost 10
end

CoreSwitch#

CoreSwitch#show ip ospf interface brief 
Interface    PID   Area            IP Address/Mask    Cost  State Nbrs F/C
Et0/0        1     0               10.0.0.9/29        10    BDR   1/1
Vl100        1     0               10.0.0.1/29        10    BDR   1/1
Vl40         1     0               10.0.40.1/24       1     DR    0/0
Vl30         1     0               10.0.30.1/24       1     DR    0/0
Vl20         1     0               10.0.20.1/24       1     DOWN  0/0
Vl18         1     0               10.0.18.1/24       1     DR    0/0
Vl17         1     0               10.0.17.1/24       1     DR    0/0
Vl16         1     0               10.0.16.1/24       1     DR    0/0
Vl15         1     0               10.0.15.1/24       1     DR    0/0
Vl14         1     0               10.0.14.1/24       1     DR    0/0
Vl13         1     0               10.0.13.1/24       1     DR    0/0
Vl12         1     0               10.0.12.1/24       1     DR    0/0
Vl11         1     0               10.0.11.1/24       1     DR    0/0
Vl10         1     0               10.0.10.1/24       1     DR    0/0
CoreSwitch#

CoreSwitch#show ip route ospf
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is 10.0.0.10 to network 0.0.0.0

O*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, Vlan100
CoreSwitch#

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/0
Building configuration...

Current configuration : 110 bytes
!
interface Ethernet0/0
 no switchport
 ip address 10.0.0.9 255.255.255.248
 ip ospf cost 1
 duplex auto
end

CoreSwitch#

CoreSwitch#show ip ospf interface brief 
Interface    PID   Area            IP Address/Mask    Cost  State Nbrs F/C
Et0/0        1     0               10.0.0.9/29        1     BDR   1/1
Vl100        1     0               10.0.0.1/29        10    BDR   1/1
Vl40         1     0               10.0.40.1/24       1     DR    0/0
Vl30         1     0               10.0.30.1/24       1     DR    0/0
Vl20         1     0               10.0.20.1/24       1     DOWN  0/0
Vl18         1     0               10.0.18.1/24       1     DR    0/0
Vl17         1     0               10.0.17.1/24       1     DR    0/0
Vl16         1     0               10.0.16.1/24       1     DR    0/0
Vl15         1     0               10.0.15.1/24       1     DR    0/0
Vl14         1     0               10.0.14.1/24       1     DR    0/0
Vl13         1     0               10.0.13.1/24       1     DR    0/0
Vl12         1     0               10.0.12.1/24       1     DR    0/0
Vl11         1     0               10.0.11.1/24       1     DR    0/0
Vl10         1     0               10.0.10.1/24       1     DR    0/0
CoreSwitch#

- Kiểm tra bảng định tuyến trên CoreSwitch sau khi hiệu chỉnh Metric.
CoreSwitch#show ip route ospf
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is 10.0.0.10 to network 0.0.0.0

O*E1  0.0.0.0/0 [110/11] via 10.0.0.10, 00:00:41, Ethernet0/0
CoreSwitch#

- 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/1
Firewall(config-if)#shutdown
Firewall(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 down
Firewall(config-if)#

CoreSwitch#show ip route ospf
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is 10.0.0.3 to network 0.0.0.0

O*E1  0.0.0.0/0 [110/20] via 10.0.0.3, 00:01:18, Vlan100
CoreSwitch#

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.

You Might Also Like

0 comments