일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 깃 토큰
- visualstudio code
- MySQL
- OrCAD 다운로드
- localhost
- 에러
- Python
- import data
- php
- run sql script
- DataGrip
- csv
- cmd
- 클론
- 단축키
- PHPStorm
- github clone
- 따옴표 삭제
- github token
- database
- jupyter
- vscode
- console창
- 파이썬
- error
- 데이터베이스
- 오류
- error 해결
- Visual Studio Code
- clone
Archives
- Today
- Total
개발 노트
4/6 6주차 IP Address, Subnetting, D_서브네팅, RIP(Routing_Information_Protocol) 본문
학부 공부 : 21.03.02~06.20/인터넷 이론 및 실습
4/6 6주차 IP Address, Subnetting, D_서브네팅, RIP(Routing_Information_Protocol)
hayoung.dev 2021. 4. 19. 19:46

오른쪽의 숫자가 할당할 수 있는 ip adress 개수
Class A는 할당할 수 있는 수가 너무 많아서 공간을 낭비한다.
Class C가 가장 많이 사용됨

첫 번재 서브넷과 마지막 서브넷은 사용하지 못한다.

R1
Switch>enable
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname R1
R1(config)#ip routing
R1(config)#in
R1(config)#interface G
R1(config)#interface GigabitEthernet 1/0/1
R1(config-if)#no switchport
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up
R1(config-if)#ip address 211.114.122.0 255.255.255.240
Bad mask /28 for address 211.114.122.0
R1(config-if)#ip address 211.114.122.9 255.255.255.240
R1(config-if)#interface GigabitEthernet 1/0/2
R1(config-if)#no switchport
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to up
R1(config-if)#ip address 211.114.122.37 255.255.255.252
R1(config-if)#interface GigabitEthernet 1/0/3
R1(config-if)#no switchport
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
R1(config-if)#ip address 211.114.122.33 255.255.255.252
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 211.114.122.0
R1(config-router)#^Z
R1#
%SYS-5-CONFIG_I: Configured from console by console
R2 :
Switch>enable
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname R2
R2(config)#ip routing
R2(config)#interface G
R2(config)#interface GigabitEthernet 1/0/1
R2(config-if)#no s
R2(config-if)#no switchport
R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up
R2(config-if)#ip address 211.114.122.17 255.255.255.240
R2(config-if)#interface GigabitEthernet 1/0/2
R2(config-if)#no switchport
R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to up
R2(config-if)#ip address 211.114.122.34 255.255.255.252
R2(config-if)#interface GigabitEthernet 1/0/3
R2(config-if)#no switchport
R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
R2(config-if)#ip address 211.114.122.41 255.255.255.252
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 211.114.122.0
R2(config-router)#^Z
R2#
R3
Switch>enable
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname R3
R3(config)#ip routing
R3(config)#in
R3(config)#interface G
R3(config)#interface GigabitEthernet 1/0/1
R3(config-if)#no sw
R3(config-if)#no switchport
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up
R3(config-if)#ip address 211.114.122.25 255.255.255.240
R3(config-if)#interface GigabitEthernet 1/0/2
R3(config-if)#no switchport
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to up
R3(config-if)#ip address 211.114.122.42 255.255.255.252
R3(config-if)#interface GigabitEthernet 1/0/3
R3(config-if)#no switchport
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
R3(config-if)#ip address 211.114.122.38 255.255.255.252
R3(config-if)#exit
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 211.114.122.0
R3(config-router)#^Z
R3#
%SYS-5-CONFIG_I: Configured from console by console
PC1


PC2


PC3


R1 결과값
C는 실제 연결
R는 라우터 프로토콜을 통해 제대로 라우터 테이블을 가져왔다는 뜻

반응형
'학부 공부 : 21.03.02~06.20 > 인터넷 이론 및 실습' 카테고리의 다른 글
5/3 9주차 BGP (0) | 2021.05.03 |
---|---|
4/13 7주차 OSPF (0) | 2021.04.20 |
3/30 5주차 : RIP와 Passive interface (0) | 2021.04.19 |
3/23 4주차 : 유동적인 정적 라우팅 (0) | 2021.04.18 |
3/16 3주차 : 고정적인 정적 라우팅 (0) | 2021.04.13 |