其他分享
首页 > 其他分享> > 三层组网AP上线-外接DHCP

三层组网AP上线-外接DHCP

作者:互联网

3-2 三层组网AP上线-外接DHCP

 

一、实验目标

在3-1的基础上增加DHCP的配置方法

 

二、实验拓扑

 

 

 

三、实验配置

  1. 三层交换机

 

sysname coreSwitch

 

vlan batch 100 to 102

 

dhcp enable

 

interface Vlanif1

 ip address 10.0.0.1 255.255.255.0

 

interface Vlanif100

 ip address 10.0.100.254 255.255.255.0

 

interface Vlanif101

 ip address 10.0.101.254 255.255.255.0

 dhcp select relay

 dhcp relay server-ip 10.0.0.254

 

interface Vlanif102

 ip address 10.0.102.254 255.255.255.0

 dhcp select relay

 dhcp relay server-ip 10.0.0.254

 

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 101

 

interface GigabitEthernet0/0/2

 port link-type access

 port default vlan 101

 

interface GigabitEthernet0/0/3

 port link-type access

 port default vlan 102

 

interface GigabitEthernet0/0/4

 port link-type access

 port default vlan 102

 

interface GigabitEthernet0/0/24

 port link-type access

 port default vlan 100

 

  1. 无线控制AC

 

interface Vlanif1

 ip address 10.0.100.1 255.255.255.0

 

ip route-static 0.0.0.0 0.0.0.0 10.0.100.254

 

capwap source interface vlanif 1

wlan

ap auth-mode no-auth

 

  1. DHCP服务器

 

dhcp enable

 

ip pool for101

 gateway-list 10.0.101.254

 network 10.0.101.0 mask 255.255.255.0

 dns-list 1.1.1.1

 option 43 sub-option 3 ascii 10.0.100.1

 

ip pool for102

 gateway-list 10.0.102.254

 network 10.0.102.0 mask 255.255.255.0

 dns-list 1.1.1.1

 option 43 sub-option 3 ascii 10.0.100.1

 

interface Vlanif1

 ip address 10.0.0.254 255.255.255.0

 dhcp select global

 

ip route-static 10.0.100.0 255.255.255.0 10.0.0.1

ip route-static 10.0.101.0 255.255.255.0 10.0.0.1

ip route-static 10.0.102.0 255.255.255.0 10.0.0.1

 

 

 

四、验证

  1. AC上检查ap的上线情况

dis ap all

 

 

标签:10.0,255.255,ip,AP,interface,DHCP,255.0,port,组网
来源: https://www.cnblogs.com/yuyu0227/p/15353262.html