EIGRP summary , Packet
EIGRP 설정
# 공통 설정
En
conf t
no ip domain lookup
line c 0
logg syn
exec-timeout 0
exit
hostname
int s1/0
no shut
encap fram
no fram inver
clock rate 64000
exit
# IP Address & Mapping
R1]
conf t
int l0
ip add 4.4.1.1 255.255.255.0
exit
int s1/0
ip add 4.4.12.1 255.255.255.0
fram map ip 4.4.12.2 102 br
R2]
conf t
int l0
ip add 4.4.2.2 255.255.255.0
exit
int s1/0.12 m
ip add 4.4.12.2 255.255.255.0
fram map ip 4.4.12.1 201 br
exit
int s1/0.23 m
ip add 4.4.23.2 255.255.255.0
fram map ip 4.4.23.3 203 br
R3]
conf t
int l0
ip add 4.4.3.3 255.255.255.0
exit
int s1/0.23 m
ip add 4.4.23.3 255.255.255.0
fram map ip 4.4.23.2 302 br
exit
int s1/0.34 p
ip add 4.4.34.3 255.255.255.0
fram inter 304
R1]
conf t
int l0
ip add 4.4.4.4 255.255.255.0
exit
int s1/0.34 p
ip add 4.4.34.4 255.255.255.0
fram inter 403
# EIGRP
R1]
conf t
router eigrp 4
eigrp router-id 27.27.1.1
network 27.27.1.1 0.0.0.0
network 27.27.12.1 0.0.0.0
no auto-summary
passive-interface lo0
R2]
conf t
router eigrp 4
eigrp router-id 27.27.2.2
network 27.27.2.2 0.0.0.0
network 27.27.12.2 0.0.0.0
network 27.27.23.2 0.0.0.0
no auto-summary
passive-interface lo0
R3]
conf t
router eigrp 4
eigrp router-id 27.27.3.3
network 27.27.3.3 0.0.0.0
network 27.27.23.3 0.0.0.0
network 27.27.34.3 0.0.0.0
no auto-summary
passive-interface lo0
R4]
conf t
router eigrp 4
eigrp router-id 27.27.4.4
network 27.27.4.4 0.0.0.0
network 27.27.34.4 0.0.0.0
no auto-summary
passive-interface lo0
실습
# R2 lo5 ip 5.5.0.1, 5.5.1.1 , 5.5.2.1 , 5.5.3.1 추가 후 eigrp network에 추가 (24bits)
R2]
int lo5
ip add 5.5.0.1
ip add 5.5.1.1 secondery
ip add 5.5.2.1 secondery
ip add 5.5.3.1 secondery
exit
router eigrp 4
network 5.5.0.0 0.0.3.255
- R1에서 Sh ip route 하면 5.5.0.0/24 , 5.5.1.0/24 , 5.5.2.0/24 , 5.5.3.0/24 이 형성됨을 확인할 수 있다.
# R2의 Lo5을 R1쪽으로 summary
R2]
int s1/0.12
ip summary-address eigrp 5.5.0.0 255.255.252.0
# R1에서 S1/0에서 Summary default 가정.
R1]
int s1/0
ip add summary-address eigrp 4 0.0.0.0 0.0.0.0
-
축약을 하게되면 축약한 네트워크의 AD값은 5이다. 축약 네트워크는 최우선 AD값을 가진다.
-
만약에 r2가 축약한 5.5.2.1이 죽었을때 r1입장에서는 모르는상태로 디폴트를 던진다.
-
R2에는 라우팅테이블에 5.5.2.1 없기에 R1에서 그사실을 모르고 디폴트기에 계속 던지다보면 cpu에 과부하가 걸려 R1 , R2 둘다 죽는다.
-
그래서 축약을 하면 루프방지를 위해
NULL0
가 생긴다. -
결론 : 축약을 하세요 =>
NULL0를 생성하세요.
가 된다.
# R2에서 R3로 ip summary default.
R2]
Int s1/0.23
Ip summary-address eigrp 4 0.0.0.0 0.0.0.0
# R3에서 R4로 ip summary default.
R3]
Int s1/0.34
Ip summary-address eigrp 4 0.0.0.0 0.0.0.0
R2]
No int l5
Exit
Router eigrp 4
No net 5.5.0.0 0.0.3.255
=>라우팅테이블 복잡해서 지움.
R4]
- R4에서 R3가 알려준 default route가 생김.
R3]
-
R2가 R3에게 준 AD값(90)은 밀리기 때문에. 삭제되고 R3에서 R4로 축약한 디폴트만 AD값 5로 남았다.
-
R2가 보내준 디폴트값은 R3의 default summary로 인해 4.4.2.0은 없어짐.
-
결론적으로 R3에서 R2의 4.4.2.2 는 라우팅 테이블에 없기때문에 통신할 수 없다. => 블랙홀이 발생함.
-
R2가 R3에게 준 디폴트 AD(90)은 R3가 R4에게 잡아준 디폴트 NULL0 5 값에 졌을때 그러면 R2에게 받은 AD90보다 열등하게 설정하면 됨.
R3]
int s1/0.34
no Ip summary-address eigrp 4 0.0.0.0 0.0.0.0
ip summary-address eigrp 4 0.0.0.0 0.0.0.0 100
R3]
-
R2로 향하는 Default 값이 제대로 형성 되었다.
-
R4도 AD값 90에 34.3으로 향하는 default route가 다시 형성됨을 확인할 수 있다.
R2]
int s1/0.23
no ip summary-address eigrp 4 0.0.0.0 0.0.0.0
ip summary-address eigrp 4 0.0.0.0 0.0.0.0 100
=> R1에서 받은 디폴트 값도 우등하게 다시 설정.
**축약은 AD값과 NELL0를 잘 생각할 줄 알아야함.
실습2
# EIGRP Update
R1]
conf t
int l0
shut
debug eigrp packets update
int l0
no shut
=> Flush Update를 확인할 수 있다.
# EIGRP Query
R1]
conf t
int l0
shut
!
debug eigrp packets query
=> 1.0로 가는 successor(R1)가 사라지고 feasible successor가 없을때 1.0으로 가는경로를 네이버인 R2에게 묻는다.
# EIGRP Reply
R1]
debug eigrp packets reply
conf t
int l0
no shut
=> updata에 대한 reply는 없다. 그러나, query에 대한 reply는 발생한다.
# EIGRP Query에 대한 reply를 못받게 할때.
R1]
Ip access-list extended NO_EIGRP
Deny eigrp host 4.4.12.2 any
Permit ip any any
Int s1/0
Ip access-group NO_EIGRP in
end
deb eigrp packets reply query
Conf t
Int l0
Shut
=> 3분안에 reply 를 수신하지 못할 경우, neighbor 관계가 끊기고 hello도 못받는다.
댓글남기기