본문 바로가기

네트워크

OSPF Dynamic Routing( OSPF 동적 경로 ) 설정 1

configure OSPF

 

en

show ip route connected

C

conf t

router ospf [processID]

  network [network_addr] [subnetmask/wildcardmask] area  [area_id]

 

end

show run (입력한 명령어 확인)

show ip protocols (ospf 정보 확인)

copy run start (저장)

 

 

Routing protocol :OSPF

process ID :1

area0

라우터 인터페이스에 연결 되어있는 네트워크 정보를 확인합니다.

확인 후

 ospf를 작동하고

라우터의 인터페이스 인접 네트워크를 넣어줍니다

 

 

R1>en

R1#conf t

R1(config)#router ospf 1

R1(config-router)#network 192.168.1.0(Network Addr) 255.255.255.0(wildcard mask대신 subnet mask넣어도 됨) area 0(구역)

R1(config-router)#network 192.168.2.0 255.255.255.0 area 0

R1(config-router)#end

 

모든 라우터에 OSPF설정을 해주면 라우팅 테이블이 바뀝니다.

 

R2#conf t

R2(config)#route ospf 1

R2(config-router)#network 192.168.2.0 255.255.255.0 area 0

R2(config-router)#network 192.168.3.0 255.255.255.0 area 0

R2(config-router)#network 192.168.4.0 255.255.255.0 area 0

 

R3#conf t

R3(config)#router ospf 1

R3(config-router)#network 192.168.4.0 255.255.255.0 area 0

R3(config-router)#network 192.168.5.0 255.255.255.0 area 0

R3(config-router)#network 192.168.6.0 255.255.255.0 area 0

 

R4#conf t

R4(config)#router ospf 1

R4(config-router)#network 192.168.6.0 255.255.255.0 area 0

R4(config-router)#network 192.168.7.0 255.255.255.0 area 0

 

 

 

R1#show ip protocols 

 

 

 

 

Routing Protocol is "ospf 1"(라우팅 프로토콜 종류)

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Router ID 192.168.2.254 (라우터 ID)

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks: (R1이 다른 라우터에게  정보를 주어야 하는 네트워크)

192.168.1.0 0.0.0.255 area 0

192.168.2.0 0.0.0.255 area 0

Routing Information Sources: (R1에게 라우팅 정보를 주는 라우터들의 라우터 ID)

Gateway Distance Last Update

192.168.2.254 110 00:09:52 

192.168.4.254 110 00:09:15 (R2)

192.168.6.254 110 00:08:19 (R3)

192.168.7.1 110 00:08:19 (R4)

Distance: (default is 110)->AD

 

BW  bandwidth 대역폭  ->계산한 값 COST 

DLY delay 지연시간

reliability 신뢰성 255/255

load 부하 txload rxload  1/255

 

 

 

----------------------------------------------------------------------------------------------------------

OSPF

특징 : 

Open (표준, 다양한 network 인식)

RIP 단점 보완 (metric 최대 15개, distance vector- loop,

일정한시간마다 업데이트, 변화감지X)

설정방법 :

프로세스 작동(process ID), 

ospf로 전달할 network 정보를 선언: network 주소, wildcardmask(크기), area ID

AD value(관리거리 값 : 110)

metric : cost  (계산된 bandwidth )

{  network 정보 | OSPF | IP | ethernet }