A loopback interface is a virtual interface configured on a router for troubleshooting and protocol support. This content covers how to create and assign both IPv4 and IPv6 addresses to a loopback interface using global configuration mode on a Cisco router.
Configuring Loopback Interface
A loopback interface is a virtual interface on your device, and you can create this so that you can use it for troubleshooting purposes. Later on we'll use it for things when we're setting up different protocols, and it determines certain things for these protocols. But for the purpose of this, we're going to create this loopback address, this loopback interface, so that we can do things like troubleshooting with it.
I'm here on the router, and to create a loopback interface it's really simple. We're going to go into the global configuration mode, and then we'll type in interface and then loopback. This is similar — it's replacing, like, it's not a fast ethernet, this is a loopback interface. And then we will just say we're going to do loopback interface one. Now we are in that interface.
To configure this, all we have to do is assign an IP address. So we'll assign an IP address, and we will assign it, how about, 172.32.0.1, just to assign something outside the realms of what we're assigning other addresses here. And then of course we have to give it a mask, so we're going to do all 255s for this loopback address.
I may want to also, while I'm at it, assign an IPv6 address. Same thing: I do ipv6 address, and then we will want to do something far outside our range, so let's do ffff::1, and it's a /128, and we'll hit enter for that.
Now that we have that, let's take a look at what we configured here. We'll do a show run to take a look at the configuration, and we'll scroll through here, and there is the loopback address.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →