OSPF

 

 

Router0

Router(config)#router ospf 7  //숫자 아무거나줘도됨

Router(config-router)#network 192.168.70.0 0.0.0.255 area 0

//area 맞춰야한다.

Router(config-router)#network 1.1.70.0 0.0.0.255 area 0

Router1

Router(config)#router ospf 8  //숫자 아무거나줘도됨

Router(config-router)#network 192.168.80.0 0.0.0.255 area 0

//area 맞춰야한다.

Router(config-router)#network 1.1.70.0 0.0.0.255 area 0

 

 

area  2개이상 나누기

 

//핑크선 기준으로 단절된 네트워크 형성

 

Router0

Router(config-if)#router ospf 7

Router(config-router)#net 192.168.10.0 0.0.0.255 area 0

Router(config-router)#net 1.1.12.0 0.0.0.255 area 0

 

Router1

Router(config-if)#router ospf 7

 

Router(config-router)#net 1.1.12.0 0.0.0.255 area 0

Router(config-router)#net 1.1.23.0 0.0.0.255 area 1

Router2

Router(config-if)#router ospf 7

 

Router(config-router)#net 1.1.34.0 0.0.0.255 area 2

Router(config-router)#net 1.1.23.0 0.0.0.255 area 1

 

 

Router3

Router(config-if)#router ospf 7

 

Router(config-router)#net 1.1.34.0 0.0.0.255 area 2

Router(config-router)#net 192.168.20.0 0.0.0.255 area 2

 

loop를 통해 단절 네트워크 연결

// Area 0 : 백본 에어리어 Area2 : 단절 에어리어

// Area 1 : 경유 에어리어

 

 

1. Router1 lo0 : 2.2.2.2

Router(config)#interface loopback 0

Router(config-if)#ip address 2.2.2.2 255.255.255.0

//reboot해야 설정됨

Router(config-router)#area 1 virutal-link 3.3.3.3

//상대방 루프번호

2. Router2 lo0 : 3.3.3.3

Router(config)#interface loopback 0

Router(config-if)#ip address 3.3.3.3 255.255.255.0

//reboot해야 설정됨

Router(config-router)#area 1 virutal-link 2.2.2.2

//상대방 루프번호

'Network Security' 카테고리의 다른 글

스캐닝  (0) 2019.01.30
ACL(접근 통제 목록)  (0) 2019.01.29
redistribute(재분배)  (0) 2019.01.28
eigrp  (0) 2019.01.28
RIP  (0) 2019.01.28

+ Recent posts