3550emi配置DHCPSERVER!


相关配置命令:
config)#ip dhcp pool [地址池名]
(config)#ip dhcp excluded-address [不分配的地址]
(dhcp-config)#network [要分配的地址] [掩码]
(dhcp-config)#lease [租约]
(dhcp-config)#default-router [默认网关]
(dhcp-config)#dns-server[dns 服务器]
然后要对自动获取地址的vlan 进行设置
(config)#ip helper-address [交换机地址]
再将端口划分到vlan 里
show config:
ip dhcp excluded-address 10.0.199.200 10.0.199.254
!
ip dhcp pool test
network 10.0.199.0 255.255.255.0
default-router 10.0.199.1
dns-server 10.0.199.252
lease 0 0 5
nterface Vlan199
ip address 10.0.199.1 255.255.255.0
ip helper-address 10.0.1.1

    推荐阅读