目录
一、实验拓扑图
实验拓扑图的DHCP服务器和AC都是旁挂式
二、配置步骤
1、 DHCP R1 配置
[R1]dhcp en
[R1]ip pool vlan100 #创建vlan100的地址池
[R1-ip-pool-vlan100]network 192.168.100.0 mask 24
[R1-ip-pool-vlan100]gateway-list 192.168.100.254
[R1-ip-pool-vlan100]dns-list 114.114.114.114
[R1-ip-pool-vlan100]lease day 3
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.200.1
[R1-GigabitEthernet0/0/0]dhcp select global
[R1]ip route-static 0.0.0.0 0 192.168.200.2 # 配置默认路由
[R1]ip pool vlan100
[R1-ip-pool-vlan100]option 43 sub-option 3 ascii 192.168.210.1
# 告诉该地址池中的设备对应的ac的ip地址为 192.168.210.1
2、LSW1配置
[SW1]dhcp en
[SW1]vlan batch 100 200 210
[SW1]int vlan 200
[SW1-Vlanif200]ip add 192.168.200.2 24
[SW1-Vlanif200]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type ac