03-12-2019 07:36 AM - edited 03-12-2019 07:37 AM
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
Solved! Go to Solution.
03-12-2019 08:04 AM
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
03-12-2019 07:42 AM
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 ?
03-12-2019 07:45 AM
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
03-12-2019 08:03 AM
03-12-2019 08:04 AM
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
03-12-2019 08:36 AM
Hello,
you cant do it: R(config-if)#ip add 192.168.0.0 255.255.255.224
Regards
03-12-2019 08:28 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide