네트워크/라우터 & 스위치
0414 공부정리
dp.
2011. 4. 14. 15:05
서머리를 꺼야만 하는 조건?
서머리가된 (클래스풀) 주소를 전달하는 라우터는 받는 라우터에서 클래스 래스 한 주소를 인식못하므로 전달하기전에 오토서머리를 꺼야한다.
즉, 한 네트워크를 나누어 쓰는 라우터들은 다른 라우터에게 전달하기 위해서 오토서머리를 꺼야한다.
즉, 한 네트워크를 나누어 쓰는 라우터들은 다른 라우터에게 전달하기 위해서 오토서머리를 꺼야한다.
OSPF 네이버 링크스테이스 라우팅 테이블 3가지가 올라온다
EIGRP는 메트릭 계산은 RIP랑 비슷하고 패킷은 OSPF랑 비슷하다
summary를 꺼야만하는 조건???
eigrp에서 핼로패킷을 주고 받음으로서 형성된 토폴로지중에서 최적의 경로만이 라우팅 테이블에 올라간다.
오토 서머리 관련 :
보내려는 인터페이스와 받는 인터페이스 간에 같은 클래스이면 안에서 서브네팅 되어도 라우터가 서브네팅을 인지할 수있다.
기본적으로 클래스 풀하게 전달한다. 가지고 있는건 전체가 아니라 일부분이므로 나머지 IP는 null로 버린다
ex>
A----------------------------------------------------------B
192.168.1.0/25 1.0/24
이 상황에서
A의 라우팅 테이블
D 192.168.1.0/24 ...................... null
C 192.168.1.0/25.......................... fast
1. B에서 A로 패킷을 보낸다. 192.168.1.200 으로 보낼때 eigrp 는 관계 형성 시 클래스풀하게 되므로
일부만 사용하는 상태에서 200은 버려야한다.
2. 해당 라우터가 IP대역을 하나가 아닌 서로다른 두개 이상 을 사용할때 해당라우터에 null로 보내는 것이 라우팅 테이블에 생긴다.
패킷구조
RIP [Network . RIP, UDP, IP L2]
UDP src.dst port : 520
IP Protocol ; UDP
IP src addr : 인터페이스
IP dst addr : 255.255.255.255(RIPv1)
224.0.0.9 (RIPv2)
OSPF [NETWORK. OSPF, IP, L2]
IP Protocol ; OSPF(89-포트확인해보기)
IP src addr : 인터페이스
IP dst addr : 224.0.0.5ㅡ,ㅡㅡ 224.0.0.6
EIGRP [Network, EIGRP, IP, L2]
IP Protocol ; EIGRP(88)
IP src addr : 인터페이스
IP dst addr : 224.0.0.10
BGP [ Network, BGP, TCP, IP, L2]
IP Protocol ; TCP(7)
IP src addr : 인터페이스
IP dst addr : Unicast address
TCP src port : 임의
TCP dst port : 179
OSPF 패킷종류 5가지
Eigrp 패킷종류 5가지
hello --> 이웃 테이블 만듦
5초마다/15초면 삭제
update --> 토폴로지 테이블 만듦
query --> 네트웍이 다운되면 이거 알고있니? 하고 물어본다.
reply --> qyuery에 대한 응답
ack --> 위의 3개에 대해 확실하게 하기 위한 확인작업
Eigrp neighbor 맺는 조건(네이버테이블만듦)
k상수값 동일
AS number 동일
Hello/hold timer 같지 않아도 됨.
OSPF neighbor 맺는 조건
hello/dead time 동일 (10초 /40 초)
area ID동일
authentication type, password 동일
stub area 동일
MTU 동일
서브넷도 같아야함
정보확인하는 방법
sh ip protoles
Routing Protocol is "eigrp 369 " >> AS 대 구역
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 369Routing Protocol is "eigrp 369 "
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100 //최대 255개 까지 바꿀 수 있다.
EIGRP maximum metric variance 1 ////이게 바로 메트릭값.... 아래 maximum path를 참고하시오
Redistributing: eigrp 369
Automatic network summarization is in effect >>서브넷마스크를 적용할지의 여부
Automatic address summarization:
Maximum path: 4 >> 케이블이 6개 연결되어도 같은 메트릭이면 최대 4개까지라우팅 테이블에 올린다
다른값이면
//A_R과 B_R사이
s1/0 2.024m
s1/1 1.455m
s1/2 512k
s1/3 256k
s1/4 128k
s1/5 64k
이면 s1/0만 올라감
Routing for Networks:
193.1.1.0/29
Routing Information Sources:
Gateway Distance Last Update
193.1.1.2 90 9222
Distance: internal 90 external 170
Automatic network summarization is in effect
Automatic address summarization:
Maximum path: 4
Routing for Networks:
193.1.1.0/29 ------------> 이 네트워크를
Routing Information Sources:
Gateway Distance Last Update
193.1.1.2 90 9222 -----------------------------> 요기로 전달한다.
Distance: internal 90 external 170
sh interface serial 1/0
Miami_R>sh interface serial 1/0
Serial1/0 is up, line protocol is up (connected) ; 상태 up, up 이고 connected는 바로 연결되어있다는 뜻?
Hardware is HD64570
Internet address is 220.23.7.2/30 ; 해당 인터페이스의 주소
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, //mtu, 밴드위스 확인
reliability 255/255, txload 1/255, rxload 1/255 //신뢰성, 보내고 받는 부하
Encapsulation HDLC, loopback not set, keepalive set (10 sec) //HDLC는 시리얼,
Last input never, output never, output hang never //
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0 //큐에 대기중인 패킷 ? 드랍시킨 패킷
Queueing strategy: weighted fair //큐잉 정책?
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 96 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec //5분동안 들어온 패킷의 수와 bit를 초단위로 표현
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
Miami_R>
sh ip interface serial 1/0
Miami_R>sh ip int serial 1/0
Serial1/0 is up, line protocol is up (connected) //up,up
Internet address is 220.23.7.2/30 //해당 인터페이스 주소
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 //
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is disabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled
Miami_R>
R2>sh ip interface brief //해당 장비의 인터페이스 종류를 확인할 수 있고 각 인터페이스별 상태를 확인 가능
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 100.3.3.2 YES manual up up
Serial1/1 100.3.3.6 YES manual up up
Serial1/2 100.3.3.10 YES manual up up
Serial1/3 100.3.3.13 YES manual up up
Serial1/4 100.3.3.17 YES manual up up
Serial1/5 100.3.3.21 YES manual up up
Serial1/6 unassigned YES unset administratively down down
Serial1/7 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
R2>
EIGRP
sh ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
100.0.0.0/8 is variably subnetted, 8 subnets, 3 masks
D 100.1.0.0/16 [90/20514560] via 100.3.3.1, 00:00:03, Serial1/0
[90/20514560] via 100.3.3.9, 00:00:00, Serial1/2
[90/20514560] via 100.3.3.5, 00:00:00, Serial1/1
D 100.2.2.0/24 [90/2172416] via 100.3.3.22, 00:00:01, Serial1/5
C 100.3.3.0/30 is directly connected, Serial1/0
C 100.3.3.4/30 is directly connected, Serial1/1
C 100.3.3.8/30 is directly connected, Serial1/2
C 100.3.3.12/30 is directly connected, Serial1/3
C 100.3.3.16/30 is directly connected, Serial1/4
C 100.3.3.20/30 is directly connected, Serial1/5
R2>sh ip eigrp interfaces
IP-EIGRP interfaces for process 257
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se1/3 1 0/0 1236 0/10 0 0 // peers은 이웃
Se1/4 1 0/0 1236 0/10 0 0
Se1/5 1 0/0 1236 0/10 0 0
Se1/0 1 0/0 1236 0/10 0 0
Se1/2 1 0/0 1236 0/10 0 0
Se1/1 1 0/0 1236 0/10 0 0
R2>sh ip eigrp neighbors
IP-EIGRP neighbors for process 257
H Address Interface Hold Uptime SRTT RTO Q Seq //h는 인식한 순서
(sec) (ms) Cnt Num //ospf는 여기에 네트워크 ID
0 100.3.3.14 Se1/3 13 00:03:19 40 1000 0 24
1 100.3.3.1 Se1/0 14 00:03:19 40 1000 0 9
2 100.3.3.18 Se1/4 11 00:03:18 40 1000 0 25
3 100.3.3.22 Se1/5 10 00:03:17 40 1000 0 24
4 100.3.3.9 Se1/2 11 00:03:17 40 1000 0 10
5 100.3.3.5 Se1/1 12 00:03:16 40 1000 0 11
R2>sh ip eigrp topology
IP-EIGRP Topology Table for AS 257
Codes: P - Passive, A - Active, U - Upd ate, Q - Query, R - Reply,
r - Reply status
P 100.3.3.12/30, 1 successors, FD is 20512000IP-EIGRP Traffic Statistics for process 257
Hellos sent/received: 900/898
Updates sent/received: 34/29
Queries sent/received: 0/0
Replies sent/received: 0/0
Acks sent/received: 22/27
Input queue high water mark 1, 0 drops
SIA-Queries sent/received: 0/0
SIA-Replies sent/received: 0/0// FD 제일 좋은거 feasible distance
via Connected, Serial1/3
P 100.3.3.16/30, 1 successors, FD is 10511872
via Connected, Serial1/4
P 100.3.3.20/30, 1 successors, FD is 2169856
via Connected, Serial1/5
P 100.3.3.0/30, 1 successors, FD is 20512000
via Connected, Serial1/0
P 100.1.0.0/16, 3 successors, FD is 20514560
via 100.3.3.1 (20514560/28160), Serial1/0
via 100.3.3.9 (20514560/28160), Serial1/2노
via 100.3.3.5 (20514560/28160), Serial1/1
P 100.3.3.4/30, 1 successors, FD is 20512000
via Connected, Serial1/1
P 100.3.3.8/30, 1 successors, FD is 20512000
via Connected, Serial1/2
P 100.2.2.0/24, 1 successors, FD is 2172416
// FD 제일 좋은거 feasible distance
//제일좋은게 succorssor 두번째께 fesible succorsor
두번째 fesible succorsor선택 조건은 Fesible Succorsor의 AD값이 succorsors의 FD값보다 작아야 한다. 만약 조건에 맞는 Fesible succorsor이 없으면 다시 쿼리 문을 보낸다.
DUAL로 전달
show ip topology
상태가 A(active)
//OSPF는 제일좋은거 라우팅테이블에 올리고
//나머지// FD 제일 좋은거 feasible distance 는 가지고있지 않지만 EIGRP는 토폴로지 테이블에
//남겨두고 1순위가 문제가 생겼을때 바로 올린다.
via 100.3.3.22 (2172416/28160), Serial1/5 //이렇게 여러개이면?????어떤걸 두번째로 선택하지?
via 100.3.3.18 (10514432/28160), Serial1/4
via 100.3.3.14 (20514560/28160), Serial1/3
R2>sh ip eigrp traffic
IP-EIGRP Traffic Statistics for pr ocess 257
Hellos sent/received: 900/898
Updates sent/received: 34/29
Queries sent/received: 0/0
Replies sent/received: 0/0
Acks sent/received: 22/27
Input queue high water mark 1, 0 drops
SIA-Queries sent/received: 0/0
SIA-Replies sent/received: 0/0
R2>sh ip protocols
Routing Protocol is "eigrp 257 "
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgo ing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 257
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
100.3.3.0/30
100.3.3.4/30
100.3.3.8/30
100.3.3.12/30
100.3.3.16/30
100.3.3.20/30
Routing Information Sources:
Gateway Distance Last Update
100.3.3.14 90 6268
100.3.3.1 90 6252
100.3.3.18 90 7580
100.3.3.22 90 7901
100.3.3.9 90 8742
100.3.3.5 90 9283
Distance: internal 90 external 170
EIGRP 메트릭에 따라 패킷의 양을 조절해서 보낼 수 있다.