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.
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!
Enter configuration commands, one per line. End with CNTL/Z.
Router(config-if)#ip address 126.96.36.199 255.0.0.0
%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)#ip address 188.8.131.52 255.0.0.0
After assigning ip the ports will turn on and becomes green
The ip on the router’s port is assigned. Now, we have to assign ip to the p.c’s.
- to assign ip to the computer open computer and and go to desktop panel from config panel.
- 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.