Network/Router

Static 라우팅

2018. 9. 12. 23:11
  


   라우터 설정



R1(config)#interface fastEthernet 0/0 // 0/0 인터페이스 접속
R1(config-if)#ip address 172.168.72.254 255.255.255.0 // 라우터 IP 설정 (A네트워크의 게이트웨이 주소!! ) 
R1(config-if)#no shutdown // 포트 활성화  
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.72.254 255.255.255.0
R2(config-if)#no shutdown



                                         serial port 설정
 
R1(config)#interface serial 0/3/0 // 0/3/0 시리얼 포트 접속
 
R1(config-if)#ip address 10.10.10.1 255.255.255.0 // IP설정 (R2 라우터와 같은네트워크)
R1(config-if)#no shutdown // 포트 활성화
R2(config)#interface serial 0/3/0
R2(config-if)#ip address 10.10.10.2 255.255.255.0 // IP설정 (R1 라우터와 같은 네트워크)
R2(config-if)#no shutdown
    




   Static 라우팅 설정



R1(config)#ip route 192.168.72.0 255.255.255.0 10.10.10.2
R2(config)#ip route 172.168.0.0 255.255.0.0 10.10.10.1
  목적지 네트워크 ID / 목적지 서브넷 마스크 / 목적지 시리얼 IP 주소




   PC IP 분배


        A네트워크 : 172.168.72.10 - 50 / MASK 255.255.0.0 / Gate 172.168.72.254  // R1 라우터 주소

        B네트워크 : 192.168.72.10 - 40 / MASK 255.255.255.0 / Gate 192.168.72.254  // R2 라우터 주소




   라우팅 정보 확인




        R1#show ip rou


R1 라우터




        R2#show ip rou


R2 라우터



    

<A 네트워크 172.168.0.0 B 네트워크 192.168.72.0 대역 통신확인>



'Network > Router' 카테고리의 다른 글

Rip 라우팅  (0) 2018.09.12