This is an old revision of the document!
!vlan2 ip dhcp pool vlan2 network 192.168.2.0 255.255.255.0 domain-name cisco.com default-router 192.168.2.254 dns-server 192.168.2.253 !lease 4 !ip dhcp snooping !ip dhcp-server 192.168.2.3 interface vlan 2 ip address 192.168.2.252 255.255.255.0 no shutdown
!vlan3 ip dhcp pool vlan3 network 192.168.3.0 255.255.255.0 domain-name cisco.com default-router 192.168.3.254 dns-server 192.168.3.253 !lease 4 !ip dhcp snooping !ip dhcp-server 192.168.3.3 interface vlan 3 ip address 192.168.3.252 255.255.255.0 no shutdown
you can also know the dhcp server status by show ip dhcp binding show ip dhcp conflicts
Note: you can also type the excluded ip address which will not be used by the dhcp server. ip dhcp excluded-address 192.168.50.1 192.168.50.10
!int tronco interface range gigabitEthernet 0/1 - gigabitEthernet 0/2 switchport mode trunk no sh
!conf vlan vlan 2 name vlan2 vlan 3 name vlan3
!int lan interface fastEthernet 0/1 switchport mode access switchport access vlan 2 no sh interface fastEthernet 0/2 switchport mode access switchport access vlan 3 no sh