基础配置:进sw1 开启DHCP
vlan batch 50 101 to 102 创建相关vlan
interface Vlanif50 配置vlan50 的接口
ip address 192.168.50.2 255.255.255.0
#
interface Vlanif101
ip address 192.168.101.1 255.255.255.0
dhcp select relay在接口下开启DHCP 中继指向ac
dhcp relay server-ip 192.168.50.1
#
interface Vlanif102
ip address 192.168.102.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.50.1
与路由相连接口打acss ap接口的交换机打pvid 管理
interface GigabitEthernet0/0/1
port link-type access
port default vlan 50
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk pvid vlan 50
port trunk allow-pass vlan 50 101
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk pvid vlan 50
port trunk allow-pass vlan 50 102
写一个下一跳的缺省
ip route-static 0.0.0.0 0.0.0.0 192.168.50.1
DHCP路由服务器
Vlan b 50 101 102 100 都要创建实现透传
ip pool vlan50(管理)
gateway-list 192.168.50.1
network 192.168.50.0 mask 255.255.255.0
option 43 sub-option 2 ip-address 192.168.100.2
#
ip pool vlan102(业务下发)
gateway-list 192.168.102.1
network 192.168.102.0 mask 255.255.255.0
dns-list 8.8.8.8
#
ip