Config VIP on Solaris 10
list existing interfaces
ifconfig -a
select an interface to add a VIP, i.e., hme0
select the next number that isn't used, i hme0:#
Add virtual interface
ifconfig hme0:1 plumb
To remove the interface:
ifconfig hme0:1 unplumb
configure virtual interface ip
you need an ip and mask assigned in advance
ifconfig hme0:1 10.60.54.238 \
netmask 255.255.255.0 \
broadcast 10.60.54.255
check that it is available
ifconfig -a
At this point you can bind services to it, i.e., backups, but it isn't up,
Up the interface when you need it to respond, down other server VIP interfaces if this server is taking over responding to the service.
ifconfig hme0:1 up
To make the service come up automatically, add the ip and hostname to the /etc/hosts file and create a file /etc/hostname.hme0:1 with the hostname in it.
Configure, and up in one command:
ifconfig hme0:1 10.60.54.238 \
netmask 255.255.255.0 \
broadcast 10.60.54.255 up
See this post
ifconfig -a
select an interface to add a VIP, i.e., hme0
select the next number that isn't used, i hme0:#
Add virtual interface
ifconfig hme0:1 plumb
To remove the interface:
ifconfig hme0:1 unplumb
configure virtual interface ip
you need an ip and mask assigned in advance
ifconfig hme0:1 10.60.54.238 \
netmask 255.255.255.0 \
broadcast 10.60.54.255
check that it is available
ifconfig -a
At this point you can bind services to it, i.e., backups, but it isn't up,
Up the interface when you need it to respond, down other server VIP interfaces if this server is taking over responding to the service.
ifconfig hme0:1 up
To make the service come up automatically, add the ip and hostname to the /etc/hosts file and create a file /etc/hostname.hme0:1 with the hostname in it.
Configure, and up in one command:
ifconfig hme0:1 10.60.54.238 \
netmask 255.255.255.0 \
broadcast 10.60.54.255 up
See this post
Comments