You can configure the virtual IP address on the loopback interface.
To configure the virtual IP address:
For example, to configure a virtual IPv4 address:
[edit interfaces lo unit 1]
user@host# show
family {
inet {
address 198.168.254.1/24;
}
}