How to Connect Two LANs in Packet Tracer

Looking for How to connect two LANs in Packet Tracer? In this guide, I will show you various ways to do that.

A local area network is a network used to interconnect host devices exiting a particular building or different buildings that is closely positioned.

A local area network normally consists of one router, switches, access points, and end-host devices that make use of the internet.

Local Area network architecture

In packet tracer, you can connect two LANs to one router using two interfaces of the router, or using two routers by connecting each of the LANs to one of the routers and joining the two routers using copper cross-over cable to form a wide area network. Here is a network topology in which two LANs is connected using two routers.

How To Configure Two Routers In Cisco Packet Tracer

As you can see, this network topology comprises two routers and two LANs (each LAN has a switch and a PC).

If the above topology is similar to what you want, read our separate post on how to configure two LANs consisting of two routers.

In this post, we will be showing how to connect two LANs to one router. The network topology we will be using in this post is shown below:

an image showing two lans connected to a router

We will be showing you how to connect LAN A and LAN B using both the graphic user interface and the command line interface.

Connecting 2 LANs using Graphic User Interface(GUI)

GUI is a more user friendly for every newbies networking student. Even though CLI offers more functionality, GUI is more simple and is enough for this configuration. Here are the steps to connect two LAN using GUI.

Step 1: Select Router 0 to access the configuration options. Then Click on the “Config” tab and select the “GigabitEthernet0/0/0” interface.

configuring the g0/0/0 interface of the router

Step 2: Assign the IP address; 192.168.1.1 to this interface (g0/0/0) and the subnet mask of 255.255.255.0, and then turn on the port status.

configuring the ip address of go/0/0 interface of the router

Step 3: Select the “GigabitEthernet0/0/1” interface and assign “192.168.2.1” to it as well. Turn on the port status as well.

configuring ip address to g0/0/1 interface of the router

 

Step 4: Assign Ip address to each of the PCs: Tap on PC3 and navigate to the “Config Tab”. Make sure setting is selected on the left corner of the PC’s dialogue box and assign the default gateway IP address.

Assigning Ip address to PC 3

Then, navigate to the fastethernet0 interface to assign IP address to this PC.

Assign Ip address to the fastethernet0 interface

Repeat the above process to assign IP addresses to every other PC as labeled in the network.

Step 5: Test the configuration. Open one of the PCs in LAN A and ping a PC in LAN B.

The image below shows a successful ping from PC3 to PC2.

sending packet from PC3 to PC2

Connecting 2 LANs using Command Line Interface (CLI)

The second option to connect two LANs is to use the command-line interface of the router.

Step 1: Navigate to the CLI tab of the router and enter the following command to assign an IP address to both the “GigabitEthernet0/0/0” and “GigabitEthernet0/0/1” interfaces of the router.

Router>en
Router#conf ter
Router(config)#int GigabitEthernet0/0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#int GigabitEthernet0/0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit 

Step 2: Assign Ip address to each of the PCs: Tap on PC3 and navigate to the “Config Tab”. Make sure setting is selected on the left corner of the PC’s dialogue box and assign the default gateway IP address.
Assigning Ip address to PC 3
Then, navigate to the fastethernet0 interface to assign IP address to this PC.
Assign Ip address to the fastethernet0 interface
Repeat the above process to assign IP addresses to every other PC as labeled in the network.

ALSO READ:  How to Configure Access Ports on Cisco Switch Packet Tracer

Step 3: Test the configuration.

Open one of the PCs in LAN A and ping a PC in LAN B.

The image below shows a successful ping from PC3 to PC2.

sending packet from PC3 to PC2

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top