Table of contents
玄箱のIPアドレスを変更する
一度設定を行った玄箱のIPアドレスの変更は、まずはすでに接続できている環境(ネットワーク内)で行う必要があります。
ここでは、家庭内ネットワーク192.168.123.x、ルーターが192.168.123.254の環境で、玄箱を192.168.123.12にした場合の構成を例にIPアドレスの変更方法を紹介します。
まずは、IPアドレスの修正
/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
次に、アクセスリストの修正
/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
名前解決のためのDNSサーバアドレスを修正
/etc/resolv.conf を修正する。
# vi /etc/resolv.conf
ここでは、ブロードバンドルータのアドレスを指定する。
search nameserver 192.168.123.254
Webminの設定ファイルの内容を変更する。
ここでアクセス設定を行います。この設定があってないとWebminに接続できません。
# vi /etc/webmin/miniserv.conf allow=127.0.0.1 192.168.123.(←最後のアドレス数字のみ削除)
| Page Info | |
|---|---|
| Page Name : | 玄箱のIPアドレス変更 |
| Page aliases : | None |
| Page owner : | ゲスト |
| Can Read | |
| Groups : | All visitors |
| Users : | All visitors |
| Can Edit | |
| Groups : | No one |
| Users : | No one |
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 ゲスト


