实验线路连接图:
DCRS-5526S配置:
假设DHCP地址池的名字为shenzhi,租期为5天
switch#config switch(Config)#service dhcp switch(Config)#hostname SwitchA SwitchA(Config)#vlan 10 SwitchA(Config-Vlan10)#switchport interface ethernet 0/0/1-8 SwitchA(Config)#ip dhcp excluded-address 192.168.10.1 192.168.10.50 SwitchA(Config)#ip dhcp pool shenzhi SwitchA(dhcp-shenzhi-config)#network-address 192.168.10.0 SwitchA(dhcp-shenzhi-config)#default-router 192.168.10.10 SwitchA(dhcp-shenzhi-config)#dns-server 192.168.10.1 SwitchA(dhcp-shenzhi-config)#netbios-name-server 192.168.10.2 SwitchA(dhcp-shenzhi-config)#lease 5 |
本文转自tiancong 51CTO博客,原文链接:http://blog.51cto.com/tiancong/656944