ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 네트워크 구성 실습 Part1
    고병재 2021. 10. 2. 16:40

     

    전체 Network구성

     

    Part 1

    설정 순서

    1. R1, R2, R3은 OSPF로 구성

    2. R8와 R4 Static 구성

     

    OSPF 구성

     

    R1

    #s2/1 ip 설정

    Router# int s2/1 

    Router(config-if)# ip addr 192.168.1.237 255.255.255.252

    Router(config-if)# no shutdown

     

    #s2/2 ip 설정

    Router(config)# int s2/2

    Router(config-if)# ip addr 192.168.1.241 255.255.255.252

    Router(config-if)# no shutdown

     

    #R1 OSPF 설정

    Router(config)# router ospf 100

    Router(config-router)# network 192.168.1.237 0.0.0.0 area 0

    Router(config-router)# network 192.168.1.241 0.0.0.0 area 0 

     

     

     

    R2

    #s2/1 ip 설정

    Router(config)# int s2/1 

    Router(config-if)# ip addr 192.168.1.238 255.255.255.252

    Router(config-if)# no shutdown

     

    #s2/3 ip 설정

    Router(config)# int s2/3

    Router(config-if)# ip addr 192.168.1.233 255.255.255.252

    Router(config-if)# no shutdown

     

    #R1 OSPF 설정

    Router(config)# router ospf 100

    Router(config-router)# network 192.168.1.238 0.0.0.0 area 0

    Router(config-router)# network 192.168.1.233 0.0.0.0 area 0 

     

     

     

    R3

    #s2/2 ip 설정

    Router(config)# int s2/2

    Router(config-if)# ip addr 192.168.1.242 255.255.255.252

    Router(config-if)# no shutdown

     

    #s2/3 ip 설정

    Router(config)# int s2/3

    Router(config-if)# ip addr 192.168.1.234 255.255.255.252

    Router(config-if)# no shutdown

     

    #R1 OSPF 설정

    Router(config)# router ospf 100

    Router(config-router)# network 192.168.1.242 0.0.0.0 area 0

    Router(config-router)# network 192.168.1.234 0.0.0.0 area 0 

     

     

     

    Static 구성

     

    R2

    #s2/0 ip 설정

    Router(config)# int s2/0

    Router(config-if)# ip addr 192.168.1.225 255.255.255.252

    Router(config-if)# no shutdown

     

    #192.168.1.192번대 네트워크로 가는 라우팅 설정

    Roiuter(config)# ip route 192.168.1.192 255.255.255.224 192.168.1.226

     

    R4

    #s2/0 ip 설정

    Router(config)# int s2/0

    Router(config-if)# ip addr 192.168.1.226 255.255.255.252

    Router(config-if)# no shutdown

     

    #e0/0 ip 설정(gateway)

    Router(config)# int e0/0

    Router(config-if)# ip addr 192.168.1.222 255.255.255.224

    Router(config-if)# no shutdown

     

    #R2로 나오는 라우팅 설정

    #stub한 네트워크 이기에 default 라우팅 설정

    Roiuter(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.225

     

     

    #R2에 재분배를 통해 OSPF 라우팅테이블 공유

    Router(config-router)# redistribute static subnets

     

     

     


     

     

    ping test

     

    우측 VPC에서 OSPF 구간까지 ping이 정상적으로 가는걸 볼 수 있다.

     

     

    R1

    R1의 라우팅 테이블이다.

    연결되어있지 않은 192.168.1.232 대역이 OSPF를 통해 라우팅 테이블을 얻어온 것을 확인 할 수있다. 

    Static으로 연결된 192.168.1.192번대 구간은 재분배를 통해 라우팅 테이블을 얻어온 것을 확인 할 수 있다. 

     

     

    R2

    R2의 라우팅 테이블이다. 

    Static으로 설정한 구간이 보여지는 것을 볼 수 있다.

    연결되어있지 않은 192.168.1.240 대역이 OSPF를 통해 라우팅 테이블을 얻어온 것을 확인 할 수 있다. 

     

    R3

    R3의 라우팅 테이블이다.

    연결되어있지 않은 192.168.1.236 대역이 OSPF를 통해 라우팅 테이블을 얻어온 것을 확인 할 수있다. 

    Static으로 연결된 192.168.1.192번대 구간은 재분배를 통해 라우팅 테이블을 얻어온 것을 확인 할 수 있다. 

     

     

    Part 1 에서는 OSPF 설정과 Static 설정, default 설정, 재분배 등의 설정법을 익혔다.

    '고병재' 카테고리의 다른 글

    네트워크 구성 실습 Part3  (0) 2021.10.03
    네트워크 구성 실습 Part2  (0) 2021.10.02
    iSCSI와 vCenter연결  (0) 2021.10.02
    BGP  (0) 2021.09.28
    vCenter 설치  (0) 2021.09.28
Designed by Tistory.