« IcoMaker 1.20 (J) | メイン | FTPにおけるユーザーのディレクトリ移動制限方法 »

2006年7月15日

Solaris 10 IPアドレス、ホスト変更

Solaris 10 では /etc/inet/ipnodes ファイルと /etc/inet/hosts ファイルに同名のホストが記載してあった場合、/etc/inet/ipnodes ファイルの情報が優先して採用される。

このため、/etc/inet/ipnodes ファイルの内容を確認し、接続を試みているホストのエントリが存在しないか確認する必要がある。

/etc/inet/ipnodes ファイルと /etc/inet/hosts ファイルの内容は一致した状態になるように管理しなければならない。

以下、検証ログ。

== Solarisr 10 ( ipnodes ファイル優先 ) ==

sol10# grep hosts /etc/nsswitch.conf
# "hosts:" and "services:" in this file are used only if the
hosts: files
sol10# grep orange /etc/inet/hosts
10.208.63.113 orange
sol10# grep orange /etc/inet/ipnodes
10.208.63.112 orange
sol10# telnet orange
Trying 10.208.63.112...
Connected to orange.

== Solaris 9 ( hosts ファイル優先 ) ==

sol9# grep hosts /etc/nsswitch.conf
sol9# "hosts:" and "services:" in this file are used only if the
hosts: files
sol9# grep orange /etc/inet/hosts
10.208.63.113 orange
sol9# grep orange /etc/inet/ipnodes
10.208.63.112 orange
sol9# telnet orange
Trying 10.208.63.113...
Connected to orange.
Escape character is '^]'.

投稿者 AJ : 2006年7月15日 15:43

トラックバック

このエントリーのトラックバックURL:
http://www.factory-aj.com/cgi/mtctrl/mt-tb.cgi/219

 
Powered by Movable Type 4.27-ja | RSS1.0 | RSS2.0 | ATOM