728x90

토폴로지

 

1. PC IP 주소 설정

 

  PC0 PC1 PC2 PC3
IP Address 195.110.10.11 195.110.10.12 195.120.20.21 195.120.20.22
Subnet Mask 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0
Gateway 192.110.10.1 192.110.10.1 195.120.20.1 195.120.20.1

 

2. 같은 IP 대역 내에서 통신 확인

 

PC0에서 PC1로 통신 확인
PC2에서 PC3로 통신 확인

 

3. 라우터 인터페이스 설정

 

Router>
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface gi0/0
Router(config-if)#ip address 195.110.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gi0/1
Router(config-if)#ip address 195.120.20.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit

 

4. 라우팅 테이블 확인

 

Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#show ip route
Codes: L - local, 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, 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

     195.110.10.0/24 is variably subnetted, 2 subnets, 2 masks
C       195.110.10.0/24 is directly connected, GigabitEthernet0/0
L       195.110.10.1/32 is directly connected, GigabitEthernet0/0
     195.120.20.0/24 is variably subnetted, 2 subnets, 2 masks
C       195.120.20.0/24 is directly connected, GigabitEthernet0/1
L       195.120.20.1/32 is directly connected, GigabitEthernet0/1

 

5. 통신 확인

 

PC0에서 PC2로 통신 확인

 

PC3에서 PC1로 통신 확인

 

728x90

+ Recent posts