Hello,
As mentioned in the below juniper document "Only unit 0 is permitted as the master loopback interface. If you want to add more IP addresses to unit 0, you configure them in the normal way under unit 0".
https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/loopback-interface.html
In the below snapshot, adding multiple addresses under unit 0 doesn't give any error on commit check. However, when we add another unit junos doesn't accept it : "Multiple loopback interfaces not permitted in master routing instance". Another loopback unit is permitted under a routing instance.
lab@R1# set interfaces lo0 unit 0 family inet address 2.2.2.2
[edit]
lab@R1# set interfaces lo0 unit 0 family inet address 3.3.3.3
[edit]
lab@R1# commit check
configuration check succeeds
[edit]
lab@R1# set interfaces lo0 unit 1 family inet address 5.5.5.5
[edit]
lab@R1# commit check
[edit interfaces lo0]
'unit 1'
if_instance: Multiple loopback interfaces not permitted in master routing instance
error: configuration check-out failed
Regards,
Rahul
Please mark my solution as accepted if it helped.