H3C Technologies H3C S7500E Series Switches User Manual

Page 50

Advertising
background image

5-7

To do…

Use the command…

Remarks

Enter system view

system-view

Enter common address pool view

dhcp server ip-pool pool-name

Specify an IP address range

network network-address

[ mask-length | mask mask ]

Required

Not specified by default.

Specify the address lease duration

expired { day day [ hour hour

[ minute minute ] ] | unlimited }

Optional

One day by default.

Return to system view

quit

Exclude IP addresses from

automatic allocation

dhcp server forbidden-ip

low-ip-address [ high-ip-address ]

Optional

Except IP addresses of the DHCP

server interfaces, all addresses in

the DHCP address pool are

assignable by default.

z

In common address pool view, using the network command repeatedly overwrites the previous

configuration.

z

After you exclude IP addresses from automatic allocation using the dhcp server forbidden-ip

command, neither a common address pool nor an extended address pool can assign these IP

addresses through dynamic address allocation.

z

Using the dhcp server forbidden-ip command repeatedly can exclude multiple IP address

ranges from allocation.

Configuring Dynamic Address Allocation for an Extended Address Pool

Extended address pools support dynamic address allocation only.

When configuring address allocation for an extended address pool, you need to specify:

z

Assignable IP address range

z

Mask

After the assignable IP address range and the mask are specified, the address pool becomes valid.

Follow these steps to configure dynamic address allocation for an extended address pool:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter extended address pool

view

dhcp server ip-pool pool-name

extended

Advertising