Technical data

Add and Configure an AP with the CLI
© 2012 Meru Networks, Inc. Configuring Access Points 213
Configure a Layer 3 AP with the CLI
The following commands can be used to set up a Layer 3 configuration for an AP not
in the same subnet as the controller. It specifies the AP will obtain its IP address from
DHCP, which allows it to use a DNS server for obtaining its IP address. If the network
administrator has added to the DNS server the IP address for the controller hostname
“wlan-controller,” DNS can return the IP address of the controller with the hostname
“wlan-controller:”
default# configure terminal
default(config)# ap 1
default(config-ap)# connectivity l3-preferred
default(config-ap-connectivity)# ip address dhcp
default(config-ap-connectivity)# controller hostname wlan-controller
default(config-ap-connectivity)# end
default#
The following table presents the commands available within the ap-connectivity
mode.
Table 14: Summary of Connectivity Mode Commands
Command Purpose
controller {domainname
name|hostname name|ip
ip-address}
Configure the controller IP information.
The domainname name must be from 1 to 63 characters.
The hostname name must be from 1 to 63 characters.
The IP address must be in the format nnn.nnn.nnn.nnn or dhcp
to obtain the AP IP address dynamically.
hostname name
Sets the AP hostname. name must be from 1 to 63 characters.
ip address {ip-address|dhcp}
Configures the IP addressing for the AP.
Use ip-address to assign a static IP address to the AP.
Use dhcp to obtain the AP IP address dynamically.
ip default-gateway gateway
Adds an IP address of the default gateway in the format
nnn.nnn.nnn.nnn
ip dns-server {primary
ip-address|secondary
ip-address}
Adds a DNS server entry for static IP.
primary ip-address sets a primary DNS server for static IP.
secondary ip-address sets the secondary DNS server for
the static IP.