본문 바로가기
네트워크 수업

트러블슈팅 23.02.22

by 6^6 2023. 2. 22.
728x90

R4

Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES unset  administratively down down    
FastEthernet0/1            unassigned      YES unset  administratively down down    
Serial1/0                  unassigned      YES unset  up                    up      
Serial1/0.23               unassigned      YES unset  up                    up      
Serial1/0.34               22.22.34.4      YES manual down                  down    
Serial1/1                  unassigned      YES unset  administratively down down    
Serial1/2                  unassigned      YES unset  administratively down down    
Serial1/3                  unassigned      YES unset  administratively down down    
Loopback0                  22.22.4.4       YES manual up                    up

 

no shut이 안먹힘.

 

ip route 넣어주었으나,

show ip route 확인

R4#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     22.0.0.0/24 is subnetted, 1 subnets
C       22.22.4.0 is directly connected, Loopback0

아무것도 안나옴....

 

R4#show run 확인

interface Loopback0
 ip address 22.22.4.4 255.255.255.0
!         
interface FastEthernet0/0
 no ip address
 shutdown 
 duplex auto
 speed auto
!         
!
interface Serial1/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 no frame-relay inverse-arp
!         
interface Serial1/0.34 point-to-point
 ip address 22.22.34.4 255.255.255.0
 snmp trap link-status
 frame-relay interface-dlci 304   >>>>나중에 확인해보니 여기에서도 문제 발견 가능했다.....
!         
!         
ip http server
no ip http secure-server
ip forward-protocol nd
ip route 22.22.1.0 255.255.255.0 Serial1/0.34 22.22.34.3
ip route 22.22.2.0 255.255.255.0 Serial1/0.34 22.22.34.3
ip route 22.22.3.0 255.255.255.0 Serial1/0.34 22.22.34.3
ip route 22.22.12.0 255.255.255.0 Serial1/0.34 22.22.34.3
ip route 22.22.23.0 255.255.255.0 Serial1/0.34 22.22.34.3
!         
!         
!         

더 빠른 해결 방법>>

show fram map 확인

R4(config)#do show frame map
Serial1/0.34 (down): point-to-point dlci, dlci 304(0x130,0x4C00), broadcast
          status deleted
Serial1/0.23 (up): point-to-point dlci, dlci 403(0x193,0x6430), broadcast
          status defined, active

s1/0.34에 403이 아닌 304를 넣어주고

403을 s1/0.23에 넣어준 총체적 난국 발견.....

 

R4(config)#int s1/0.34
R4(config-subif)#frame int 403
%PVC already assigned to sub-interface Serial1/0.23

//하지만 바로 403을 넣어주면 이미 403 PVC가 있어서 적용XX
//DLCI 전부 지워주고 다시 입력하면 

R4(config-subif)#int s1/0.23
R4(config-subif)#no frame int 403
R4(config)#int s1/0.34
R4(config-subif)#no frame int 304

R4(config-subif)#int s1/0.34R4(config-subif)#frame int 403

 

해결>>

R4(config-fr-dlci)#do show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     22.0.0.0/24 is subnetted, 7 subnets
S       22.22.1.0 [1/0] via 22.22.34.3, Serial1/0.34
S       22.22.2.0 [1/0] via 22.22.34.3, Serial1/0.34
S       22.22.3.0 [1/0] via 22.22.34.3, Serial1/0.34
C       22.22.4.0 is directly connected, Loopback0
S       22.22.12.0 [1/0] via 22.22.34.3, Serial1/0.34
S       22.22.23.0 [1/0] via 22.22.34.3, Serial1/0.34
C       22.22.34.0 is directly connected, Serial1/0.34

 

R4#ping 22.22.1.1 source 22.22.4.4 

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.22.1.1, timeout is 2 seconds:
Packet sent with a source address of 22.22.4.4 
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/90/104 ms

 

서브넷도 잘 나오고 핑도 잘 보내지는 것 확인 완!

 

>>또 다른 방법

traceroute 주소

R4#traceroute 22.22.1.1

Type escape sequence to abort.
Tracing the route to 22.22.1.1

  1 22.22.34.3 84 msec 76 msec 80 msec
  2 22.22.23.2 116 msec 116 msec 116 msec
  3 22.22.12.1 156 msec *  120 msec

 


 

##명령어 다시 복습

show ip int brief

//현재 장비의 단자 up/down 여부와 ip확인

 

show run

//러닝 컴피그 즉, 현재 설정을 보여달라

 

show run int s1/0

//러닝 컨피그 중 s1/0(주인터페이스)단자의 설정만 요약해서 보여달라.

 

show run int s1/0.12

//러닝 컨피그 중 s1/0.12(서브인터페이스) 단자의 설정만 요약해서 보여달라.

 

show frame map

//dlci 맵핑 정보를 요약해서 보여달라.

 

 

 

 

===

라우팅테이블 보는방법

 

참조 : https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=fkdka1111&logNo=130041089683

- 라우팅 테이블
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set ②
     1.0.0.0/24 is subnetted, 8 subnets ③
R       1.1.1.0 [105/1] via 1.1.12.1, 00:00:01, Serial0/0.12
④         ⑤       ⑥  ⑦             ⑧           ⑨               ⑩
C       1.1.2.0 is directly connected, Loopback0
⑪                                                               ⑫
R       1.1.3.0 [105/1] via 1.1.32.3, 00:00:04, Serial0/0.32 
                [105/1] via 1.1.23.3, 00:00:03, Serial0/0.23     ⑬
R       1.1.4.0 [105/2] via 1.1.32.3, 00:00:04, Serial0/0.32
                [105/2] via 1.1.23.3, 00:00:03, Serial0/0.23
C       1.1.12.0 is directly connected, Serial0/0.12
C       1.1.23.0 is directly connected, Serial0/0.23
C       1.1.32.0 is directly connected, Serial0/0.32
R       1.1.34.0 [105/1] via 1.1.32.3, 00:00:04, Serial0/0.32
                 [105/1] via 1.1.23.3, 00:00:03, Serial0/0.23
R    2.0.0.0/8 [105/1] via 1.1.12.1, 00:00:01, Serial0/0.12
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks   
C       3.3.3.0/24 is directly connected, Loopback3
C       3.3.33.0/25 is directly connected, Loopback33
 
(=ㅅ= G 랑 C가 많이 헷리게 나오네요;;;)
 
1- 라우팅 테이블에 저장된 네트워크의 종류를 표시하는 코드이다.
 
2- 디폴트 게이트웨이가 설정되지 않았음을 표시 한다.
 
3- 1.0.0.0 네트워크가 24 비트 마스크로 서브넷팅되어 있으며, 서브넷의 수량은 8개이다.
이하에 나타나는 네트워크들이 서브넷팅된 8개의 서브넷이다. 서브넷 마스크 길이가 다른 경우에 대한  표시 방법은 14번과 같다.
 
4- 목적지 네트워크를 광고받은 라우팅 프로토콜을 표시한다. 즉, 1.1.1.0/24 네트워크를 RIP으로 광고 받았음을 의미한다.
 
5- 목적지 네트워크를 의미한다.
 

 

6- 목적지 네트워크의 AD값을 표시한다.
 
7- 목적지 네트워크의 메트릭 값을 표시한다.
 
8- 목적지 네트워크로 가는 넥스트 홉 IP 주소를 표시한다.
 
9- 목적지 네트워크에 대한 라우팅 정보를 최종적으로 수신한 수 경과한 시간을 의미한다. rip의 경우 이 시간이 30초 보다 크면 제때에 라우팅 저오를 수신하지 못했음을 의미한다.
 
10- 목적지 네트워크로 가는 인터페이스를 표시한다. 8번과 10번은 의미는 다르지만 역할은 같다. 즉, 목적지 네트워크로 가는 출구를 알려준다.
 
11- 현재의 라우터에 직접 접속되어 잇는 네트워크임을 나타낸다.
 
12- 해당 네트워크가 설정되어 잇는 인터페이스의 종류 및 번호를 나타낸다.
 
13- 특정 목적지 네트워크에 대해서 출력 인터페이스 (또는 next hop ip 주소)가 두개 이상 설정
되어 있으면 해당 네트워크로 가는 경로가 부하 분산됨을 의미한다.
 
14- 3.0.0.0/8 네트워크는 가변길이 서브넷 마스킹되어 있음을 나타낸다. 즉, 서브넷 마스크의 길이가 다른 서브넷으로 구성되어 잇음을 나태낸다. 또, 서브넷 마스크의 길이가 두 종류이며, 서브넷도 두 개임을 나타낸다.
728x90

댓글