Configuring the Virtual IP Address (SRC CLI)

You can configure the virtual IP address on the loopback interface.

To configure the virtual IP address:

  1. From configuration mode, access the configuration statement that configures logical interface 1 for the loopback interface.
    [edit]user@host# edit interfaces lo unit 1
  2. Specify the protocol family and virtual IP address.
    [edit interfaces lo unit 1]user@host# set family (inet | inet6) address address

    For example, to configure a virtual IPv4 address:

    [edit interfaces lo unit 1]user@host# set family inet address 198.168.254.1/24
  3. Verify the interface configuration.
    [edit interfaces lo unit 1]
    user@host# show
    family { 
     inet { 
        address 198.168.254.1/24;
      }
    }

Related Documentation