This tutorial is all about configuration of router to connect two different network.
For example here i have taken two ip from different 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 different network communicate each other we need to use router.Here in this article i will show you how to communicate using routers.
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 whether the two pc can communicate with each other or not.
First Check the IP Address of PC:
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
Now test the communication using PING Command:
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.