Config Lab: IPv4 Addresses 3
With enough repetition, you should be able to imagine a small network of routers, choose a subnetting plan, choose addresses for the router interfaces, and configure those addresses, all pretty much as fast as you can write or type. This latest config lab exercise helps you practice towards that goal. It lists a subnetting design and asks you to find the lowest IP addresses in each of six subnets and configure the addresses on Cisco router interfaces. Details below the fold. Enjoy!
The Lab Exercise
Requirements
The following figure shows a simple internetwork with three routers. The figure also lists one IP address in six different subnets. These IP addresses are not the IP addresses used by the routers. Instead, these IP addresses are part of the subnets you should use for your configuration. First, you have to do some math.
Figure 1:Topology and Subnets for this Lab
Your jobs and rules:
- Calculate the numerically lowest IP addresses in each subnet based on the information in the figure.
- Configure the routers to:
- Bring up their interfaces.
- Use the lowest IP address in each subnet.
- For the subnets that include two routers, assign the lower-numbered router the lower IP address value.
- Each router should be able to successfully ping its three own IP addresses when complete.
- Use defaults unless absolutely necessary.
Initial Configuration
Assume that the routers have no configuration to begin the lab other than their hostnames.
Answer Options - Click Tabs to Reveal
You can learn a lot and strengthen real learning of the topics by creating the configuration – even without a router or switch CLI. In fact, these labs were originally built to be used solely as a paper exercise!
To answer, just think about the lab. Refer to your primary learning material for CCNA, your notes, and create the configuration on paper or in a text editor. Then check your answer versus the answer post, which is linked at the bottom of the lab, just above the comments section.
You can also implement the lab using the Cisco Packet Tracer network simulator. With this option, you use Cisco’s free Packet Tracer simulator. You open a file that begins with the initial configuration already loaded. Then you implement your configuration and test to determine if it met the requirements of the lab.
(Use this link for more information about Cisco Packet Tracer.)
Use this workflow to do the labs in Cisco Packet Tracer:
- Download the .pkt file linked below.
- Open the .pkt file, creating a working lab with the same topology and interfaces as the lab exercise.
- Add your planned configuration to the lab.
- Test the configuration using some of the suggestions below.
This Lab Supports Both CML-Free and CML-Personal!!!
The downloadable file listed here works in both CML-P or CML-F because it uses the IOL (router) and IOL-L2 (switch) reference platform images supported by both products as of CML V2.8. Note that these images also require less CPU and RAM than the other CML-P options.
Use the same general workflow as with Cisco Packet Tracer, as follows:
- Download the CML file (filetype .yaml) linked below.
- Import the lab’s CML file into CML.
- Start the lab in CML.
- Compare the CML lab topology and interface IDs to this lab Blog page, as they may differ (more detail below).
- Add your planned configuration to the lab, adjusting for interface ID differences.
- Test the configuration using some of the suggestions below.
Download this lab’s CML file!
Interface ID Differences:
The lab diagrams on this page use interface IDs (IIDs) that match the Packet Tracer version of the lab. When using CML, adjust the lab IIDs based on this table. Also, note that the IOL and IOL-L2 images used by the supplied CML file support only the “Ethernet” interface type, and not “FastEthernet” or “GigabitEthernet”.
The conventions for this lab are:
- All Gigabit interfaces convert to Ethernet interfaces.
- IID G0/0 converts to E0/0.
- IIDs in the pattern G0/x/0 convert to E0/x. For example, G0/1/0 becomes E0/1.
The following table details all combinations of IID changes for this lab.
Lab Port | Â CML Port |
G0/0 | E0/0 |
G0/1/0 | E0/1 |
G0/2/0 | E0/2 |
G0/3/0 | E0/3 |
Lab Answers Below: Spoiler Alert
Lab Answers: Configuration (Click Tab to Reveal)
Answers
To find the lowest IP addresses, calculate the subnet ID, and then add 1 in the 4th octet. I won’t go into how to find the subnet ID – that’s all over the books – but I’ll entertain specific questions if you have them. Then you just need to configure the IP addresses using the ip address address mask interface subcommand, as shown here.
Figure 1: Three Router Topology w/ Sample IP Addresses for Calculations
interface GigabitEthernet0/0
 no shutdown
 ip address 10.1.87.1 255.255.255.128
!
interface GigabitEthernet0/2/0
 no shutdown
 ip address 10.1.1.129 255.255.255.128
!
interface GigabitEthernet0/3/0
 no shutdown
 ip address 10.1.88.129 255.255.255.128
Example 1: R1 Config
interface GigabitEthernet0/0
 no shutdown
 ip address 172.16.2.1 255.255.254.0
!
interface GigabitEthernet0/1/0
 no shutdown
 ip address 10.1.1.130 255.255.255.128
!
interface GigabitEthernet0/3/0
 no shutdown
 ip address 172.16.0.1 255.255.254.0
Example 2: R2 Config
interface GigabitEthernet0/0
 no shutdown
 ip address 10.1.89.1 255.255.255.128
!
interface GigabitEthernet0/1/0
 no shutdown
 ip address 10.1.88.130 255.255.255.128
!
interface GigabitEthernet0/2/0
 no shutdown
 ip address 172.16.0.2 255.255.254.0
Example 3: R3 Config
Commentary, Issues, and Verification Tips (Click Tabs to Reveal)
Before configuring any commands for this lab, you needed to plan your IP addresses. In this case, the figure shows the subnet IDs, and you have to find the numerically lowest address(es) to use for the routers. That makes the math pretty easy – just add one to the 4th octet of the subnet ID to get the numerically lowest IP address in the subnet.
Once planned, configuring the IP addresses require one command per interface: the ip address address mask command, with the address and dotted-decimal mask used as the two parameters.
Finally, for this lab, you should have considered adding the no shutdown command to each interface. The lab states that the routers have no configuration other than the hostname command. As a result, the interfaces may be in an administratively disabled (shutdown) state to begin the lab. The no shutdown command would then change the state to administratively enabled.
Known Issues in this Lab
This section of each Config Lab Answers post hopes to help with those issues by listing any known issues with Packet Tracer related to this lab. In this case, the issues are:
# | Summary | Detail |
1 | None | No known issues related to this lab. |
Why Would Cisco Packet Tracer Have Issues?
(Note: The below text is the same in every Config Lab.)
Cisco Packet Tracer (CPT) simulates Cisco routers and switches. However, CPT does not run the same software that runs in real Cisco routers and switches. Instead, developers wrote CPT to predict the output a real router or switch would display given the same topology and configuration – but without performing all the same tasks, an actual device has to do. On a positive note, CPT requires far less CPU and RAM than a lab full of devices so that you can run CPT on your computer as an app. In addition, simulators like CPT help you learn about the Cisco router/switch user interface – the Command Line Interface (CLI) – without having to own real devices.
CPT can have issues compared to real devices because CPT does not run the same software as Cisco devices. CPT does not support all commands or parameters of a command. CPT may supply output from a command that differs in some ways from what an actual device would give. Those differences can be a problem for anyone learning networking technology because you may not have experience with that technology on real gear – so you may not notice the differences. So this section lists differences and issues that we have seen when using CPT to do this lab.
Known Issues in this Lab w/ CML
This tab lists known issues with running this lab in CML with the supplied file. The issues are:
# | Summary | Detail |
1 | Interfaces may begin lab in a shutdown state. | Due to oddities in the application of defaults of the shutdown/no shutdown commands, your router interfaces may initialize in the shutdown state. To remedy, use the no shutdown interface subcommand on each interface shown to be used in the lab. |
Why Would CML Have Issues?
(Note: The text below is the same as every Config Lab.)
CML supports a variety of Cisco operating systems (called reference platforms.) To make them work in CML, Cisco makes some adjustments to the code. Also, because no real router or switch hardware exists, some software features do not work the same when running in CML versus a real Cisco device. When we come across any difference when testing the lab, we’ll try to leave a note just above in case it helps you with the lab.
Beyond comparing your answers to this lab’s Answers post, you can test in Cisco Packet Tracer (CPT) or Cisco Modeling Labs (CML). In fact, you can and should explore the lab once configured. For this lab, once you have completed the configuration, try these verification steps.Â
- From the console of each router, verify the router’s IP addresses:
- Use the show ip interface command to verify the address and mask.
- Use the show ip interfaces brief command to verify the addresses.
- Use the ping command against the addresses expected to be configured on the local router; all pings should work.
- The initial configuration does not include any routing protocol configuration, so you should see only connected and local routes in the routing tables unless you chose to add routing protocol configuration. You can verify those routes as compared to the figure. On each router:
- Use the show ip route command. Look for three connected routes, one for each router interface per the figure.
- Use ping tests to ping the router IP addresses on the opposite end of each WAN link:
- From router R1, ping the R2 WAN IP address on their shared link and then the R3 WAN IP address on their shared link.
- Likewise, from router R2, ping R1’s WAN IP address and R3’s WAN IP address.
- Finally, from R3, ping R1’s and R2’s WAN IP addresses on the respective shared links.
I’ve done all configrtns succesfully.
The, Ping, to each router’s own Fiber connector interfaces works. However until otherwise another device perhaps a PC, (or a Switch, Hub, or Router), connected to this Gig 0/0 interface of the Router, this Gig 0/0 line comes up but not the line protocol. Thereby I connected a PC to each router’s Gig 0/0 interface to make this interface work.
Awaiting comments earnestly.
Punya,
So, if you began with the supplied .pkt (Packet Tracer) or .yaml (CML) file, that topology should show each router’s G0/0 connected to a LAN switch. So, the router G0/0 interfaces, respectively, should reach an up/up state. It seems like you’re saying in your testing you began with no devices at all, not even a LAN switch, connected to each router’s G0/0 interface?
If so, in that case, on real gear, a no shut would result in a down/down state. I re-created that case in Packet Tracer and see the up/down state, so to stress the fact, that’s NOT the same as I would expect on real gear. If the router has no cable connected, or a cable connected to a powered-off device, or nothing cabled to the other end, then a “no shut” interface should land in a down/down state. FYI.
But… connected to a powered-on switch, with it’s interface enabled, as is the case in the beginning state of this lab, the router G0/0 interfaces should reach an up/up state.
Feel free to clarify. Happy labbing…
Wendell
This was great for practicing ip addressing for several subnets. Happy to say I got them all right per the lab answers. Although I am super slow and I needed time to figure out the SID’S and valid add’s. Gonna have to improve my speed for the exam and for real world projects.
All the conditions met in the lab .Also Each router is able to successfully ping its three own IP addresses. Lab done .
i just don’t understand y i cannot ping other router interfaces and the red lines between the routers show disconnection in packet tracer.
tried to set default gateways.
tried to use static routes but showing inconsistent address or bad mask .
in simulation wen i ping the other subnets the packet goes from switches to routers but not between routers . what concept i am missing ?
thanks for answering so many questions always.
Hi Sana,
IP Routes.
When you configure an IP address/mask on an interface, and the interface is in an up/up state, the router adds a connected route for the subnet on that connected interface. But for the remote subnets, the router still needs routes for those subnets. Normally, it uses a routing protocol like OSPF, but you could use static IP routes just to practice a skill for CCNA. The lab asks for neither. So, as an extension of the lab, you could do either of these:
1) Configure OSPF as simply as possible on all three routers
or
2) configure static routes on all three routers for all subnets not connected to each router, respectively.
Enjoy!
how do i know when to end the ip address with .1 or .129 when the both have the /25 CIDR, for example on router 1 gig0/0 it ends with ip address 10.1.87.1 255.255.255.128 but on the same subnet it jumps to starting at .129 for example interface GigabitEthernet0/2/0
no shutdown
ip address 10.1.1.129 255.255.255.128
Well, for this lab, as written, it tells us that the figure shows one IP address in each subnet. Then the router(s) must use an address in the same subnet. With a mask of /25, the .1 and .129 addresses would not both be in the same subnet.
So, as mentioned to begin the explanation section, you start with the supplied IP address in the figure.
Then calculate the subnet ID.
Then, the lab asks that the router use the numerically lowest number, so add 1 to the subnet ID’s 4th octet to find that value.
EG,
R1 is shown w/ 10.1.87.99/25
Subnet is calculated as 10.1.87.0/25
numerically lowest address is 10.1.87.1
Range of addresses in the subnet is 10.1.87.1 – 10.1.87.126, broadcast is 10.1.87.127
10.1.87.129 is lowest address in the next higher subnet, so it’s not an address in that same subnet.
Does that help?