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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Content</title>
<base target="_self">
<style>
<!--
span.MsoCommentReference
{}
-->
</style>
</head>
<body background="../../images/bg.gif" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onLoad="window.focus();" link="#808080" vlink="#808080" alink="#808080">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#336666" width="18" valign="top">
<img border="0" src="../../images/content_lines.gif" width="16" height="25">
<img border="0" src="../../images/transdot.gif" width="2" height="1"></td>
<td bgcolor="#336666"><font face="Arial" size="2" color="#FFFFFF"><b>1.2</font></b></td>
<td bgcolor="#336666"><img border="0" src="../../images/transdot.gif" width="10" height="1"></td>
<td bgcolor="#336666" width="100%"><b>
<font face="Arial" size="2" color="#FFFFFF">DHCP</font></b></td>
<td width="9" bgcolor="#336666"> </td>
</tr>
<tr>
<td bgcolor="#669999" height="25" width="18"> </td>
<td bgcolor="#669999" height="25"><b><font face="Arial" size="2" color="#FFFFFF">
1.2.5</font></b></td>
<td bgcolor="#669999"><img border="0" src="../../images/transdot.gif" width="10" height="1"></td>
<td bgcolor="#669999" height="25" width="100%"><b>
<font face="Arial" size="2" color="#FFFFFF">Configuring DHCP</font></b></td>
<td bgcolor="#669999" height="25" width="9"> </td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="95%" bordercolor="#111111">
<tr>
<td width="15"></td>
<td>
<font face="Arial" size="2"> Like NAT, a DHCP server requires that the
administrator define a pool of addresses. The </font>
<font face="Courier New" size="2"> <b>ip dhcp pool</b></font><font face="Arial" size="2"> command
defines which addresses will be assigned to hosts.<p>The first command, </font>
<font face="Courier New" size="2"> <b>ip dhcp pool</b></font><font face="Arial" size="2">,
creates a pool with the specified name and puts the router in a
specialized DHCP configuration mode. In this mode, use the </font>
<font face="Courier New" size="2"> <b>network</b></font><font face="Arial" size="2"> statement to define the range of addresses to be
leased. <img border="0" src="../../images/1.gif" align="absmiddle" width="12" height="12"> If specific addresses on the network are to be excluded,
return to global configuration mode. </p>
<p>The </font>
<font face="Courier New" size="2"> <b>ip dhcp excluded-address</b></font><font face="Arial" size="2"> command configures the router to exclude
an individual address or range of addresses when assigning addresses
to clients. The </font>
<font face="Courier New" size="2"> <b>ip dhcp excluded-address</b></font><font face="Arial" size="2"> command may be used to
reserve addresses that are statically assigned to key hosts, for
instance, the interface address on the router.
<img border="0" src="../../images/2.gif" align="absmiddle" width="12" height="12"></p>
<p>Typically, a DHCP server will be configured to assign much more than
an IP address. Other IP configuration values such as the default
gateway can be set from the DHCP configuration mode. Using the
</font>
<font face="Courier New" size="2"> <b>default-router</b></font><font face="Arial" size="2"> command sets the default gateway. The address of the
DNS server, </font>
<font face="Courier New" size="2"> <b>dns-server</b></font><font face="Arial" size="2">, and WINS server, </font>
<font face="Courier New" size="2"> <b>netbios-name-server</b></font><font face="Arial" size="2">, can also
be configured here. The IOS DHCP server can configure clients with
virtually any TCP/IP information.</p>
<p>A list of the key IOS DHCP server commands entered in the DHCP pool
configuration mode are shown in Figure
<img border="0" src="../../images/3.gif" align="absmiddle" width="12" height="12">.</p>
<p>The DHCP service is enabled by default on versions of Cisco IOS that
support it. To disable the service, use the </font>
<font face="Courier New" size="2"> <b>no service dhcp</b></font><font face="Arial" size="2"> command.
Use the </font>
<font face="Courier New" size="2"> <b>service dhcp</b></font><font face="Arial" size="2"> global configuration command to re-enable the DHCP server process.</p>
<p>
<TABLE bgcolor="#B0AFAF" width="95%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD valign="top">
<TABLE bgcolor="#669999" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD><IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">
<img border="0" src="../../images/links_icon.gif" width="25" height="25">
<b>Web Links</b></font></p>
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>Configuring DHCP<p>
<a target="_blank" href="http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca75c.html">
http://www.cisco.com/en/US/products/sw/
iosswrel/ps1835/ products_configuration_guide_ chapter09186a00800ca75c.html</a></font></p>
<p>
<IMG alt="" height="2" width="1" src="../../images/s.gif"></p>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE><p>
</td>
</tr>
</table>
</body>
</html>
|