네트워크 수업/하드웨어
실습 23.02.17
6^6
2023. 2. 17. 11:28
728x90
pc1과 pc2 ip넣어주고,
우클릭해서 start capture하기전 wireshark 깔아줘야함.
wireshark : 트래픽, 신호 분석하는 도구
통신이 되는지 안되는지 목적지에 100byte 패킷5개 보내는걸 ping이라고한다.
일단 라우터에서 관찰↓
성공했다면 cc03이 일치할거임
===================================
===================================
상대방의 arp를 알아보기
show arp하면 내주소만 나오고
ping pc2로 날려주고 다시 show arp하면 pc2의 arp도 돌아온다.
컴퓨터(cmd)에서 arp 지우는방법 :arp -d
arp 확인 : arp -a
pc2의 맥주소를 2222.2222.2222로 바꾸기
pc2에서
f0/0들어가서 shut해주고
mac-address 2222.2222.2222 해주고
no shut해준다.
pc1에서 show arp해주면 pc2의 맥주소가 바뀐걸 알수있다.
맥주소가 바뀌어도 arp를 바로 알아차린것은 CDP프로토콜때문에 pc2,3의 단자가 다 보인다.
-CDP = Cisco Discovery Protocal
========
//정답
R1]
conf t
int f0/0
no shut
ip add 1.1.1.254 255.255.255.0
exit
int f0/1
no shut
ip add 1.1.12.1 255.255.255.0
exit
R2]
conf t
int f0/0
no shut
ip add 1.1.2.254 255.255.255.0
exit
int f0/1
no shut
ip add 1.1.12.2 255.255.255.0
PC1]
conf t
ip default-gateway 1.1.1.254
int f0/0
no shut
ip add 1.1.1.1 255.255.255.0
PC2]
conf t
ip default-gateway 1.1.1.254
int f0/0
no shut
ip add 1.1.1.2 255.255.255.0
PC3]
conf t
ip default-gateway 1.1.2.254
int f0/0
no shut
ip add 1.1.2.3 255.255.255.0
728x90