在交换机上为不同的VLAN指定DHCP服务器地址
这一步骤只须在不同的VLAN中通过设置IP HELPER-ADDRESS即可搞定,指令如下:
switch>enable (进入交换机的特权模式)
Password
switch #config t (进入配置模式)
Enter configuration commandsone per line. End with CNTL/Z.
switch config#interface vlan1 (配置VLAN1)
switch config-if#ip helper-address 192.168.1.4(指定DHCP服务器的地址,即路由器的地址)
ghqconfig-if#interface vlan2 (配置VLAN2)
ghqconfig-if#ip helper-address 192.168.1.4