실습 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 //라우팅 설정
O : 는 R2와 겹쳐져 있는 AREA에서 OSPF로 연결되었다는 뜻
O IA :다른 AREA에 있는 네트워크