Route Add

Hi,
I am trying to add route command in Solaris 10 machine in the following fashion:

route add -host 10.8.112.10 180.144.1.250 -interface lo0:1

this command fails with an error "lo0:1: bad value"

I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the interface lo0:1. Could you help and guide me how this can be done?

The output of the "ifconfig -a" command is shown below:

root@hssce1> ifconfig -a
lo0: flags=20010008c9<UP,LOOPBACK,RUNNING,NOARP,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
lo0:1: flags=20010088c9<UP,LOOPBACK,RUNNING,NOARP,MULTICAST,PRIVATE,IPv4,VIRTUAL> mtu 8232 index 1
        inet 180.144.47.250 netmask ffffffff
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.10.10.111 netmask ffffff00 broadcast 10.10.10.255
        ether 0:3:ba:2c:a5:ae
qfe0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
        inet 180.144.253.217 netmask ffff0000 broadcast 180.144.255.255
        groupname core
        ether 0:3:ba:36:dc:60
qfe0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 180.144.121.1 netmask ffff0000 broadcast 180.144.255.255
qfe0:2: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu 1500 index 3
        inet 180.144.253.220 netmask ffff0000 broadcast 180.144.255.255
qfe3: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 4
        inet 180.144.253.218 netmask ffff0000 broadcast 180.144.255.255
        groupname core
        ether 0:3:ba:36:dc:63
ge0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 5
        inet 172.16.1.1 netmask ffffff80 broadcast 172.16.1.127
        ether 0:3:ba:2c:a5:af
ce0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 6
        inet 172.16.0.129 netmask ffffff80 broadcast 172.16.0.255
        ether 0:3:ba:3a:8:17
clprivnet0: flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4> mtu 1500 index 7
        inet 172.16.193.1 netmask ffffff00 broadcast 172.16.193.255
        ether 0:0:0:0:0:1

Thanks in advance..

lo0 is your loopback, not a NIC. You can't route out of that.

check the baner to find the interface. after that you can use the interface on the command.

You must use -ifp and forget about -interface