Free CCNA Workbook
  • Home
  • About
    • Donations
    • Free CCNA Workbook Staff
  • Blog
  • Workbooks
    • CCNA Routing & Switching
    • CCNA Security
    • CCNA Voice
    • CCNA Wireless
  • Stub Lab
    • Stub Lab Information
    • Stub Lab FAQ’s
    • Stub Lab Topology

Configuring a Loopback Interface

Loopback interfaces are a very common configuration on Cisco devices for that can be used management, logging, authentication and more. This lab will discuss and demonstrate the creation and removal of loopback interfaces on a Cisco IOS device.

Real World Application

Loopback interfaces are commonly used in a variety of scenarios including management interface, tunnel source/destination, network link simulation, dynamic routing process router id and others. As a CCNA you’ll need to be able to create and remove loopback interfaces from a Cisco device.

This lab will teach you how to configure a Loopback interface.

Lab Prerequisites

  • If you’re using GNS3 than load the Free CCNA Workbook GNS3 topology than start R1.
  • Establish a Console session with Router 1.

Lab Objectives

  • Create interface loopback 1 and assign the IP address 10.233.21.251 255.255.255.0 to the interface.
  • Remove interface Loopback 1.

Lab Instruction

Loopback interfaces are software based logical interfaces that are “always up”. They are not tied to any physical interface therefore they cannot go down unless they are administratively shut down.


To create a loopback interface you need to navigate to global configuration mode and execute the command interface loopback # The interface is created automagically. Configuration shown below;

Router con0 is now available



Press RETURN to get started.



Router>enable
Password: 
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface loopback ?
    Loopback interface number

Router(config)#interface loopback 1
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
Router(config-if)#

After the interface is created you’ll notice the interface changes to state up instantly. As per the objective you’re required to configure the IP address 10.233.21.251/24 on this interface as shown below;

Router(config-if)#ip address 10.233.21.251 255.255.255.0

Objective 2 request that we remove the Loopback 1 interface, you can remove loopback interfaces by negating the interface command using the no interface loopback # command as shown below;

Router(config-if)#no interface loopback 1
% Not all config may be removed and may reappear after reactivating the logical-interface/sub-interfaces
Router(config)#
%LINK-5-CHANGED: Interface Loopback1, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to down

Once you’ve removed the interface you’ll notice a warning that not all config may have been removed and may reappear after reactivating the logical-interface/sub-interface.

This has been an issue with Cisco IOS for years and it has yet to be fixed. Basically this warning is letting you know that once you remove a logical or sub-interface using the no interface command there is the potential for some of the previous configuration to return when re-creating the same interface. If you experience this issue, a router reload will resolve this problem.

◄ Previous Lab
Next Lab ►

About Free CCNA Workbook

In 2008 Free CCNA Workbook originally started as a sharable PDF but quickly evolved into the largest CCNA training lab website on the net!

 

The website was founded in late 2009 with the goal of providing FREE Cisco CCNA labs that can be completed using the GNS3 platform.

Latest Tweets

  • 9 years ago The @fccnawb website is not only available in HTTPS. We've done this of course to make Google happy lol.
  • 10 years ago Interested in following the Founder of the Free CCNA Workbook website? Check out @MattGeorgeCCIE

Useful Links

  • Stub Lab GNS3 Topology File Download
  • GNS3 - Cisco Device Emulator Download
  • Geek Fluent Blog by Dave Henry
  • Junos Workbook | Free Juniper JNCIA Training
  • Putty Terminal Emulator (Free Download)
  • Quiz Me! - CCNA R&S Practice Exam

© Copyright 2009-2017 Free CCNA Workbook All Rights Reserved.

Legal | Privacy Policy | Sitemap | Contact Us

sponsored