发布时间:2023-07-07 13:30
1、AC配置,配置AC作为DHCP服务器为AP分配管理IP
[AC6605]dhcp enable//开启DHCP
[AC6605]vlan 100
[AC6605-vlan100]vlan 101
[AC6605-vlan100]int vlan 100
[AC6605-Vlanif100]ip add 172.16.100.1 24
[AC6605-Vlanif100]dhcp select interface //开启接口分配IP地址
[AC6605-GigabitEthernet0/0/1]port trunk allow-pass vlan 100 101
2、SW2配置VLAN101为终端分配IP地址
[SW2-Vlanif101]dhcp enable
[SW2]vlan 101
[SW2-vlan101]int vla 101
[SW2-Vlanif101]ip add 172.16.101.1 24
[SW2-Vlanif101]dhcp select interface
3、创建VLAN及Trunk
[SW1]vlan 100 batch 101
[SW1-vlan100]int g 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk pv