« ますます大きくなりました | メイン | いたずらっ »
dhcpdの設定
2007年06月28日

我が家のLAN内のクライアントは自宅サーバーを経由してインターネットに接続しています。
Fedoraサーバーがルーティングしているのですが。

今まで、各PCのTCP/IPの設定にてデフォルトGatewayにサーバのLAN側のアドレスを指定していました。

ところが...
息子がPSPからインターネット接続したいと言い出したのです。
PSPのTCP/IPの設定にはデフォルトGatewayがありません@@

さてどうしよう。

もともとdhcpサーバーからアドレスを振り分けてもらっておきながらgatewayの設定をするというのも変ですよね....

dhcpd側の設定が悪いんじゃないかと思っていろいろほいくり返してみました。
#やっぱり、サーバー側の設定ミスっていました(^^;;;

以下、dhcpd.confのサンプルからです。

---------------cut here -----------------
For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.0.1; ←←←ここにGatewayのIPアドレスを設定する
option subnet-mask 255.255.255.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
---------------cut here -----------------

上記、option routers の設定がサンプルのままになっていて、
megu家のサーバーのアドレスになっていなかったのです(汗....

ここをちゃんと設定して、dhcpdを再起動したら、、、、

PSPからも接続できました!!
やったぁ~!!

#各クライアントの設定も変更しておかなくちゃ....

投稿者 megu : 2007年06月28日 22:45

コメント

コメントしてください




保存しますか?