높고 넓은 파도

[OSPF] 실습 - SubArea 설정 본문

네트워크/OSPF

[OSPF] 실습 - SubArea 설정

김파도_ 2025. 4. 21. 21:00
반응형

사용 장비 Arista(eveng)
version EOS 4.31.4M
routing protocol model multi-agent

 

OSPF Sub-Area 설정

Router1 Router2 Router3
interface Ethernet1
   description Router2
   no switchport
   ip address 10.1.12.1/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.0
!
interface Ethernet2
   description Router3
   no switchport
   ip address 10.1.13.1/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.0
!
interface Loopback0
   ip address 1.1.1.1/32
   ip ospf area 0.0.0.0
!
ip routing
!
router ospf 10
   router-id 1.1.1.1
   auto-cost reference-bandwidth 100000
   max-lsa 12000
!
interface Ethernet1
   description Router1
   no switchport
   ip address 10.1.12.2/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.0
!
interface Ethernet2
   description Router4
   no switchport
   ip address 10.1.24.1/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.100
!
interface Ethernet3
   description Router6
   no switchport
   ip address 10.1.26.1/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.100
!
interface Loopback0
   ip address 1.1.1.2/32
   ip ospf area 0.0.0.0
!
ip routing
!
router ospf 10
   router-id 1.1.1.2
   auto-cost reference-bandwidth 100000
   max-lsa 12000
!
interface Ethernet1
   description Router5
   no switchport
   ip address 10.1.35.1/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.100
!
interface Ethernet2
   description Router1
   no switchport
   ip address 10.1.13.2/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.0
!
interface Loopback0
   ip address 1.1.1.3/32
   ip ospf area 0.0.0.0
!
ip routing
!
router ospf 10
   router-id 1.1.1.3
   auto-cost reference-bandwidth 100000
   max-lsa 12000
!
Router4 Router5 Router6
interface Ethernet2
   description Router2
   no switchport
   ip address 10.1.24.2/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.100
!
interface Loopback0
   ip address 1.1.1.4/32
   ip ospf area 0.0.0.100
!
ip routing
!
router ospf 10
   router-id 1.1.1.4
   auto-cost reference-bandwidth 100000
   max-lsa 12000
interface Ethernet1
   description Router3
   no switchport
   ip address 10.1.35.2/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.100
!
interface Loopback0
   ip address 1.1.1.5/32
   ip ospf area 0.0.0.100
!
ip routing
!
router ospf 10
   router-id 1.1.1.5
   auto-cost reference-bandwidth 100000
   max-lsa 12000
interface Ethernet3
   description Router2
   no switchport
   ip address 10.1.26.2/30
   ip ospf network point-to-point
   ip ospf area 0.0.0.100
!
interface Loopback0
   ip address 1.1.1.6/32
   ip ospf area 0.0.0.100
!
ip routing
!
router ospf 10
   router-id 1.1.1.6
   auto-cost reference-bandwidth 100000
   max-lsa 12000

OSPF Routing Table

Router1#sh ip route

VRF: default
Source Codes:
       C - connected, S - static, K - kernel,
       O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
       E2 - OSPF external type 2, N1 - OSPF NSSA external type 1,
       N2 - OSPF NSSA external type2, B - Other BGP Routes,
       B I - iBGP, B E - eBGP, R - RIP, I L1 - IS-IS level 1,
       I L2 - IS-IS level 2, O3 - OSPFv3, A B - BGP Aggregate,
       A O - OSPF Summary, NG - Nexthop Group Static Route,
       V - VXLAN Control Service, M - Martian,
       DH - DHCP client installed default route,
       DP - Dynamic Policy Route, L - VRF Leaked,
       G  - gRIBI, RC - Route Cache Route,
       CL - CBF Leaked Route

Gateway of last resort is not set

 C        1.1.1.1/32
           directly connected, Loopback0
 O        1.1.1.2/32 [110/110]
           via 10.1.12.2, Ethernet1
 O        1.1.1.3/32 [110/110]
           via 10.1.13.2, Ethernet2
 O IA     1.1.1.4/32 [110/210]
           via 10.1.12.2, Ethernet1
 O IA     1.1.1.5/32 [110/210]
           via 10.1.13.2, Ethernet2
 O IA     1.1.1.6/32 [110/210]
           via 10.1.12.2, Ethernet1
 C        10.1.12.0/30
           directly connected, Ethernet1
 C        10.1.13.0/30
           directly connected, Ethernet2
 O IA     10.1.24.0/30 [110/200]
           via 10.1.12.2, Ethernet1
 O IA     10.1.26.0/30 [110/200]
           via 10.1.12.2, Ethernet1
 O IA     10.1.35.0/30 [110/200]
           via 10.1.13.2, Ethernet2
Router2#sh ip route

VRF: default
Source Codes:
       C - connected, S - static, K - kernel,
       O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
       E2 - OSPF external type 2, N1 - OSPF NSSA external type 1,
       N2 - OSPF NSSA external type2, B - Other BGP Routes,
       B I - iBGP, B E - eBGP, R - RIP, I L1 - IS-IS level 1,
       I L2 - IS-IS level 2, O3 - OSPFv3, A B - BGP Aggregate,
       A O - OSPF Summary, NG - Nexthop Group Static Route,
       V - VXLAN Control Service, M - Martian,
       DH - DHCP client installed default route,
       DP - Dynamic Policy Route, L - VRF Leaked,
       G  - gRIBI, RC - Route Cache Route,
       CL - CBF Leaked Route

Gateway of last resort is not set

 O        1.1.1.1/32 [110/110]
           via 10.1.12.1, Ethernet1
 C        1.1.1.2/32
           directly connected, Loopback0
 O        1.1.1.3/32 [110/210]
           via 10.1.12.1, Ethernet1
 O        1.1.1.4/32 [110/110]
           via 10.1.24.2, Ethernet2
 O IA     1.1.1.5/32 [110/310]
           via 10.1.12.1, Ethernet1
 O        1.1.1.6/32 [110/110]
           via 10.1.26.2, Ethernet3
 C        10.1.12.0/30
           directly connected, Ethernet1
 O        10.1.13.0/30 [110/200]
           via 10.1.12.1, Ethernet1
 C        10.1.24.0/30
           directly connected, Ethernet2
 C        10.1.26.0/30
           directly connected, Ethernet3
 O IA     10.1.35.0/30 [110/300]
           via 10.1.12.1, Ethernet1

- Router 2,3은 ABR(백본 Area를 포함하여 최소 2개 이상의 Area에 소속되어 있는 라우터)임

- ABR을 통해 학습한 테이블들은 O IA로 보임 : Inter-Area

728x90

'네트워크 > OSPF' 카테고리의 다른 글

[OSPF] OSPF LSA Type  (0) 2025.04.28
[OSPF] OSPF Packet 설명  (3) 2025.04.25
[OSPF] OSPF 기본 설정(Backbone Area) / Neighbor 선출 과정  (0) 2025.04.15
[OSPF] Forwarding Address  (0) 2025.04.13
[OSPF] Network Area  (0) 2025.04.11