Config Lab: IPv4 Addresses 2

 In 200-301 V1 Ch17: Router Addresses and Routes, 200-301 V1 Part 5: IPv4 Routing, 200-301 V1 Parts, CML-Free-Labs, Config Lab, Config Lab CCNA Vol 1 Part 4, Config Lab CCNA Vol 1 Part 5, Hands-on

Repetition helps when learning IP addressing and subnetting. The next lab gives you more reps with subnetting math and with configuring router IP addresses. If you already know the math, make this one a speed test, and find out how long it takes you from the point of reading the specifics until you can type the config!

All about Config Labs

The blog has a series of lab exercises called “Config Labs.” Each lab presents a topology with the relevant initial configuration for each device. The lab also lists new requirements, after which you should create the additional configuration to meet those requirements. You can do the lab on paper, in a text editor, or use software tools like Cisco Packet Tracer or Cisco Modeling Labs.

Once you have created your answer, you can click various tabs at the bottom of this post to see the lab answers, comments about the lab, and other helpful information.

The Lab Exercise

Requirements

Configure the IP addresses for the LAN interfaces for the routers shown in the figure per the subnets listed in the figure. The specific rules for this lab are:

  1. On each router’s G0/1 interface, use the last octet of 1, 2, 3, or 4 for routers R1, R2, R3, and R4, respectively.
  2. On each router’s G0/2 interface, configure each router with the highest allowable address in the subnet.
  • Assumptions:
    • Assume all device interfaces shown in the lab are up and working.
    • Assume that the PCs are pre-configured with the correct IP addresses.

Figure 1: Four Routers and Five Switches

 

Initial Configuration

Examples 1, 2, 3, and 4 show the beginning configuration state of R1, R2, R3, and R4.

hostname R1
!
interface GigabitEthernet0/1
 no shutdown
!
interface GigabitEthernet0/2
 no shutdown

Example 1: R1 Config

 

hostname R2
!
interface GigabitEthernet0/1
 no shutdown
!
interface GigabitEthernet0/2
 no shutdown

Example 2: R2 Config

 

hostname R3
!
interface GigabitEthernet0/1
 no shutdown
!
interface GigabitEthernet0/2
 no shutdown

Example 3: R3 Config

 

hostname R4
!
interface GigabitEthernet0/1
 no shutdown
!
interface GigabitEthernet0/2
 no shutdown

Example 4: R4 Config

 

Host and Switch Configuration

All LAN switches have no relevant configuration. You can consider all switch ports up and assigned to default VLAN 1.

Each host uses the lowest IP address in the respective subnets. They also use the various routers’ IP addresses as their default gateway. The lab does not show those addresses here because you need to calculate the router addresses as part of the lab exercise. However, the supplied files should be pre-configured with the addresses and default gateway settings.

Config Lab Intro Video

The above lab intro – the text, figures, and initial configuration – tells you all you need to know. But if you want a little more, with a little different slant on what to do in this lab, watch this lab intro video!

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:

  1. Download the .pkt file linked below.
  2. Open the .pkt file, creating a working lab with the same topology and interfaces as the lab exercise.
  3. Add your planned configuration to the lab.
  4. Test the configuration using some of the suggestions below.

Download this lab’s Packet Tracer File

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:

  1. Download the CML file (filetype .yaml) linked below.
  2. Import the lab’s CML file into CML.
  3. Start the lab in CML.
  4. Compare the CML lab topology and interface IDs to this lab Blog page, as they may differ (more detail below).
  5. Add your planned configuration to the lab, adjusting for interface ID differences.
  6. Test the configuration using some of the suggestions below.

Download this lab’s CML file!

See below for an alternate 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:

  • Gigabit IIDs become Ethernet IIDs, but use the same numbers. For example, G0/1 becomes E0/1.
Lab Port  CML Port
G0/1 E0/1
G0/2 E0/2

 

Alternate CML File w/ “Router as Many Hosts” Feature

The lab diagram for this lab has:

  • 4 Routers
  • 5 Switches
  • 4 hosts

However, CML-Free allows only five active nodes. The lab must use four active routers to be meaningful. To overcome that limit, the CML file uses unmanaged switches, which act as switches with all ports as access ports in the same VLAN. Unmanaged switches do not count against the five-node limit. The CML file linked earlier in this section omits the four hosts. As a result of these two choices, the earlier CML file uses four nodes that count against the five-node limit, so you can run the lab in CML-Free.

If you want to use a CML file that includes the hosts, use the file linked below. It uses the same design, but adds one router. That one router mimics all four hosts so the lab does not exceed the five-node limit. I call this method “One-Router-as-Many-Hosts”, which uses the router VRF Lite feature. To learn about that method, look to the following videos:

Using this feature can be a little tricky, so you will likely want to watch both the above videos before using it. The file is linked below.

Download this lab’s CML file – which includes hosts!

Lab Answers Below: Spoiler Alert

Lab Answers: Configuration (Click Tab to Reveal)

Answers

Figure 1: Four Switches with Trunks

 

interface GigabitEthernet0/1
 ip address 172.16.100.1 255.255.255.0
!
interface GigabitEthernet0/2
 ip address 172.16.1.30 255.255.255.224

Example 5: R1 Config

 

interface GigabitEthernet0/1
 ip address 172.16.100.2 255.255.255.0
!
interface GigabitEthernet0/2
 ip address 192.168.1.78 255.255.255.240

Example 2: R2 Config

 

interface GigabitEthernet0/1
 ip address 172.16.100.3 255.255.255.0
!
interface GigabitEthernet0/2
 ip address 10.20.30.174 255.255.255.248

Example 3: R3 Config

 

interface GigabitEthernet0/1
 ip address 172.16.100.4 255.255.255.0
!
interface GigabitEthernet0/2
 ip address 10.100.45.254 255.255.255.192

Example 4: R4 Config

Commentary, Issues, and Verification Tips (Click Tabs to Reveal)

Commentary

When configuring IP addressing information on a networking device, it is essential to ensure that the information is correct before putting a device into production. Unlike an IP overlap on a single PC which could affect that one device or possibly affect another PC on the local subnet, the misconfiguration of an IP address on a networking device can affect the whole LAN.

For this lab, you were tasked with performing the IP addressing configuration on the five subnets shown in the figure. Four of the subnets required that the router use the highest IP address in each subnet for the connecting interface, as follows:

  • R1’s LAN subnet uses the 172.16.1.0/27 subnet. The range of addresses, including the subnet ID and broadcast address, is 172.16.1.0 – 172.16.1.31, for a router interface address of 172.16.1.30.
  • R2’s LAN subnet uses the 192.168.1.64/28 subnet. The range of addresses, including the subnet ID and broadcast address, is 192.168.1.64 – 192.168.1.79, for a router interface address of 192.168.1.78.
  • R3’s LAN subnet uses the 10.20.30.168/29 subnet. The range of addresses, including the subnet ID and broadcast address, is 10.20.30.168 – 10.20.30.175, for a router interface address of 10.20.30.174.
  • R4’s LAN subnet uses the 10.100.45.192/26 subnet. The range of addresses, including the subnet ID and broadcast address, is 10.100.45.192 – 10.100.45.255, for a router interface address of 10.100.45.254.

Additionally, all four G0/1 interfaces needed an address in subnet 172.16.100.0/24.

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 No known issues. .

 

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. 

  1. From the console of each router, verify the router’s IP addresses:
    1. Use the show ip interface command to verify the address and mask.
    2. Use the show ip interfaces brief command to verify the addresses.
    3. Use the ping command against the addresses expected to be configured on the local router; all pings should work.
  2. The initial configuration does not include any routing protocol configuration, so unless you chose to add routing protocol configuration, you should see only connected and local routes in the routing tables. You can verify those routes as compared to the figure. On each router:
    1. Use the show ip route command. Look for two connected routes – one connected to interface G0/1 and one connected to interface G0/2.
  3. Use ping tests to ping the router IP addresses in shared subnet 172.16.100.0/24. From each router, ping all four router IP addresses in that subnet. All pings should work.
  4. You can try an interesting ping test from each PC as well. Each PC should succeed at pinging their default gateway. They should also succeed with pings of the other working IP address on that same router. For instance, PC1 should be able to ping R1’s G0/2 address (it’s default gateway address) and R1’s G0/1 address (R1’s address on the central subnet.) However, due to the lack of an IP routing protocol, pings to the other three routers’ addresses should fail.

Config Lab Review Video

Want to hear more about this lab’s solution? Check out the video to the left.

Config Lab: IPv4 Addresses 1
Config Lab: IPv4 Addresses 3
Subscribe
Notify of
guest

12 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Emil

Great lab for practicing subnetting! If you want all the PCs to be able to ping each other, run these 3 commands on each router to turn on OSFP (you’ll have to wait a minute before all routers advertise everything):

conf t
int range g0/1-2
ip ospf 1 area 0
no shut

Emil

Also noticed that there’s a duplicate of this lab in CONFIG LAB CCNA VOL 1 PART 5 > Config Lab: IPv4 Addresses 2.

boudjema

hello and thank you for the lab
please why i can’t ping from one Pc in one subnet to another Pc in another subnet ? event the 4 Routers have a static routes ??
thank you

certskills

Well, without bringing up the lab in PT to test it, I’d say check the default gateway settings on the PCs. If unset, or set incorrectly, the PC-to-PC pings would fail.

Jay Mahannah

The last octet on the Switch side for each router’s G0/1 interface should be .251-.254 instead of .1-.4, right?

Ed Casas

I just use:

router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Then assign all the ip addresses to my interfaces in the lab.

Last edited 2 years ago by Ed Casas
ERMUNDO C RUSSELL

Wendell,

All the labs are really helpful but I enjoyed this one the most. I couldn’t figure out why PC2 would not ping R2 per the verification tips for CPT/CML. Finally I realized PC2 was not assigned an address in the subnet.

kirill

Why is there a switch in the middle of the routers. Why should a switch be placed between routers?

Ricky

Hi Wendell,

The link to download the CML file does not work. It results to 404 Not Found.

Thank you – Ricky

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

12
0
Would love your thoughts, please comment.x
()
x