관리 메뉴

도드넷

시스코 라우팅 RIP, OSPF, EIGRP - 정적 라우팅 본문

창고/정보기기운용기능사 [폐쇄]

시스코 라우팅 RIP, OSPF, EIGRP - 정적 라우팅

도드! 2015. 5. 31. 14:07
반응형




정보기기운용기능사 요점정리 14 - 라우팅


시스코 라우팅이란 라우터간 통신을 구축할수 있도록 하는 것임.

정보기기운용기능사에서 물어볼수있는 라우팅기법은 총 5가지가 있음. 한번에 정리해봄.


1. RIP

2. OSPF

3. EIGRP

4. 정적 라우팅

5. 디폴트 라우팅


난이도 : 








Q1

RIP 라우팅

RIPv2를 사용하여 Full-Routing을 설정하시오. 



A1

정답

Router0>en

Router0#conf t

Router0(config)#router rip

Router0(config-router)#ver 2

Router0(config-router)#do show ip route


...

C    210.10.10.0/24 is directly connected, FastEthernet0/0.10

C    210.20.20.0/24 is directly connected, FastEthernet0/0.20

C    210.30.30.0/24 is directly connected, FastEthernet0/0.30

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


Router0(config-router)#network 210.10.10.0

Router0(config-router)#network 210.20.20.0

Router0(config-router)#network 210.30.30.0

Router0(config-router)#network 210.210.203.0


ISP>en

ISP#conf t

ISP(config)#router rip

ISP(config-router)#ver 2

ISP(config-router)#do show ip route


...

     150.183.0.0/24 is subnetted, 1 subnets

C       150.183.180.0 is directly connected, FastEthernet0/0

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


ISP(config-router)#network 210.210.203.0

ISP(config-router)#network 150.183.180.0




Q2

OSPF 라우팅

Router0와 ISP 라우터에 OSPF(Area 0, 임의의 Process-ID)를 사용하여 Full Routing을 설정하시오.


A2

정답

Router0>en

Router0#conf t

Router0(config)#router ospf 7

Router0(config-router)#do show ip route


...

C    210.10.10.0/24 is directly connected, FastEthernet0/0.10

C    210.20.20.0/24 is directly connected, FastEthernet0/0.20

C    210.30.30.0/24 is directly connected, FastEthernet0/0.30

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


Router0(config-router)#network 210.10.10.0 0.0.0.255 area 0

Router0(config-router)#network 210.20.20.0 0.0.0.255 area 0

Router0(config-router)#network 210.30.30.0 0.0.0.255 area 0

Router0(config-router)#network 210.210.203.0 0.0.0.255 area 0



ISP>en

ISP#conf t

ISP(config)#router ospf 7

ISP(config-router)#do show ip route


...

     150.183.0.0/24 is subnetted, 1 subnets

C       150.183.180.0 is directly connected, FastEthernet0/0

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


ISP(config-router)#network 210.210.203.0 0.0.0.255 area 0

ISP(config-router)#network 150.183.180.0 0.0.0.255 area 0



Q3

EIGRP 라우팅

Router0와 ISP 라우터에 EIGRP를 사용하여 Full Routing을 설정하시오. AS Number는 임의로 사용하시오.


A3

정답

Router0>en

Router0#conf t

Router0(config)#router eigrp 7

Router0(config-router)#do show ip route


...

C    210.10.10.0/24 is directly connected, FastEthernet0/0.10

C    210.20.20.0/24 is directly connected, FastEthernet0/0.20

C    210.30.30.0/24 is directly connected, FastEthernet0/0.30

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


Router0(config-router)#network 210.10.10.0 0.0.0.255 

Router0(config-router)#network 210.20.20.0 0.0.0.255 

Router0(config-router)#network 210.30.30.0 0.0.0.255 

Router0(config-router)#network 210.210.203.0 0.0.0.255 



ISP>en

ISP#conf t

ISP(config)#router eigrp 7

ISP(config-router)#do show ip route


...

     150.183.0.0/24 is subnetted, 1 subnets

C       150.183.180.0 is directly connected, FastEthernet0/0

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


ISP(config-router)#network 210.210.203.0 0.0.0.255 

ISP(config-router)#network 150.183.180.0 0.0.0.255 



// Memo //

* eigrp 과 ospf 의 표면적 차이라면 area가 있고 없고이다.


* 잠깐! : 라우팅시 주의할 점

: 기본적 네트워크 int-vlan 설정, 필요한 모든 포트에 아이피부여, clock rate 설정 

등을 기초작업 모두 다 셋팅하고난 후에 라우팅을 하자. 그래야 do show ip route에 연결된 네트워크들이 보인다!! 



Q4

정적 라우팅

Router0와 ISP 라우터에 정적 라우팅을 사용하여 Full Routing을 설정하시오. 


A4

정답


Router0>en

Router0#conf t

Router0(config)#do show ip route

...

C    210.10.10.0/24 is directly connected, FastEthernet0/0.10

C    210.20.20.0/24 is directly connected, FastEthernet0/0.20

C    210.30.30.0/24 is directly connected, FastEthernet0/0.30

C    210.210.203.0/24 is directly connected, Serial0/0/0

...


Router0(config)#ip route 150.183.180.0 255.255.255.0 210.210.203.2


ISP>en

ISP#conf t

ISP(config)#do show ip route

...

C       150.183.180.0 is directly connected, FastEthernet0/0

C    210.210.203.0/24 is directly connected, Serial0/0/0

...

ISP(config)#ip route 210.10.10.0 255.255.255.0 210.210.203.1

ISP(config)#ip route 210.20.20.0 255.255.255.0 210.210.203.1

ISP(config)#ip route 210.30.30.0 255.255.255.0 210.210.203.1


* 정적 라우팅 형식은 다음과 같다. 

- ip route 목적네트워크 서브넷마스크 거쳐야할라우터포트주소.

- 거쳐야할 라우터포트주소는 그냥 그 라우터에 마우스 슬쩍 가져다 대면 포트정보가 쭉뜨는데 그걸로 찾거나 잠겨있다면 cdp run, do show cdp neighbors detail 을 치면 정보가 뜬다.



Q5

디폴트 라우팅

Router0와 ISP 라우터에 디폴트 라우팅을 사용하여 Full Routing을 설정하시오. 


A5

정답

Router0>en

Router0#conf t

Router0(config)#ip route 0.0.0.0 0.0.0.0 210.210.203.2


ISP>en

ISP#conf t

ISP(config)#ip route 0.0.0.0 0.0.0.0 210.210.203.1


* 디폴트 라우팅 형식은 다음과 같다.

ip route 0.0.0.0 0.0.0.0 거쳐야할라우터포트주소.

- 정적 라우팅의 한 방법으로 목적지를 0.0.0.0 0.0.0.0으로 해서 몽땅 다 보내버리는 방법이다. 



// 라우팅 관련 추가 암기사항 //


* 해당 포트로 라우팅 정보가지 않게 하기

- 라우터 설정에서 passive-interface [포트] 치면 된다.


* 정보 요약되지 않도록 하기

- 라우터 설정에서 no auto-sum 치면 된다. 






반응형
Comments