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.
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.
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:
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.
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.
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.
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.
Then, navigate to the fastethernet0 interface to assign IP address to this PC.
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.
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.
Then, navigate to the fastethernet0 interface to assign IP address to this PC.
Repeat the above process to assign IP addresses to every other PC as labeled in the network.
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.
I am a passionate Networking Associate specializing in Telecommunications.
With a degree in Electronic engineering, I possess a strong understanding of electronic systems and the intricacies of telecommunications networks. I gained practical experience and valuable insights working for a prominent telecommunications company.
Additionally, I hold certifications in networking, which have solidified my expertise in network architecture, protocols, and optimization.
Through my writing skills, I aim to provide accurate and valuable knowledge in the networking field.
Connect with me on social media using the links below for more insights.
You can contact me using [email protected] or connect with me using any of the social media account linked below