Experimental requirements:
N The DHCP server has a host name of dhcpsvr.benet.com,ip address of 192.168.4.11/24.
N The IP address used to automatically assign the hosts in the LAN is 192.168.4.20-192.168.4.200.
N The default gateway address used by each host in the LAN is 192.168.4.1.
Dns server addresses are 192.168.4.2 and 192.168.4.3 dns ns1.benet.com and ns2.benet.com.
N The host name of the network printer device is Prtsvr. Requires that the IP address be automatically assigned to 192.168.4.9.
First, Set Network address
1) Add eth0
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/7F/wKioL1gVzO3hVcUWAABtVyVKNoA506.jpg-wh_500x0-wm_3 -wmp_4-s_1087087463.jpg "title=" image 1.jpg "alt=" wkiol1gvzo3hvcuwaabtvyvknoa506.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/82/wKiom1gVzPuAUlAYAAB97fuqSJs276.jpg-wh_500x0-wm_3 -wmp_4-s_100357481.jpg "title=" image 2.jpg "alt=" wkiom1gvzpuaulayaab97fuqsjs276.jpg-wh_50 "/>
2 Editing network card information
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/7F/wKioL1gVzQqBPbsnAABlxnTO7Y8398.jpg-wh_500x0-wm_3 -wmp_4-s_1042150387.jpg "title=" image 3.jpg "alt=" wkiol1gvzqqbpbsnaablxnto7y8398.jpg-wh_50 "/>
3 Restart
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/7F/wKioL1gVzRmjluvuAABBN8FddA8030.jpg-wh_500x0-wm_3 -wmp_4-s_2338294016.jpg "title=" image 4.jpg "alt=" wkiol1gvzrmjluvuaabbn8fdda8030.jpg-wh_50 "/>
4 Viewing results
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/82/wKiom1gVzTKC9ZmsAACcO9S_cZY185.jpg-wh_500x0-wm_3 -wmp_4-s_2190436647.jpg "title=" image 5.jpg "alt=" wkiom1gvztkc9zmsaacco9s_czy185.jpg-wh_50 "/>
Second, Modify Host name
1 Vim configuration file
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/82/wKiom1gVzV3ByNDgAABKVAbIAxw240.jpg-wh_500x0-wm_3 -wmp_4-s_1771192587.jpg "title=" image 6.jpg "alt=" wkiom1gvzv3byndgaabkvabiaxw240.jpg-wh_50 "/>
2 Changing the host name
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/82/wKiom1gVzWuT76k2AABTWvZVmdw763.jpg-wh_500x0-wm_3 -wmp_4-s_3948869793.jpg "title=" image 7.jpg "alt=" wkiom1gvzwut76k2aabtwvzvmdw763.jpg-wh_50 "/>
Third, Modifying the local host mapping file
1 using the vim tool
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/7F/wKioL1gVzX2gQ3l7AABI0_VWvR4732.jpg-wh_500x0-wm_3 -wmp_4-s_1721646071.jpg "title=" image 8.jpg "alt=" wkiol1gvzx2gq3l7aabi0_vwvr4732.jpg-wh_50 "/>
2 adding mapping records
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/7F/wKioL1gVzY3D4U5BAACJVy0sXQg142.jpg-wh_500x0-wm_3 -wmp_4-s_681271404.jpg "title=" image 9.jpg "alt=" wkiol1gvzy3d4u5baacjvy0sxqg142.jpg-wh_50 "/>
Four, Modify the domain name resolution configuration
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/82/wKiom1gVzZ-DR0rNAAAeGwJOgwk319.jpg-wh_500x0-wm_3 -wmp_4-s_1023047453.jpg "title=" image 10.jpg "alt=" wkiom1gvzz-dr0rnaaaegwjogwk319.jpg-wh_50 "/>650) this.width= 650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/7F/wKioL1gVzbaCNPrPAABQizXCVks685.jpg-wh_500x0-wm_3-wmp_4-s_ 1847156947.jpg "title=" image 12.jpg "alt=" wkiol1gvzbacnprpaabqizxcvks685.jpg-wh_50 "/>
five . Restart All options take effect
1 View host name
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/7F/wKioL1gVzcuSmoGXAAAwLkdkWkU453.jpg-wh_500x0-wm_3 -wmp_4-s_3947361390.jpg "title=" image 13.jpg "alt=" wkiol1gvzcusmogxaaawlkdkwku453.jpg-wh_50 "/>
2 View Gateway
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/82/wKiom1gVzd3yYZ_nAAA6zqDiEXs968.jpg-wh_500x0-wm_3 -wmp_4-s_383876611.jpg "title=" image 14.jpg "alt=" wkiom1gvzd3yyz_naaa6zqdiexs968.jpg-wh_50 "/>
3 Viewing the hosts mapping file
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/7F/wKioL1gVzfvhRDX0AAB3PmCByHc957.jpg-wh_500x0-wm_3 -wmp_4-s_2147151622.jpg "title=" image 15.jpg "alt=" wkiol1gvzfvhrdx0aab3pmcbyhc957.jpg-wh_50 "/>
4 View IP address
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/82/wKiom1gVziDhCnAyAACcO9S_cZY744.jpg-wh_500x0-wm_3 -wmp_4-s_3573368987.jpg "title=" image 16.jpg "alt=" wkiom1gvzidhcnayaacco9s_czy744.jpg-wh_50 "/>
Five, Install and set up the DHCP service
1 Mounting Discs
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/7F/wKioL1gVzjODHs9aAACQAdGRk1Y341.jpg-wh_500x0-wm_3 -wmp_4-s_1044153833.jpg "title=" image 17.jpg "alt=" wkiol1gvzjodhs9aaacqadgrk1y341.jpg-wh_50 "/>
2 Installation
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/82/wKiom1gVzkmBO8O8AADyDYpKybk304.jpg-wh_500x0-wm_3 -wmp_4-s_1428308928.jpg "title=" image 18.jpg "alt=" wkiom1gvzkmbo8o8aadydypkybk304.jpg-wh_50 "/>650) this.width= 650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/82/wKiom1gVzmKin6VYAABrOXCrWxY973.jpg-wh_500x0-wm_3-wmp_4-s_ 2689380556.jpg "title=" image 19.jpg "alt=" wkiom1gvzmkin6vyaabroxcrwxy973.jpg-wh_50 "/>
3 View DHCP. Conf configuration file
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/7F/wKioL1gVznLyRlYAAABR82xxYH8995.jpg-wh_500x0-wm_3 -wmp_4-s_1167781042.jpg "title=" image 20.jpg "alt=" wkiol1gvznlyrlyaaabr82xxyh8995.jpg-wh_50 "/>
4 Editing a configuration file
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/7F/wKioL1gVzoOjCo0GAAAvfK2jit4737.jpg-wh_500x0-wm_3 -wmp_4-s_901599062.jpg "title=" image 21.jpg "alt=" wkiol1gvzoojco0gaaavfk2jit4737.jpg-wh_50 "/>650) this.width= 650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/82/wKiom1gVztWCJL70AACmLtvETDs524.jpg-wh_500x0-wm_3-wmp_4-s_ 1250412630.jpg "title=" image 22.jpg "alt=" wkiom1gvztwcjl70aacmltvetds524.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/82/wKiom1gVzurxNr-6AADLC1MyIww517.jpg-wh_500x0-wm_3 -wmp_4-s_181798928.jpg "title=" image 23.jpg "alt=" wkiom1gvzurxnr-6aadlc1myiww517.jpg-wh_50 "/>650) this.width= 650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/7F/wKioL1gVzv-z-nOHAADJuSy1l2A338.jpg-wh_500x0-wm_3-wmp_4-s_ 2635964419.jpg "title=" image 24.jpg "alt=" wkiol1gvzv-z-nohaadjusy1l2a338.jpg-wh_50 "/>
5 turn on DHCP
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/7F/wKioL1gVzxPQaie-AAA1G_wj1Q8889.jpg-wh_500x0-wm_3 -wmp_4-s_2391200527.jpg "title=" image 25.jpg "alt=" wkiol1gvzxpqaie-aaa1g_wj1q8889.jpg-wh_50 "/>
6 Client Access
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/82/wKiom1gVzyLTmdrlAACYwd7gTHA343.jpg-wh_500x0-wm_3 -wmp_4-s_3300792908.jpg "title=" image 26.jpg "alt=" wkiom1gvzyltmdrlaacywd7gtha343.jpg-wh_50 "/>7 views
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/82/wKiom1gVzzbSMz8CAAB_z0xpPA4566.jpg-wh_500x0-wm_3 -wmp_4-s_3462220237.jpg "title=" image 27.jpg "alt=" wkiom1gvzzbsmz8caab_z0xppa4566.jpg-wh_50 "/>
8 Client Configuration
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/7F/wKioL1gVz0fzdzGPAABJ6CJXedY442.jpg-wh_500x0-wm_3 -wmp_4-s_266293131.jpg "title=" image 28.jpg "alt=" wkiol1gvz0fzdzgpaabj6cjxedy442.jpg-wh_50 "/>
9 getting reserved addresses
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/7F/wKioL1gVz1vSRPa8AACHEoC0_jk709.jpg-wh_500x0-wm_3 -wmp_4-s_4242895642.jpg "title=" image 29.jpg "alt=" wkiol1gvz1vsrpa8aacheoc0_jk709.jpg-wh_50 "/>
Six, Special attention
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/82/wKiom1gVz3GhCX88AAD7b0bCkLM124.jpg-wh_500x0-wm_3 -wmp_4-s_1759354374.jpg "title=" image 30.jpg "alt=" wkiom1gvz3ghcx88aad7b0bcklm124.jpg-wh_50 "/>
The Nineth Chapter Linux Foundation and DHCP