HOW TO CONNECT TWO DIFFERENT NETWORK IP OR MACHINES WITH EACH OTHER USING ROUTER

In this post we are going to learn how to configure router and how to connect two different network ip / machines using router .I have taken two network ip 1.0.0.1 and 5.0.0.1 , I’ll connect each other (ping) .Now these ip address cannot ping each other using hub or switch because they belongs to two different network I will show you how to communicate using routers.

 

  • First take two end devices like laptop or pc and one router . 

how to connect two different ip or machines with each other using router

  • To make connection we need a cable . Cross cable are used to connect router and laptop or pc . So in connection select copper-cross-over cable .

how to connect two different ip or machines with each other using router

  • And click on your first device and select fast Ethernet 0  . As you know laptop or pc got only one lan port .So we will use that port .

pc connection port

  • Now take that wire to router and click on router . Then it will ask which router port you want to connect this laptop or pc ? Select Fast Ethernet 0/0 .

routers and pc connection

  • Do same with other device take cross over cable and click on second device . Choose its Fast Ethernet o port .

pc connection port

  • Take that copper-cross-over cable to router and click on router . And choose router’s second port Fast Ethernet 0/1 .

how to connect two different ip or machines with each other using router

  • This screenshot will help you to understand where we are connecting our devices .

routers port

  • Now select your device(laptop or pc)  , Go to its Desktop option and select ip configuration .

ip address in ccna

  • Give ip address to this device and tap TAB key . It will auto fill subnet mask . Give Default gateway ( point where your cross cable is connected to router) ip address too

how to give ip address in cisco packet tracer

  • Now select second device and give ipaddress , subnet mask and default gateway to this device .

how to give ip address in cisco packet tracer

  • Then go to router and and selct CLI (command line interface) .Tap Enter to get started .

10

  • Now type these command
  • Router>enable
    Router#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    Router(config)#interface fa 0/0Router(config-if)#ip address 1.0.0.6    255.0.0.0
    Router(config-if)#no shutdownRouter(config-if)#
    %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

    Router(config-if)#exit

    AFTER TYPING THESE COMMANDS YOU WILL FIND  CONNECTION IS GREEN ( READY TO CONNECT) .

how to connect two different ip or machines with each other using router

NOW FOR SECOND CONNECTION TYPE THIS COMMAND

Router(config)#interface fa0/1
Router(config-if)#ip address 5.0.0.6   255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#exit

how to connect two different ip or machines with each other using router

  • Now select one of your device and go to its command prompt . Type ping ip address of other device to check whether its connecting other network machine or not .
  • I’m going to ping my second device(ip address 5.0.0.1) . Type ping 5.0.0.1.
  • If its showing packets :sent=4 , received =4 and no lost this means connection is ok .
  • In my first attempt my 1 packet is lost but in second try connection is all set to go .
  • If you too lost one packet in your first time pinging , don’t worry router takes time to make connection .

how to connect two different ip or machines with each other using router

CHECK OUT MY VIDEO IF YOU GOT ANY PROBLEM .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s