관리 메뉴

개발 노트

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는 라우터 프로토콜을 통해 제대로 라우터 테이블을 가져왔다는 뜻

 

반응형