Harry's Virtual Dimension  LOGIN   REGISTER



Harry's Virtual Dimension  Harry's Virtual Dimension  Harry's Virtual Dimension 
HOME BLOG WIKI ALBUM CONTACT   DOWNLOAD HELP?
サイト内キーワード検索
ログイン
ユーザー名:

パスワード:


パスワード紛失

新規登録
ブログカテゴリ一覧
メインメニュー
おすすめ商品
スポンサード リンク
Harryおすすめグッズ

おそらく最強のケータイ契約のキャッシュバック!

玄箱のIPアドレスを変更する anchor.png

一度設定を行った玄箱のIPアドレスの変更は、まずはすでに接続できている環境(ネットワーク内)で行う必要があります。

ここでは、家庭内ネットワーク192.168.123.x、ルーターが192.168.123.254の環境で、玄箱を192.168.123.12にした場合の構成を例にIPアドレスの変更方法を紹介します。

Page Top

Telnetでログインして、各種設定ファイルを書き換える。 anchor.png

telnetでログインの後、各種設定ファイルをviを用いて編集します。

Page Top

まずは、IPアドレスの修正 anchor.png

/etc/network/interfaces を修正します(IPアドレス、ネットワークアドレス、サブネットマスク、ブロードキャストアドレス、デフォルトゲートウェイアドレスを見直し変更)

# vi /etc/network/interfaces

つづいて、以下の例を見ながら、あなたの玄箱の環境に合わせて変更します。

私の場合は、玄箱が192.168.123.12、ルーターが192.168.123.254なので以下のようになります。

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
iface eth0 inet static
address 192.168.123.12
network 192.168.123.0
netmask 255.255.255.0
broadcast 192.168.123.255
gateway 192.168.123.254

iface lo inet loopback

auto eth0 lo
Page Top

次に、アクセスリストの修正 anchor.png

/etc/hosts.allow を確認する。

# vi /etc/hosts.allow

すでに、すべての許可の設定(ALL : ALLを追加)をしている場合は問題がないが、ここでIPアドレス指定をしている場合は変更をする。

# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
# ALL : 192.168.0.1/255.255.255.0
# ALL : 127.0.0.1
ALL : ALL
Page Top

名前解決のためのDNSサーバアドレスを修正 anchor.png

/etc/resolv.conf を修正する。

# vi /etc/resolv.conf

ここでは、ブロードバンドルータのアドレスを指定する。

search
nameserver 192.168.123.254
Page Top

hostsファイルも修正 anchor.png

/mnt/etc/hosts を修正します。

# vi /etc/hosts

127.0.0.1       localhost
192.168.123.12  KURO-BOX
Page Top

Webminの設定ファイルの内容を変更する。 anchor.png

ここでアクセス設定を行います。この設定があってないとWebminに接続できません。

# vi /etc/webmin/miniserv.conf
allow=127.0.0.1 192.168.123.(←最後のアドレス数字のみ削除)
Page Top
Webmin設定ファイルの内容を適用する。 anchor.png
# /etc/init.d/webmin force-reload
Page Top

すべて問題がなければ再起動! anchor.png

上記の設定が間違うと、再起動後にネットワーク接続がうまくいきませんので慎重に確認してください! 問題がなければ再起動。

# reboot

再起動後は、新たなネットワークでtelnetして確認

参照:初心者の玄箱Debianサーバー化パーフェクトマニュアル


Front page   Diff Backup Copy Rename ReloadPrint View   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom) Powered by xpWiki
Counter: 2544, today: 1, yesterday: 1
Princeps date: 2007-05-21 (Mon) 18:34:40
Last-modified: 2007-05-21 (Mon) 18:34:40 (JST) (1825d) by ゲスト
スポンサード リンク

 
 
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project