11-29-2011 12:05 PM
I am looking for a how to configure a DHCP server for a Cisco SMB 300 series switch to obtain an automatic configuration. Currently i am using a Cisco 1800 router as my DHCP server and the DHCP pool serving the 300 series switch is configured as follows.
ip dhcp pool Cisco_SMB_300
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
option 66 ip x.x.x.x
option 67 ascii "config-file-name.txt"
dns-server 8.8.8.8 8.8.4.4
** I've also tried option 150 .... "option 150 ip x.x.x.x"
Looking at pcaps, I don't even see a tftp request going the server after the switch obtains an IP via DHCP. The config file format is exactly as obtained from the download backup section (pretty sure its not the issue since i don't see a download attempt). Also, the SMB switch is running the latest firmware image (1.1.1.8)
Looking though the admin guide i did not see specifics on how the DHCP server was to be configure for the auto configuration feature to work. Any help is greatly appreciated.
Thanks,
George
11-30-2011 09:11 PM
Hi George, I hope this infomation will guide you in configuring your IOS router DHCP server.
---------------- ( excluded ip addresses - optional )----------------
ip dhcp excluded-address 192.168.110.1 192.168.110.3
ip dhcp excluded-address 192.168.110.225 192.168.110.254
---------------- (main DHCP pool scope for 192.168.110.0 /24) network ----
ip dhcp pool data110
network 192.168.110.0 255.255.255.0
default-router 192.168.110.1
dns-server 206.13.29.12 206.13.30.12
lease 0 0 15
!
---------------- ( static ip address mapping with option 150 and boot file ) ----
ip dhcp pool switch1
host 192.168.110.4 255.255.255.0 <<<< switch1 ip address
client-identifier 0188.43e1.ac8a.94 <<<< switch1 MAC address - please follow the format
bootfile switch1 <<<< switch1 specific configuration
default-router 192.168.110.1
dns-server 206.13.29.12 206.13.30.12
option 150 ip 192.168.14.2 <<<< TFTP server ip address
lease 0 0 15
!
ip dhcp pool switch2
host 192.168.110.5 255.255.255.0
client-identifier 0188.43e1.ac9b.34
bootfile switch2
default-router 192.168.110.1
dns-server 206.13.29.12 206.13.30.12
option 150 ip 192.168.14.2
lease 0 0 15
!
ip dhcp pool switch3
host 192.168.110.6 255.255.255.0
client-identifier 0140.f4ec.f34b.79
bootfile switch3
Note: If you are not assigning ststic IP address and all devices will be sharing the same config
file then you simply configure the main pool with the option
ip dhcp pool data110
network 192.168.110.0 255.255.255.0
default-router 192.168.110.1
dns-server 206.13.29.12 206.13.30.12
lease 0 0 15
bootfile file_name
option 150 ip 192.168.14.2 10.2.1.1 1.1.1.1 <<<< please follow the ormat if you have multiple TFTP servers.
thank you.
Razmik
12-03-2011 03:57 AM
Hello Razmik,
Two question,
1/ in provisioning of SPA phones, device looking automaticaly for
2/ what is "bootfile" option by RFC? like "option 150", this config is Cisco IOS, i have for example Linux or Mikrotik
Regards,
Tomas
12-14-2011 01:02 AM
Instead of option 150 , use next-server
Its working for me
Cheers
Amit Dhanawade
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide