How to configure a router and how to connect two different network through router?


This tutorial is about configuration of routers and connect two different networks through a router. In this tutorial we learn about how to configure a router and use it to connect networks. for example here I have taken two different networks. first ip is 1.0.0.1 from network 1.0.0.0 and second ip is 2.0.0.1 from network 2.0.0.0 these ip cannot connect each other through a router and to connect these type of ip we use routers.

so we use routers in companies to communicate different network with each other through the router. Now let’s start the configuration of two routers.

routing configuration
configure simple routing on router

First of all we go to the router and click on it and go to CLI option for configure router and type given below code to assign ip address to interfaces of router and up its ports.

Router>enable

Router#configure terminal

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

Router(config)#interface FastEthernet0/0

Router(config-if)#ip address 1.0.0.1 255.0.0.0

Router(config-if)#no shutdown

Router(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

Router(config)#interface FastEthernet0/1

Router(config-if)#ip address 2.0.0.1 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

Now the ports of router will be up then we go to pc and assign ip address to pc and ping other pc to communicate each other from two different networks by using routers

To assign ip address on pc

first of all we click on pc and then click on desktop then we click on ip configuration option in it and now assign ip address to pc through static ip configuration to all pc. show in figure given above.

Now using ping command to that whether two pc are connected in different network or not

go to pc and open command prompt

first of all we check ip address by using command

PC>ipconfig

FastEthernet0 Connection:(default port)

Link-local IPv6 Address………: FE80::2D0:BCFF:FED6:907E

IP Address………………….: 1.0.0.2

Subnet Mask…………………: 255.0.0.0

Default Gateway……………..: 1.0.0.1

then ping to other network by using these commands

PC>ping 2.0.0.2

Pinging 2.0.0.2 with 32 bytes of data:

Reply from 2.0.0.2: bytes=32 time=1ms TTL=127

Reply from 2.0.0.2: bytes=32 time=0ms TTL=127

Reply from 2.0.0.2: bytes=32 time=1ms TTL=127

Reply from 2.0.0.2: bytes=32 time=0ms TTL=127

Ping statistics for 2.0.0.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

these type of result will be displayed on your screen then your configuration will be completed otherwise you should repeat this process to remove error in router configuration.

Now you see all pc are communicate to each other with having different networks.

If yo have any queries about this comment below post and contact me for any type of help. I wil help you

2 thoughts on “How to configure a router and how to connect two different network through router?

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