# Configure DHCP on Pix Firewall ###### tags: `cisco` `pix` `dhcp` Pix image:pix802.bin ``` ----------------------------------------------- Configure DHCP server on Pix ----------------------------------------------- Step 1: configure ip address range the Pix DHCP server assignes Step 2: enable DHCP daemon on pix to listen to DHCP requests from clients Step 3: specify lease length to grant to the client (default is 3600 second) Step 4: specify DNS server (option) Step 5: specify WINS server (option) Step 6: configure domain name to the client will use (option) Example: pixfirewall(config)# dhcpd address 192.168.0.1-192.168.0.253 inside pixfirewall(config)# dhcpd enable inside pixfirewall(config)# dhcpd lease 3600 pixfirewall(config)# dhcpd dns 192.168.10.68 192.168.10.73 pixfirewall(config)# dhcpd wins 192.168.10.66 pixfirewall(config)# dhcpd domain cisco.com ----------------------------------------------- Configure DHCP client on pix ----------------------------------------------- pixfirewall(config)#interface ethernet0 pixfirewall(config-if)#ip address dhcp [setroute] Comment#1. setroute option tells the pix to set its default route using the default gateway parameter hat the DHCP server returns. Do not configure a default route when using thesetroute option. Comment#2. use "show ip address outside dhcp server" and "show ip address outside dhcp lease" command to view current information the DHCP lease. Comment#3. when configure DHCP client in a VPN connection, use "dhcp-server" command in a tunnel-group. It will assign an IP address from an outside DHCP server. The "ip address dhcp" command can not be used in this way. ```