ablog

不器用で落着きのない技術者のメモ

Solaris 10 で同一NIC上に複数IPアドレスを設定する

設定を追加して、

# ls /etc/hostname*
/etc/hostname.e1000g0
# echo solarisdb-vip >> /etc/hostname.e1000g0:1
# echo '192.168.11.143  solarisdb-vip   loghost' >> /etc/hosts

再起動する。

# init 6

確認する。

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.11.141 netmask ffffff00 broadcast 192.168.11.255
        ether 0:c:29:c5:f9:20
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.11.143 netmask ffffff00 broadcast 192.168.11.255