I have a Solaris server which has 2 interfaces. I wanted to use the same shared interface but make it respond to multiple IP addresses. So I used the following command:
ifconfig vmxnet3s1:1 10.20.20.20 netmask 255.255.255.255
Then I added this IP address to the /etc/hosts
file and restarted the network by executing:
svcadm restart network/physical
But when I try to ping this new IP address from another server, it reports "no answer from 10.20.20.20".
Both the server (the one from which I am pinging and the one on which I added an IP address) are on the same LAN.
Output of ifconfig -a
:
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vmxnet3s0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 135.25.154.232 netmask ffffff00 broadcast 135.25.154.255
ether 0:50:56:b2:58:f0
vmxnet3s1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 135.182.130.195 netmask ffffff00 broadcast 135.182.130.255
ether 0:50:56:b2:64:43
vmxnet3s1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.20.20.20 netmask ff000000 broadcast 10.255.255.255
Is there anything more that needs to be done?