How to connect two different network using router?

Posted: March 19, 2015 in CCNA

This tutorial is all about configuration of router to connect two different network.
For example here i have taken two ip from diffrent network.First ip is 192.168.1.100 from 192.168.1.0 network and other ip 192.168.2.100 from 192.168.2.0 network.Now these ip cannot ping each other using hub or switch because they belongs to two different network.
So to make two machine from diffrent network communicate each other we need to use router.Here in this article i will show you how to communicate using routers.

router
Now go to router and type the below code to assign ip address on router interface and up it ports.

 

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface fa0/0

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#exit
Router(config)#interface fa0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown

Now test the network using ping command that whetehr the two pc can communicate with each other or not.

PC>ipconfig

FastEthernet0 Connection:(default port)
Link-local IPv6 Address………: FE80::2E0:F7FF:FE33:4587
IP Address………………….: 192.168.1.100
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.1.1

PC>ping 192.168.2.100

Pinging 192.168.2.100 with 32 bytes of data:

Request timed out.
Reply from 192.168.2.100: bytes=32 time=0ms TTL=127
Reply from 192.168.2.100: bytes=32 time=15ms TTL=127
Reply from 192.168.2.100: bytes=32 time=15ms TTL=127

Ping statistics for 192.168.2.100:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 15ms, Average = 10ms

Hence you can see both pc can now having communicating with each other.

Now using above concept solve the below question.Take two different network and configure router to make all those pc ping each other or communicate each other.

solve this routing question.

Leave a Reply

Please log in using one of these methods to post your comment:

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