Hi welcome to network kings, this tutorial is to connecting two lans in different locations, so suppose you have two locations or you can say two switches and connected to one ISP ( CISCO router )
First Connect both the switches with Cisco Router.
1. Chandigarh Branch Gateway ip address 192.168.1.100
2. Gurgaon Branch Gateway ip address 192.168.5.100
3. Chandigarh Lan Subnet 192.168.1.0/24
4. Gurgaon Lan Subnet 192.168.20/24
Now in 1st image i am configuring ip address to PC’s
In 2nd image the most important one is to configure router interafaces
int fa1/0 i am giving 192.168.1.100 chandigarh gateway
on fa0/0 i am giving 192.168.5.100 gurgaon gateway
in 3rd image you can see we can able to ping from chandigarh pc to Gurgaon PC.
Thanks & Share .