Configuration Guide Vol. 1


36.2.2 Settings for distributing IP to clients

Points to note

Specify the IP addresses that you want to be excluded from assignment to DHCP clients. and then create a DHCP address pool and use it to dynamically distribute IP addresses to DHCP clients.

Figure 36-1: Client-server configuration (when IP is dynamically distributed)

[Figure Data]

Command examples

  1. (config)# interface vlan 10

    (config-if)# ip address 10.1.11.1 255.255.255.0

    (config-if)# exit

    Sets the necessary VLAN interface and IP address in advance.

  2. (config)# service dhcp vlan 10

    Specifies the name of the VLAN interface on which the DHCP server is enabled.

  3. (config)# ip dhcp excluded-address 10.1.11.1 10.1.11.120

    Sets the IP addresses that are to be excluded from assignment to DHCP clients by the DHCP server.

  4. (config)# ip dhcp pool Group1

    Creates a DHCP address pool.

    Switches to DHCP configuration mode.

  5. (dhcp-config)# network 10.1.11.0 255.255.255.0

    Sets the network address of the DHCP address pool.

  6. (dhcp-config)# lease 0 0 20

    Sets 20 minutes as the default lease time for the DHCP address pool.

  7. (dhcp-config)# default-router 10.1.11.1

    Sets the IP address of the router on the subnet.