yumyum

[Cisco] Frame relay 본문

ICT기반 클라우드 네트워크 해킹 침해대응전문가/Cisco

[Cisco] Frame relay

yumyum0603 2023. 8. 18. 17:47

프레임릴레이

- 물리계층과 데이터링크 계층에서 동작

- x.25 -> Frame Relay로 변화하면서 헤더가 삭제

- 오류검출시 패킷 수정, 폐기

 

Frame relay 예제

##R1

 

[루프백, IP부여]

 

R1(config)#int l0

R1(config-if)#ip addr 1.1.1.1 255.255.255.0

 

R1(config-if)#int f0/0

R1(config-if)#ip addr 10.10.10.1 255.255.255.0

R1(config-if)#no shut

 

R1(config-if)#int s1/0

R1(config-if)#ip addr 203.230.7.1 255.255.255.0

R1(config-if)#no shut

 

[프레임 릴레이]

 

R1(config-if)#encapsulation frame-relay

(203.230.7.1 에서 7.2 7.3 각각으로 프레임 릴레이 해주기) (102는 7.1에서 7.2, 103은 7.1에서 7.3으로 간다는것을 임의로 이름 지정한것)

R1(config-if)#frame-relay map ip 203.230.7.2 102 broadcast

R1(config-if)#frame-relay map ip 203.230.7.3 103 broadcast

R1(config-if)#no shut

 

[라우트]

 

R1(config-if)#router rip

R1(config-router)#version 2

 

R1(config-router)#network 1.0.0.0

R1(config-router)#network 10.0.0.0

R1(config-router)#network 203.230.7.0

 

R1(config-router)#no auto-summary

 

##R2,R3도 R1과 마찬가지로 해줌

 

 

##Cloud0 (Serial 0-2 입력)

 

 

##Frame Relay에서 포트와 서브링크 적절히 지정해주기

 

 

** 이때 PC 1 -> 2 연결 가능, PC 3->2 연결 가능하지만, 1->3 은 연결이 안된다.

이것은 스플릿 호라이즌(split horizon) 때문인데, 모두와 연결가능한 R2에서 no split horizon을 해주자

 

##R2

R2(config)#int s1/0

R2(config-if)#no ip split-horizon

R2(config-if)#no shut

 

R2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down

 

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

 

R2(config-if)#

R2(config-if)#shut

 

R2(config-if)#

%LINK-5-CHANGED: Interface Serial1/0, changed state to administratively down

 

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down

 

no split-horizon을 해주고나서는 shut해주고 다시 no shut해줌으로써 껐다 켜주자

 

PC 1 -> PC 3

PC1에서 PC3으로 핑 때렸을때, 연결 잘 되는것 확인.

 

################################################################################################

옆에 연결된 PC4,5,6는 똑같은 과정으로 해준다.

 

다만 R2와 R5가 연결되어 있고, 모두 통신되는것이 목적이니, 

각 R2와 R5에 다른 라우터보다 하나씩 더 연결된 포트의 IP를 추가해주고, 

라우터끼리의 연결을 위해 RIPv2를 해준다.

 

##R2 (RIPv2)

R2#conf t

 

R2(config)#router rip

R2(config-router)#version 2

 

R2(config-router)#network 203.230.9.0

R2(config-router)#no auto-summary

 

##R5 (RIPv2)

 

R2#conf t

 

R2(config)#router rip

R2(config-router)#version 2

 

R2(config-router)#network 203.230.9.0

R2(config-router)#no auto-summary

 

##최종확인

 

PC3에서 PC0으로 핑했을때, 연결되는것을 확인.