cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2158
Views
0
Helpful
6
Replies

How to set multiple hosts to a loopback ?

loker
Level 1
Level 1

Hi, I would like to know how to add multiple adress to a loopback in cisco ? I have to configure a loopback that has 31 hosts but I can only set one, do you have any tips ?

 

Thanks

1 Accepted Solution

Accepted Solutions

HI @loker ,

 

Try with this:

 

R(config)#interface lo 4

R(config-if)#ip add 192.168.0.0 255.255.255.224

 

In itself, the mask is what tells you the number of possible hosts.
The mask /27(255.255.255.224) has 30 host + the IP broadcast.
If the host request should not include the IP broadcast, it must be a mask /26 (255.255.255.192)

 

Remember to mark the correct answers as solved, because that helps other users with similar doubts.

 

Regards

View solution in original post

6 Replies 6

balaji.bandi
Hall of Fame
Hall of Fame

Loop-back back interface is dummy interface which is not meant to be Data traffic.

 

what is the use case to have more IP on single Loop back, why not you do with Ethernet interface with sub-interface here ?

 

what device and IOs code running on this device ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi, I'm a student and for an exercice I have to create and configure loopback “lo4” on router “R6”, it will include 31 hosts.

 

I have no further informations 

 

 

I think that you need create a sub-rede with range that will have a range for 31 host.

like it:

interface loopback 4
ip address 192.168.1.1 255.255.255.224
no shut

But it not normally use loopback for it.
Jaderson Pessoa
*** Rate All Helpful Responses ***

HI @loker ,

 

Try with this:

 

R(config)#interface lo 4

R(config-if)#ip add 192.168.0.0 255.255.255.224

 

In itself, the mask is what tells you the number of possible hosts.
The mask /27(255.255.255.224) has 30 host + the IP broadcast.
If the host request should not include the IP broadcast, it must be a mask /26 (255.255.255.192)

 

Remember to mark the correct answers as solved, because that helps other users with similar doubts.

 

Regards

Hello,

 

you cant do it: R(config-if)#ip add 192.168.0.0 255.255.255.224

 

Regards

Jaderson Pessoa
*** Rate All Helpful Responses ***

Oh ok, the Original post have different information :

 

in your case follow below steps :

 

config t

!

interface loopback 4

ip address 10.10.10.1 255.255.255.224   <-- check this IP as  per your requirement

no shutdown

!

end

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card