본문 바로가기

보안/강의정리

OSPF 실습

728x90

실습 1

OSPF 실습1


R1>en

R1# conf t

 

R1(config)# int fa0/0

R1(config-if)# ip add 192.168.1.254 255.255.255.0

R1(config-if)# no sh                                               //fa0/0 포트 선언

 

R1(config-if)# int se0/0

R1(config-if)# ip add 1.1.1.1 255.0.0.0

R1(config-if)# no sh                                               //se0/0 포트 선언

 

R1(config-if)# router ospf 1                                      //ospf를 여러 개 돌릴 때 구별하기위한 ID 1

R1(config-router)# net 192.168.1.254 0.0.0.0 area 10      //IP주소를 통째로 넣었다.

R1(config-router)# net 1.1.1.1 0.0.0.0 area 10               //Wildcard Mask를 0.0.0.0으로 넣어 IP 하나를 지정해 줬다.


 


R2>en

R2# conf t

 

R2(config)# int fa0/0

R2(config-if)# ip add 192.168.2.254 255.255.255.0

R2(config-if)# no sh                                               //fa0/0 포트 선언

 

R2(config-if)# int se0/0

R2(config-if)# ip add 1.1.1.2 255.0.0.0

R2(config-if)# no sh                                               //se0/0 포트 선언

 

R2(config-if)# int se0/1

R2(config-if)# ip add 2.1.1.1 255.0.0.0

R2(config-if)# no sh                                               //se0/1 포트 선언

 

R2(config-if)# router ospf 1

R2(config-router)# net 192.168.2.254 0.0.0.0 area 10

R2(config-router)# net 1.1.1.2 0.0.0.0 area 10

R2(config-router)# net 2.1.1.1 0.0.0.0 area 0               //라우팅 설정


 

 

R2 라우팅 테이블

O : 는 R2와 겹쳐져 있는 AREA에서 OSPF로 연결되었다는 뜻

O IA :다른 AREA에 있는 네트워크

 

 

728x90

'보안 > 강의정리' 카테고리의 다른 글

ACL  (0) 2021.06.03
DHCP  (0) 2021.06.03
OSPF 이론  (0) 2021.05.31
EIGRP 이론 실습 라우팅 설정하기  (0) 2021.05.31
와일드카드 마스크  (0) 2021.05.31