Virtual interfaces under HPUX 10.20

To define do as you (almost) would do on HPUX 11.00+

sudo vi /etc/rc.config.d/netconf
RARPD=0
INTERFACE_NAME[0]=lan2
IP_ADDRESS[0]=10.17.137.227
LANCONFIG_ARGS[0]=ether
SUBNET_MASK[0]=255.255.255.0
DHCP_ENABLE[0]=0

INTERFACE_NAME[1]=lan2
IP_ADDRESS[1]=10.17.137.226
LANCONFIG_ARGS[1]=ether
SUBNET_MASK[1]=255.255.255.0
DHCP_ENABLE[1]=0
sudo /sbin/init.d/net start

To remove it again

sudo ifalias lan2 del 10.17.137.226

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.