HP 6125XLG R2306-HP 6125XLG Blade Switch Layer 3 - IP Services Configuration G - Page 44

Configuring a static binding in a DHCP address pool, Specifying gateways for the client

Page 44 highlights

Step Command 9. (Optional.) Exclude the specified IP addresses from dynamic allocation globally. dhcp server forbidden-ip start-ip-address [ end-ip-address ] Remarks Except for the IP address of the DHCP server interface, IP addresses in all address pools are assignable by default. To exclude multiple address ranges globally, repeat this step. Configuring a static binding in a DHCP address pool Some DHCP clients, such as a WWW server, need fixed IP addresses. To provide a fixed IP address for such a client, you can statically bind the MAC address or ID of the client to an IP address in a DHCP address pool. When the client requests an IP address, the DHCP server assigns the IP address in the static binding to the client. Follow these guidelines when you configure a static binding: • One IP address can be bound to only one client MAC or client ID. You cannot modify bindings that have been created. To change the binding for a DHCP client, you must delete the existing binding first. • The IP address of a static binding cannot be the address of the DHCP server interface. Otherwise, an IP address conflict occurs and the bound client cannot obtain an IP address correctly. • To configure a static binding for a DHCP client whose interfaces use the same MAC address, you must specify the client ID, rather than the MAC address to identify a requesting interface. Otherwise, IP address allocation will fail. To configure a static binding: Step 1. Enter system view. 2. Enter address pool view. 3. Configure a static binding. Command system-view dhcp server ip-pool pool-name static-bind ip-address ip-address [ mask-length | mask mask ] { client-identifier client-identifier | hardware-address hardware-address [ ethernet | token-ring ] } Remarks N/A N/A By default, no static binding is configured. To add more static bindings, repeat this step. 4. (Optional.) Specify the lease duration for the IP address. expired { day day [ hour hour [ minute minute [ second second ] ] ] The default setting is one day. | unlimited } Specifying gateways for the client DHCP clients send packets destined for other networks to a gateway. The DHCP server can assign the gateway address to the DHCP clients. You can specify gateway addresses in each address pool on the DHCP server. A maximum of eight gateways can be specified in DHCP address pool view or secondary subnet view. 35

  • 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
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230

35
Step
Command
Remarks
9.
(Optional.) Exclude the specified
IP addresses from dynamic
allocation globally.
dhcp server forbidden-ip
start-ip-address
[
end-ip-address
]
Except for the IP address of
the DHCP server interface, IP
addresses in all address pools
are assignable by default.
To exclude multiple address
ranges globally, repeat this
step.
Configuring a static binding in a DHCP address pool
Some DHCP clients, such as a WWW server, need fixed IP addresses. To provide a fixed IP address for
such a client, you can statically bind the MAC address or ID of the client to an IP address in a DHCP
address pool. When the client requests an IP address, the DHCP server assigns the IP address in the static
binding to the client.
Follow these guidelines when you configure a static binding:
One IP address can be bound to only one client MAC or client ID. You cannot modify bindings that
have been created. To change the binding for a DHCP client, you must delete the existing binding
first.
The IP address of a static binding cannot be the address of the DHCP server interface. Otherwise,
an IP address conflict occurs and the bound client cannot obtain an IP address correctly.
To configure a static binding for a DHCP client whose interfaces use the same MAC address, you
must specify the client ID, rather than the MAC address to identify a requesting interface. Otherwise,
IP address allocation will fail.
To configure a static binding:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter address pool view.
dhcp server ip-pool
pool-name
N/A
3.
Configure a static binding.
static-bind ip-address
ip-address
[
mask-length
|
mask
mask
]
{
client-identifier
client-identifier
|
hardware-address
hardware-address
[
ethernet
|
token-ring
] }
By default, no static binding is
configured.
To add more static bindings,
repeat this step.
4.
(Optional.) Specify the lease
duration for the IP address.
expired
{
day
day
[
hour
hour
[
minute
minute
[
second
second
] ] ]
|
unlimited
}
The default setting is one day.
Specifying gateways for the client
DHCP clients send packets destined for other networks to a gateway. The DHCP server can assign the
gateway address to the DHCP clients.
You can specify gateway addresses in each address pool on the DHCP server. A maximum of eight
gateways can be specified in DHCP address pool view or secondary subnet view.