資源描述:
《dhcp超級作用域》由會員上傳分享,免費在線閱讀,更多相關內容在工程資料-天天文庫。
1、DHCP超級作用域實驗目的:公司有一臺DHCP服務器:192.168.3.1/24現(xiàn)有4個部門,按如下要求分配TCP/IP信息:部門1:192.16&3.10/24~192.16&3.10/24部門2:192.168.3.20/24^192.168.3.20/24部門3:192.168.4.10/24^192.168.4.10/24部門4:192.168.4.20/24^192.168.4.20/24為了讓員工可以相互通信和上網,DHCP需更新如下設置:部門1:網關:192.168.3.100DNS:1.1.1.1部門2:網關:192.16&3.
2、200DNS:2.2.2.2部門3:網關:192.168.4.100DNS:1.1.1.1部門4:網關:192.168.4.200DNS:2?2?2.2實驗步驟:1.安裝dh卬服務[root@localhost~]#mount/dev/cdrom/mntmount:blockdevice/dev/srOiswrite-protected,mountingread-only[root@localhostcd/mnt/Packages/[root@localhostPackages]#rpm-ivhdhcp-4.1.1-38.Pl.el6.i686.
3、rpmwarning:dhcp-4.1.1-38.Pl.el6.i686.rpm:HeaderV3RSA/SHA256Signature,keyIDfd431d51:NOKEYPreparing...井######附#################################[100$]l:dhcp###########################################[100%]2.編輯主配置文件[root@localhostPackages]#vim/etc/dhcp/dhcpd.confddns-update-style
4、interim;ignoreclient-updates;default-lease-time21600;max-lease-time43200;shared-networka{optionsubnet-mask:255.255.255.0;subnet192.168.3.0netmask255.255.255.0{pool{rangedynamic-bootp192.168.3.10192.168.3.10;optionrouters192.168.3.100;optiondomain-name-servers1.1.1.1;}pool{ran
5、gedynamic-bootp192?168.3.20192?168.3.20;optionrouters192?168?3.200;optiondomain-name-servers2.2.2.2;}subnet192.168.4.0netmask255.255.255.0pool{rangedynamic-bootp192.168.4.10192?168?4?10;optionrouters192.168.4.100;optiondomain-name-servers1.1.1.1;}pool{rangedynamic-bootp192.16
6、8.4.20192.168.4.20;optionrouters192.168?3.200;optiondomain-name-servers2.2.2.2;3.關閉防火墻和selinux,并啟動服務[root@localhostPackages]#servicedhcpdstart芷在啟動dhcpd:[rootglocalhostPackages]#serviceiptablesstopiptables:將鏈設置為政策ACCEPT:filteriptables:清除防火墻規(guī)則:iptables:正在卸載模塊:[確定][確定][確定][確定][r
7、oot@localhostPackages]#setenforce04.開機自啟[root@localhostPackages]#chkconfig一一level2345dhcpdon[root@localhostPackages]#chkconfig一一level2345iptablesoff[Ethernetadapter本地連接:Ccnnection-specificDNSSufflxDescription??PhysIcaIAddressDFCPEnabled??AutoconfiguratioIPAddress.??StbnetHask
8、??DefaultGatewayW*CPServer??DNSServers??■???????■AMDPCNETFanily1Desc