flagflag  
6: 2009-08-05 (Wed) 10:35:26 s09081 source 7: 2009-10-03 (Sat) 12:02:23 s09081 source
Line 181: Line 181:
**** 各種設定 めどいから明日・・・ [#m0364390] **** 各種設定 めどいから明日・・・ [#m0364390]
 +
 +**DHCPdne [#aff0d64c]
 +ぷららでやりました
 +***こうやったぜ! [#bcbe7bf8]
 +[root@centos ~]# /bin/cp /usr/share/doc/dhcp-*/dhcpd.conf.sample /etc/dhcpd.conf
 + ← DHCPサーバー設定ファイルをサンプルより作成
 +
 +[root@centos ~]# vi /etc/dhcpd.conf ← DHCPサーバー設定ファイル編集
 +ddns-update-style interim;
 +ignore client-updates;
 +not authoritative; ← 追加(以下のような警告メッセージがログに出力場合の対処)
 +
 +If this DHCP server is authoritative for that subnet,
 +please write an `authoritative;' directive either in the
 +subnet declaration or in some scope that encloses the
 +subnet declaration - for example, write it at the top
 +of the dhcpd.conf file.
 +
 +subnet 192.168.1.0 netmask 255.255.255.0 { ← 自身の環境にあわせて編集
 +
 +# --- default gateway
 +       option routers                  192.168.1.1; ← ルーター経由接続環境の場合はルーターのIPアドレスを指定
 +                                                         PPPoE接続環境の場合はサーバーの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;
 + ← ルーター経由接続環境の場合はルーターのIPアドレスを指定
 +       option domain-name-servers      XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX;
 + ← PPPoE接続環境の場合はプロバイダから通知されたDNSサーバーのIPアドレス(プライマリ,セカンダリ)を指定
 +
 +       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.1.2 192.168.1.254; ← 割当てるIPアドレスを指定(192.168.1.2~192.168.1.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 XX:XX:XX:XX:XX:XX;
 +       #      fixed-address 207.175.42.254;
 +       #}
 +       }
 +}
 +       以下はホストwin-client1にプライベートIPアドレスを固定で割当てる場合追加
 +       host win-client1 { ← ホスト名
 +               hardware ethernet XX:XX:XX:XX:XX:XX; ← win-client1に装着しているネットワークアダプタのMACアドレス※
 +               fixed-address 192.168.1.10; ← win-client1に固定で割当てるIPアドレス
 +       }


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

66 user(s) are online (20 user(s) are browsing xpwiki)

Members: 0
Guests: 66

more...

Access Counter

Today : 1993199319931993
Yesterday : 1361113611136111361113611
Total : 2364040023640400236404002364040023640400236404002364040023640400
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com