Open In App

Steps of Configuring the Router ID

Last Updated : 16 Aug, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisites: Routing Tables in Computer Network

A router ID is a 32-bit Internet Protocol address that uniquely identifies a router or an interface in an Autonomous System. This article will discuss how to configure the router ID in the Cisco packet tracer.

let’s discuss the proper steps to configure the router:

Step 1: First open The Cisco packet tracer on the desktop and create a network topology of two LANs using these devices. In the below diagram, we have used PT-Router and PT-Switch.

PT-Router:

 

 

PT-Switch

 

  • 4 Hosts (Four PCs) were Named PC0, PC1, laptop1, and laptop 2.
  • 2 switches => switch0, switch1.
  • 1 Router => router0, and connecting cables. (automatic connecting cable)
Network Diagram 1

 

Step 2: Then we will assign IP addresses, Default gateways, and subnet masks to Hosts.

  • The default gateway and subnet masks will be the same for a specific LAN.
S.NO IP address Default Gateway Subnet Mask
PC0 192.168.1.2 192.168.1.1 255.255.255.0
PC1 192.168.1.3 192.168.1.1 255.255.255.0
Laptop0 172.168.1.2 172.168.1.1 255.255.0.0
Laptop1 172.168.1.3 172.168.1.1 255.255.0.0
Network Diagram 2

 

  • To configure Hosts or PCs, we will click on PC0 go to desktop then IP configuring and there we will configure the IPv4 address and default gateway.
Configuration 1

 

  • In IPv4 address, we will fill the given IP address from the above IP addressing table as we move the cursor to subnet masks it will automatically fill its input according to a class of IP address. For example, IP 192.168.1.2 comes under class 3 so its subnet mask will be 255.255.255.0, and IP: 172.168.1.2 comes under class 2, So its subnet mask will be 255.255.0.0.
  • Now we will configure PC1 with IPv4 address and default gateway according to the IP addressing table.
Configuration 2

 

  • After configuring LAN1 we need to move forward to LAN2 and configure Laptop0 and laptop1 with IPv4 and default gateway according to the IP addressing table.
Configuration 3

 

  • Configuring Laptop1 with IPv4 address and default gateway according to IP addressing table.
Configuration 4

 

  • After configuring is donewe willconnect both LANs to the interface Router0.

Step 3: After that, we have to configure the Interface which is router0.

For LAN1 FastEthernet0/0:

  • Click on router0 and Go to config and then Interface then FastEthernet0/0.
  • Turn on the Port.
  • Do fill IP configuration and subnet mask as the following table.
S.No IPv4 Address Subnet Masks
FastEthernet0/0 192.168.1.1 255.255.255.0
FastEthernet1/0 172.168.1.1 255.255.0.0
Configuration 5

 

For LAN2 FastEthernet1/0:

  • Go to Interface and then FastEthernet1/0
  • Turn on the Port
  •  Do fill IP configuration and subnet mask as above following table.
Configuration 6

 

So this is how we can configure Router directly with config options. we can also configure it with CLI(command-line interface) command below:

Click on CLI
then enable the interface with en
configure the terminal with conf t
select FastEthernet0/1 Port with int fa0/0
Add Ip address with  ip add <default gateway> <subnet masks>
the no shut to move out from interface

CLI Commands to configure Router:

Router#
Router#en
Router#conf t
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#exit
Router#
Configuration 7

 

Similarly, we will configure the second FastEthernet port (FastEthernet1/0).

Click on CLI
then enable the interface with en
configure the terminal with conf t
select FastEthernet0/1 Port with int fa1/0
Add Ip address with  ip add <default gateway> <subnet masks>
the no shut to move out from interface

CLI Commands to configure Router:

Router#
Router#en
Router#conf t
Router(config)#int fa1/0
Router(config-if)#ip add 172.168.1.1 255.255.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#exit
Router#
Configuration 8

 

  • After that our network is done and the router is configured with router ID and you will notice that the connection indicator turns green when all devices are configured correctly.
Network Diagram 3

 

To verify the connection we will check by using the ping IP address command in any Host of LAN1.

Steps to Ping IP address:

  • click on PC1 then go to the terminal.
  • In the terminal interface type ” ping 172.168.1.2 “.
Ping Test 1

 

  • Then it will show the replies coming from the IP address you have entered as shown in the image below:
Ping Test 2

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads