How to configure a cisco router to work on two different networks?

When we work with a single router we don’t need to do any routing on the router because, router is a deice which is used to connect different networks.So just to connect two  networks with a router follow the steps:-

The image below shows the connection of pc’s in different networks connected with a route.

CCNA

After connection the pc’s will not ping/connects. to make them work we have to assign IP to the router ports and the pc ports by following way.

click on the router and open command prompt by click on CLI and apply command.

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!

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 1.0.0.1 255.0.0.0

Router(config-if)#no shut

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

exit

Router(config)#interface fa0/1

Router(config-if)#ip address 2.0.0.1 255.0.0.0

Router(config-if)#no shut

After assigning ip the ports will turn on and becomes greenCCNA

The ip on the router’s port is assigned. Now, we have to assign ip to the p.c’s.

  1. to assign ip to the computer open computer and and go to desktop panel from config panel.
  2. open the ip configuration box and assign ip address with subnet mask and the default gateway to both the pc with the ip of their respective networks.Default gateway is the ip of the router’s port which is connected to that network.

Now if you try to ping  those systems they will work.

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