OSPF 기본 설정 & neighbor 확인 & DR 확인 & 라우터 ID 확인

2016. 3. 14. 15:34네트워크


R1


ena

conf t

no ip do loo

line cons 0

exec-t 0

logg syn

exit


int fa 0/0

ip add 16.16.123.1 255.255.255.0

no shut

exit


int loo 0

ip add 1.1.1.1 255.255.255.0

exit


router ospf 1

network 16.16.123.1 0.0.0.0 area 0      ====> OSPF 설정

network 1.1.1.1 0.0.0.0 area 0

exit



================================================

R2


ena

conf t

no ip do loo

line cons 0

exec-t 0

logg syn

exit


int fa 0/0

ip add 16.16.123.2 255.255.255.0

no shut

exit


int loo 0

ip add 2.2.2.1 255.255.255.0

exit


router ospf 1

network 16.16.123.2 0.0.0.0 area 0

network 2.2.2.1 0.0.0.0 area 0

exit



================================================

R3


ena

conf t

no ip do loo

line cons 0

exec-t 0

logg syn

exit


int fa 0/0

ip add 16.16.123.3 255.255.255.0

no shut

exit



int s 1/0

encap fr

no fr inverse-arp

no shut

exit


int s 1/0.34 mul

ip add 16.16.34.3 255.255.255.0

frame-relay map ip 16.16.34.4 304 broadcast

exit


int s 1/0.43 po

ip add 16.16.43.3 255.255.255.0

frame-relay interface-dlci 314 

exit


int loo 0

ip add 3.3.3.1 255.255.255.0

exit


router ospf 1

network 16.16.34.3 0.0.0.0 area 0

network 16.16.43.3 0.0.0.0 area 0int

network 16.16.123.3 0.0.0.0 area0

network 3.3.3.1 0.0.0.0 area 0

exit


router ospf 1

nei 16.16.34.4                          =============>frame-relay는 NBMA이다.

exit                                          ===============>NBMA는 neighbor를 수동으로 맺어 줘야한다.



==================================================

R4


ena

conf t

no ip do loo

line cons 0

exec-t 0

logg syn

exit


int s 1/0

encap fr

no fr inverse-arp

no shut

exit


int s 1/0.34 mul

ip add 16.16.34.4 255.255.255.0

frame-relay map ip 16.16.34.3 403 broadcast

frame-relay map ip 3.3.3.1 403 broadcast

exit


int s 1/0.43 po

ip add 16.16.43.4 255.255.255.0

frame-relay interface-dlci 413 

exit


int loo 0

ip add 4.4.4.1 255.255.255.0

exit


router ospf 1

network 16.16.34.4 0.0.0.0 area 0

network 16.16.43.4 0.0.0.0 area 0

network 4.4.4.1 0.0.0.0 area 0

exit


router ospf 1

nei 16.16.34.3                         =============>frame-relay는 NBMA이다.

exit                                         ===============>NBMA는 neighbor를 수동으로 맺어 줘야한다.



************************************************************************************************

◆ DR이 잘못잡혔을때는 clear ip ospf process를 해주면 된다.

==>hello packet interval때문에 잘못잡히는 것이다.

    (BMA는 10초여서 router 3에 ospf를 설정해주는 동안 이미 ospf설정이 마친 router 1과 router 2가 

     먼저 hello packet을 교환하여 DR을 맺었기 때문)