OpenIndianaのnwamで固定IPアドレス設定
ZFSのdedup機能を使いたいので、OpenIndianaでファイルサーバを別に作成します。
なお、CUIでネットワーク設定をする際は、ifconfigではなくてnwamcfgなるコマンドを利用するらしいです。よくわからんが物理と論理を分けることができて仮想化時代にナイスらしいよ
とりあえず現在の設定を見てみる!
# nwamcfg nwamcfg> list NCPs: Automatic Locations: Automatic NoNet User
固定IPアドレスの設定はこんな感じでインタフェースを指定して、walkpropで対話的に設定してcommitすればいいらしい。
nwamcfg> select ncp Automatic nwamcfg:ncp:Automatic> list NCUs: phys rge0 ip rge0 phys rge1 ip rge1 nwamcfg:ncp:Automatic> select ncu ip rge1 nwamcfg:ncp:Automatic:ncu:rge1> list ncu:rge1 type interface class ip parent "Automatic" enabled true ip-version ipv4,ipv6 ipv4-addrsrc dhcp ipv6-addrsrc dhcp,autoconf nwamcfg:ncp:Automatic:ncu:rge1> walkprop (省略) nwamcfg:ncp:Automatic:ncu:rge1> commit nwamcfg:ncp:Automatic:ncu:rge1> end nwamcfg:ncp:Automatic> end nwamcfg> end
うーん、これでいいのだろうか。よくわからん…