最近新建机房,需要通过核心交换机来DHCP,使得笔记本能通过此机房的出口连入internet。简单配置如下:
ip dhcp excluded-address 192.168.111.1 192.168.111.220
ip dhcp excluded-address 192.168.111.240 192.168.111.254
!
ip dhcp pool DHCP-POOL
   network 192.168.111.0 255.255.255.0
   default-router 192.168.111.254
   dns-server 60.12.166.166
!
int vlan 111
ip add 192.168.111.254 255.255.255.0
no shut
no ip unr
no ip prox
no ip red
然后笔记本接入到vlan111的端口就可以获得ip等相关信息了。