[Practice] Routing
2020. 1. 27. 21:14ㆍNetwork/Practice
실습 코드
더보기
1. PC
PC1 : ip 10.10.10.10/24 10.10.10.254
PC2 : ip 10.10.10.20/24 10.10.10.254
PC3 : ip 172.16.10.10/24 172.16.10.254
PC4 : ip 172.16.10.20/24 172.16.10.254
2. R1 (DCE)
R1#conf t
R1(config)#int se 1/0
R1(config-if)#ip addr 100.100.51.1 255.255.255.0
R1(config-if)#encapsulation ppp
R1(config-if)#bandwidth 512
R1(config-if)#clock rate 504000
R1(config-if)#no shutdown
R1(config-if)#int se 1/1
R1(config-if)#ip addr 100.100.12.1 255.255.255.0
R1(config-if)#encapsulation ppp
R1(config-if)#bandwidth 128
R1(config-if)#clock rate 1008000
R1(config-if)#no shutdown
R1(config-if)#int se 1/2
R1(config-if)#ip addr 100.100.13.1 255.255.255.0
R1(config-if)#encapsulation hdlc
R1(config-if)#bandwidth 1024
R1(config-if)#clock rate 1028000
R1(config-if)#no shutdown
R1(config-if)#int se 1/3
R1(config-if)#ip addr 100.100.14.1 255.255.255.0
R1(config-if)#encapsulation ppp
R1(config-if)#bandwidth 512
R1(config-if)#clock rate 504000
R1(config-if)#no shutdown
R1(config)#ip route 10.10.10.0 255.255.255.0 100.100.51.5
R1(config)#ip route 172.16.10.0 255.255.255.0 100.100.12.2 1
R1(config)#ip route 172.16.10.0 255.255.255.0 100.100.13.3 2
R1(config)#ip route 172.16.10.0 255.255.255.0 100.100.14.4 3
2. R2 (DCE)
R2#conf t
R2(config)#int se 1/1
R2(config-if)#ip addr 100.100.12.2 255.255.255.0
R2(config-if)#encapsulation ppp
R2(config-if)#bandwidth 128
R2(config-if)#no shutdown
R2(config-if)#int se 1/2
R2(config-if)#ip addr 100.100.32.2 255.255.255.0
R2(config-if)#encapsulation hdlc
R2(config-if)#bandwidth 1024
R2(config-if)#clock rate 1008000
R2(config-if)#no shutdown
R2(config-if)#int se 1/3
R2(config-if)#ip addr 100.100.42.2 255.255.255.0
R2(config-if)#encapsulation hdlc
R2(config-if)#bandwidth 512
R2(config-if)#clock rate 504000
R2(config-if)#no shutdown
R2(config-if)#int se 1/0
R2(config-if)#ip addr 100.100.26.2 255.255.255.0
R2(config-if)#encapsulation hdlc
R2(config-if)#bandwidth 512
R2(config-if)#clock rate 504000
R2(config-if)#no shutdown
R2(config)#ip route 172.16.10.0 255.255.255.0 100.100.26.6
R2(config)#ip route 10.10.10.0 255.255.255.0 100.100.12.1 1
R2(config)#ip route 10.10.10.0 255.255.255.0 100.100.32.3 2
R2(config)#ip route 10.10.10.0 255.255.255.0 100.100.42.4 3
3. R3
R3#conf t
R3(config)#int se 1/0
R3(config-if)#ip addr 100.100.13.3 255.255.255.0
R3(config-if)#encapsulation hdlc
R3(config-if)#bandwidth 1024
R3(config-if)#no shutdown
R3(config-if)#int se 1/1
R3(config-if)#ip addr 100.100.32.3 255.255.255.0
R3(config-if)#encapsulation hdlc
R3(config-if)#bandwidth 1024
R3(config-if)#no shutdown
R3(config)#ip route 10.10.10.0 255.255.255.0 100.100.13.1
R3(config)#ip route 172.16.10.0 255.255.255.0 100.100.32.2
4. R4
R4#conf t
R4(config)#int se 1/0
R4(config-if)#ip addr 100.100.14.4 255.255.255.0
R4(config-if)#encapsulation ppp
R4(config-if)#bandwidth 512
R4(config-if)#no shutdown
R4(config-if)#int se 1/1
R4(config-if)#ip addr 100.100.42.4 255.255.255.0
R4(config-if)#encapsulation hdlc
R4(config-if)#bandwidth 512
R4(config-if)#no shutdown
R4(config)#ip route 10.10.10.0 255.255.255.0 100.100.14.1
R4(config)#ip route 172.16.10.0 255.255.255.0 100.100.42.2
R4(config)#ip route 172.16.10.0 255.255.255.0 100.100.42.2
5. R5
R5#conf t
R5(config)#int fa 0/0
R5(config-if)#ip addr 10.10.10.254 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#int se 1/0
R5(config-if)#ip addr 100.100.51.5 255.255.255.0
R5(config-if)#encapsulation ppp
R5(config-if)#bandwidth 512
R5(config-if)#no shutdown
R5(config-if)#ip route 0.0.0.0 0.0.0.0 100.100.51.1
6. R6
R6#conf t
R6(config)#int se 1/0
R6(config-if)#ip addr 100.100.26.6 255.255.255.0
R6(config-if)#encapsulation hdlc
R6(config-if)#bandwidth 512
R6(config-if)#no shutdown
R6(config-if)#int fa 0/0
R6(config-if)#ip addr 172.16.10.254 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#ip route 0.0.0.0 0.0.0.0 100.100.26.2
728x90
'Network > Practice' 카테고리의 다른 글
[Practice] NAT-PAT (0) | 2020.01.28 |
---|---|
[Practice] Dynamic Routing (OSPF) (0) | 2020.01.27 |
[Practice] Dynamic Routing (RIP) (0) | 2020.01.27 |
[Practice] Static Routing (0) | 2020.01.27 |