DHCPソスTソス[ソスoソス[ソス\ソスz(dhcp)

ソスナ終ソスXソスVソスソスソスF 2020.12.29

ソスソスソスTソスv

LinuxソスTソス[ソスoソス[ソスソスDHCPソスTソス[ソスoソス[ソスニゑソスソスト、ソスソスソスソスソスフクソスソスソスCソスAソスソスソスgソス}ソスVソスソスソスソスIPソスAソスhソスソスソスXソスソスソスソスソスソスソスIソスノ奇ソスソスソスソストゑソス謔、ソスノゑソスソスソスB

ソスyソスOソスソスニゑソスソスソスlソスbソスgソスソスソス[ソスNソスソスソスソスソスz
ソスlソスbソスgソスソスソス[ソスNソスAソスhソスソスソスXソスF192.168.1.0/24
ソスソスソス[ソス^ソス[IPソスAソスhソスソスソスXソスF192.168.1.1
DNSソスTソス[ソスoソス[IPソスAソスhソスソスソスXソスF192.168.1.1
LinuxソスTソス[ソスoソス[IPソスAソスhソスソスソスXソスF192.168.1.2
ソスNソスソスソスCソスAソスソスソスgソスソスソスソスソスソスIPソスAソスhソスソスソスXソスF192.168.1.3ソス`192.168.1.254

ソスソスLinuxソスTソス[ソスoソス[ソスソスDCHPソスTソス[ソスoソス[ソスノゑソスソスソス鼾ソスAソスソスソス[ソス^ソス[ソスソスDHCPソスTソス[ソスoソス[ソス@ソス\ソスヘ厄ソスソスソスソスソスソスソスソス驍アソスソス


ソスソスDHCPソスTソス[ソスoソス[ソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# yum -y install dhcpソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスCソスソスソスXソスgソス[ソスソス

ソスソスDHCPソスTソス[ソスoソス[ソスン抵ソス

[root@centos ~]# vi /etc/dhcp/dhcpd.confソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスン抵ソスtソス@ソスCソスソスソスメ集
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#
ソスネ会ソスソスソスヌ会ソス
subnet 192.168.1.0 netmask 255.255.255.0 {
        range 192.168.1.3 192.168.1.254;
        option routers 192.168.1.1;
        option domain-name-servers 192.168.1.1;
}

# IPソスAソスhソスソスソスXソスナ定割ソスソスソスソス
host xxxxxx-iphone {
        hardware ethernet xx:xx:xx:xx:xx:xx;
        fixed-address 192.168.1.11;
}


ソスソスDHCPソスTソス[ソスoソス[ソスNソスソス

[root@centos ~]# systemctl start dhcpdソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスNソスソスソスソスCentOS7ソスフ場合

[root@centos ~]# systemctl enable dhcpdソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソスソスソスNソスソスソスン抵ソスソスソスCentOS7ソスフ場合


ソスソスDHCPソスTソス[ソスoソス[ソスmソスF(ソスNソスソスソスCソスAソスソスソスgソスソスWindowsソスフ場合)

ソスiソスPソスjソスNソスソスソスCソスAソスソスソスgソスソスソスソスDHCPソスTソス[ソスoソス[ソスソスソスソスIPソスAソスhソスソスソスXソスソスソスソスソスソスソス謫セソスソスソスソス謔、ソスノ設抵ソス
ソスuソス}ソスC ソスlソスbソスgソスソスソス[ソスNソスvソスEソスNソスソスソスbソスNソスヒ「ソスvソスソスソスpソスeソスBソスvソスヒ「ソスソスソス[ソスJソスソス ソスGソスソスソスAソスレ托ソスソスvソスヒ「ソスvソスソスソスpソスeソスBソスvソス{ソス^ソスソスソスヒ「ソスCソスソスソス^ソス[ソスlソスbソスgソスvソスソスソスgソスRソスソス(TCP/IP)ソスvソスヒ「IPソスAソスhソスソスソスXソスソスソスソスソスソスソスIソスノ取得ソスvソスAソスuDNSソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスXソスソスソスソスソスソスソスIソスノ取得ソスvソスノチソスFソスbソスNソスソスOKソス{ソス^ソスソスソスソスソスソス

ソスiソスQソスjソスNソスソスソスCソスAソスソスソスgソスソスソスナゑソスDHCPソスTソス[ソスoソス[ソスソスソスソスソスIPソスAソスhソスソスソスXソス謫セソス況確ソスF
C:\Documents and Settings\fedora>ipconfig /allソス@ソスソスソス@IPソスAソスhソスソスソスXソスソスソスソスソスト状況確ソスF
Ethernet adapter ソスソスソス[ソスJソスソス ソスGソスソスソスAソスレ托ソス:

        Connection-specific DNS Suffix  . : centossrv.com
        Description . . . . . . . . . . . : ADMtek ADM9511 10/100Mbps Fast Ethernet Adapter
        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX
        Dhcp Enabled. . . . . . . . . . . : Yesソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソスLソスソスソスナゑソスソス驍アソスニゑソスソスソスソスソス
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.1.10ソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スIPソスAソスhソスソスソスX
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.1ソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スソスソスソス[ソス^ソス[ソスソスIPソスAソスhソスソスソスX
        DHCP Server . . . . . . . . . . . : 192.168.1.1ソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスX
        DNS Servers . . . . . . . . . . . : XXX.XXX.XXX.XXXソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スDNSソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスX
                                            XXX.XXX.XXX.XXXソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スDNSソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスX
        Lease Obtained. . . . . . . . . . : 2004ソスN8ソスソス30ソスソス 0:14:26
        Lease Expires . . . . . . . . . . : 2004ソスN8ソスソス30ソスソス 6:14:26

ソスソスDHCPソスTソス[ソスoソス[ソスmソスF(ソスNソスソスソスCソスAソスソスソスgソスソスLinuxソスフ場合)

ソスiソスPソスjソスNソスソスソスCソスAソスソスソスgソスソスソスソスDHCPソスTソス[ソスoソス[ソスソスソスソスIPソスAソスhソスソスソスXソスソスソスソスソスソスソス謫セソスソスソスソス謔、ソスノ設抵ソス
[root@client ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0ソス@ソスソスソス@ソスlソスbソスgソスソスソス[ソスNソスン抵ソスtソス@ソスCソスソスソスメ集
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

[root@client ~]# /etc/rc.d/init.d/network reloadソス@ソスソスソス@ソスlソスbソスgソスソスソス[ソスNソスン定反ソスf
ソスCソスソスソス^ソス[ソスtソスFソス[ソスX eth0ソスソスソスIソスソスソスソス:                             [  OK  ]
ソスソスソス[ソスvソスoソスbソスNソスCソスソスソス^ソス[ソスtソスFソス[ソスX ソスソスソスIソスソスソスソス                      [  OK  ]
ソスlソスbソスgソスソスソス[ソスNソスpソスソスソスソスソス[ソス^ソス[ソスソスン定中:                          [  OK  ]
ソスソスソス[ソスvソスoソスbソスNソスCソスソスソス^ソス[ソスtソスFソスCソスXソスソスソストび搾ソスソスン抵ソス                   [  OK  ]
ソスCソスソスソス^ソス[ソスtソスFソス[ソスX eth0ソスソスソスソスソスソスソスソスソスソス:                           [  OK  ]

ソスiソスQソスjソスNソスソスソスCソスAソスソスソスgソスソスソスナゑソスDHCPソスTソス[ソスoソス[ソスソスソスソスソスIPソスAソスhソスソスソスXソス謫セソス況確ソスF
[root@client ~]# ifconfig eth0ソス@ソスソスソス@IPソスAソスhソスソスソスXソスソスソスソスソスト状況確ソスF
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0ソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スIPソスAソスhソスソスソスX
          inet6 addr: fe80::a00:46ff:fe28:e57f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2516 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1725 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3000964 (2.8 Mb)  TX bytes:159154 (155.4 Kb)

[root@client ~]# cat /etc/resolv.conf | grep nameserverソス@ソスソスソス@ソス竝ソスソスソスソスDNSソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスXソスmソスF
nameserver XXX.XXX.XXX.XXXソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スDNSソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスX
nameserver XXX.XXX.XXX.XXXソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スDNSソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスX

[root@client  ~]# route -nソス@ソスソスソス@ソスソスソス[ソス^ソス[ソスソスIPソスAソスhソスソスソスXソスmソスF
Kernel IP routing table
Destination     Gateway       Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0       255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0       255.255.0.0     U     1002   0        0 eth0
0.0.0.0         192.168.1.1   0.0.0.0         UG    0      0        0 eth0ソス@ソスソスソス@DHCPソスTソス[ソスoソス[ソスソスソス迥ソス闢厄ソストゑソス黷スソスソスソス[ソス^ソス[ソスソスIPソスAソスhソスソスソスX


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com