« IPv6 Learning Website | Home | Updating Your FreeBSD Box with PF enabled in the kernel »

March 28, 2008

Basic IOS Based DHCP Configuration Commands

/*
by: Li Feng Shen
date: 10:04 2008-3-28
*/

Router(config)# ip dhcp excluded-address 10.1.1.1 10.1.1.19
Router(config)# ip dhcp pool Marketing_Subnet
Router(dhcp-config)# network 10.1.1.0 /24
Router(dhcp-config)# domain-name hughr.org
Router(dhcp-config)# dns-server 10.1.1.10 10.1.1.11
Router(dhcp-config)# default-router 10.1.1.2
Router(dhcp-config)# import all //optional

Router(config)# ip dhcp database tftp://10.1.1.50/dhcp-bindings.txt write-delay 180

Router# show ip dhcp binding
Router#

With ip helper-address x.x.x.x command, UDP ports are opened:

37 - TIME
49 - TACACS
53 - DNS
67 - DHCP-SERVER
68 - DHCP CLIENT
69 - TFTP
137 - NETBIOS NAME SERVICE
138 - NETBIOS DATAGRAM SERVICE

To custimize, you can go global config mode & type the following command:

Router(config)# no ip forward-protocol udp 37
Router(config)# no ip forward-protocol udp 137

Posted by Lifeng Shen on March 28, 2008 9:53 AM |

评论

添加评论







固定链接与引用