본문 바로가기

컴퓨터 과학 & 영상처리 관련/네트워크 프로토콜

111114 ospf


 






## R1 Basic Config ##


enable
conf t
!
hostname R1
!
enable password ccna
!
no ip domain lookup
!
interface Loopback1
 ip address 172.16.11.1 255.255.255.0
!
interface Serial1/0
 ip address 10.1.102.1 255.255.255.248
 bandwidth 2048
 no shutdown
!
interface Serial1/1
 ip address 10.1.103.1 255.255.255.248
 bandwidth 2048
 no shutdown
!
line con 0
 exec-timeout 0 0
 logging synchronous
line vty 0 4
 password cisco
 login
!
end


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




## R1 OSPF Config ##


enable
conf t
!
router ospf 1   (1은 as번호 별로 안중요해 area 번호가 중요)
 network 172.16.11.0 0.0.0.255 area 0  //와일드 카드씀
 network 10.1.102.0 0.0.0.7 area 0
 network 10.1.103.0 0.0.0.7 area 0
!
end



as는 100개정도의 라우터가 들어갈 수 있는 네트워크가
달라도 상관없는데 area만 같으면 대충 되는듯

----------------------------------------여긴 osps만 한상태...eigrp rip도 겹칠 수 있어


R1#show ip route ospf
     10.0.0.0/29 is subnetted, 3 subnets
O       10.1.203.0 [110/1562] via 10.1.102.2, 00:04:49, Serial1/0
                   [110/1562] via 10.1.103.3, 00:04:49, Serial1/1
     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
O       172.16.21.1 [110/782] via 10.1.102.2, 00:05:57, Serial1/0
O       172.16.31.1 [110/782] via 10.1.103.3, 00:04:49, Serial1/1


10.1.102.2랑 10.1.103.3이 10.1.203.0랑 172.16.0.0으로 간다?