Configuring AC System Parameters
Configuring the WLAN Mode
Procedure
- Run system-view
The system view is displayed.
- Run set workmode wlan ac
The device is configured to work in AC mode.
By default, the AR121W-S, AR101W-S, AR101GW-Lc-S, AR151W-P-S, AR161W-S, and AR1220W-S work in AP mode and other devices work in AC mode.
- Run quit
Exit from the system view.
- Run reboot [ fast ]
The device is restarted.
After the device is restarted, the AC mode takes effect.
Configuring Country Codes
Context
A country code identifies the country to which AP radios belong. Different countries support different AP radio attributes, including the transmit power and supported channels. Correct country code configuration ensures that radio attributes of APs comply with laws and regulations of countries and regions to which the APs are delivered.
- If the APs managed by an AC are located in the same country or region, you only need to configure one country code.
- If the APs managed by an AC are located in different countries, you need to configure different country codes for the APs.
When configuring an AC for the first time, you must configure the correct country code. The country code must comply with local laws and regulations.
Procedure
- Run system-view
The system view is displayed.
- Run wlan ac
The WLAN view is displayed.
- Run regulatory-domain-profile name profile-name
A regulatory domain profile is created, and the regulatory domain profile view is displayed.
By default, the system provides the regulatory domain profile default.
- Run country-code country-code
A country code is configured.
By default, the country code CN is configured.
For details about country codes, see country-code.
Modifying the country code in a regulatory domain profile will restart APs using the profile.
- Run quit
Return to the WLAN view.
- Bind the regulatory domain profile to an AP group or AP.
- Binding the regulatory domain profile to an AP group
Run the ap-group name group-name command to enter the AP group view.
Run the regulatory-domain-profile profile-name command to bind the regulatory domain profile to the AP group.
By default, the regulatory domain profile default is bound to an AP group.
- Binding the regulatory domain profile to an AP
- Run the ap-id ap-id, ap-mac ap-mac, or ap-name ap-name command to enter the AP view.
Run the regulatory-domain-profile profile-name command to bind the regulatory domain profile to the AP specific profile.
By default, no regulatory domain profile is bound to an AP.
- Binding the regulatory domain profile to an AP group
- Run quit
Return to the WLAN view.
- Run commit { all | ap-name ap-name | ap-id { ap-id1 [ to ap-id2 ] } &<1-10> }
Configurations are delivered to APs.
Configuring a Source Interface
Context
Each AC must have at least one VLANIF or loopback interface specified as the source interface. All APs connected to the AC can learn the IP address of this interface and use the IP address to communicate with the AC.
Before an AP establishes a CAPWAP tunnel with an AC, a source interface must be specified for the AC.
- VLANIF interface: applies to the scenario where the APs that associate with the AC belong to the same management VLAN.
- Loopback interface: applies to the scenario where the APs that associate with the AC belong to different management VLANs. When the APs belong to multiple management VLANs, the AC must have multiple VLANIF interfaces configured. If one of the VLANIF interfaces is specified as the source interface, all the APs cannot go online when the source interface fails. A loopback interface remains Up after being created. When a loopback interface is used as the source interface and a VLANIF interface becomes faulty, only the AP that connects to the VLANIF interface cannot go online.
Procedure
- Configure an IPv4 source interface.
Specify a VLANIF interface as the source interface.
Run system-view
The system view is displayed.
Run vlan vlan-id
A VLAN is created, and the VLAN view is displayed.
The created VLAN is a management VLAN.
Run quit
Return to the system view.
Run interface vlanif vlan-id
A VLANIF interface is created, and the VLANIF interface view is displayed.
Run ip address ip-address { mask | mask-length }
An IP address and a subnet mask are configured for the VLANIF interface.
Run quit
Return to the system view.
Run capwap source interface vlanif vlan-id
A VLANIF interface is specified as the source interface of the CAPWAP tunnel established between the AP and AC.
If a source interface has been configured on the device, you must run the undo capwap source interface command first before configuring a new source interface.
After the undo capwap source interface command is executed, all APs get offline on the AC. Therefore, exercise caution before running the command.
Specify a loopback interface as the source interface.
Run system-view
The system view is displayed.
Run interface loopback loopback-number
A loopback interface is created, and the loopback interface view is displayed.
Run ip address ip-address { mask | mask-length }
An IP address and a subnet mask are configured for the loopback interface.
The IP address of a loopback interface must use a 32-bit mask.
Run quit
Return to the system view.
Run capwap source interface loopback loopback-number
A loopback interface is specified as the source interface of the CAPWAP tunnel established between the AP and AC.
If a source interface has been configured on the device, you must run the undo capwap source interface command first before configuring a new source interface.
After the undo capwap source interface command is executed, all APs get offline on the AC. Therefore, exercise caution before running the command.
- Configure an IPv6 source interface.
Specify a VLANIF interface as the source interface.
Run system-view
The system view is displayed.
Run capwap ipv6 enable
CAPWAP tunnels are enabled to support IPv6 functions.
By default, CAPWAP tunnels are disabled from supporting IPv6 functions.
Run ipv6
The IPv6 packet forwarding function is enabled.
By default, IPv6 packet forwarding is disabled.
Run vlan vlan-id
A VLAN is created, and the VLAN view is displayed.
This VLAN is the management VLAN after WLAN planning.
Run quit
Return to the system view.
Run interface vlanif vlan-id
A VLANIF interface is created, and the VLANIF interface view is displayed.
Run ipv6 enable
The IPv6 function is enabled on the interface.
By default, IPv6 is disabled on an interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
An IPv6 address and a subnet mask are configured for the VLANIF interface.
Run undo ipv6 nd ra halt
The system is enabled to send RA packets.
By default, the system is disabled from sending RA packets.
Run ipv6 nd autoconfig managed-address-flag
The "managed address configuration" flag (M flag) of stateful autoconfiguration in an RA packet is set.
By default, the M flag is not set in an RA packet.
Run ipv6 nd autoconfig other-flag
The "other configuration" flag (O) flag of stateful autoconfiguration in an RA packet is set.
By default, the O flag is not set in an RA packet.
Run dhcpv6 server pool-name [ allow-hint | preference preference-value | rapid-commit | unicast ] *
The DHCPv6 server function is enabled on the interface.
By default, the DHCPv6 server function on an interface is disabled.
Run quit
Return to the system view.
Run dhcpv6 pool pool-name
An IPv6 address pool is created, and the IPv6 address pool view is displayed.
By default, no IPv6 address pool is created on the device.
Run address prefix ipv6-prefix/ipv6-prefix-length [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]
A network prefix and lifetime in the IPv6 address pool view are configured.
By default, no network prefix or lifetime is configured in the IPv6 address pool view.
Run excluded-address start-ipv6-address [ to end-ipv6-address ]
The range of IPv6 addresses that cannot be automatically assigned from the IPv6 address pool is specified.
By default, all IPv6 addresses in an address pool can be automatically assigned to clients. If only one IPv6 address cannot be automatically allocated, specify it as start-ipv6-address.
Run capwap-ac ipv6-address
The AC's IPv6 address is configured in the IPv6 address pool view.
By default, the AC's IPv6 address is not configured in the IPv6 address pool view.
Run quit
Return to the system view.
Run capwap source interface vlanif vlan-id
A VLANIF interface is specified as the source interface of the CAPWAP tunnel established between the AP and AC.
If a source interface has been configured on the device, you must run the undo capwap source interface command first before configuring a new source interface.
After the undo capwap source interface command is executed, all APs get offline on the AC. Therefore, exercise caution before running the command.
Specify a loopback interface as the source interface.
Run system-view
The system view is displayed.
Run capwap ipv6 enable
CAPWAP tunnels are enabled to support IPv6 functions.
By default, CAPWAP tunnels are disabled from supporting IPv6 functions.
Run ipv6
The IPv6 packet forwarding function is enabled.
By default, IPv6 packet forwarding is disabled.
Run interface loopback loopback-number
A loopback interface is created, and the loopback interface view is displayed.
Run ipv6 enable
The IPv6 function is enabled on the interface.
By default, IPv6 is disabled on an interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
An IPv6 address and a subnet mask are configured for the loopback interface.
Run undo ipv6 nd ra halt
The system is enabled to send RA packets.
By default, the system is disabled from sending RA packets.
Run ipv6 nd autoconfig managed-address-flag
The "managed address configuration" flag (M flag) of stateful autoconfiguration in an RA packet is set.
By default, the M flag is not set in an RA packet.
Run ipv6 nd autoconfig other-flag
The O flag of stateful autoconfiguration in an RA packet is set.
By default, the O flag is not set in an RA packet.
Run dhcpv6 server pool-name [ allow-hint | preference preference-value | rapid-commit | unicast ] *
The DHCPv6 server function is enabled on the interface.
By default, the DHCPv6 server function on an interface is disabled.
Run quit
Return to the system view.
Run dhcpv6 pool pool-name
An IPv6 address pool is created, and the IPv6 address pool view is displayed.
By default, no IPv6 address pool is created on the device.
Run address prefix ipv6-prefix/ipv6-prefix-length [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]
A network prefix and lifetime in the IPv6 address pool view are configured.
By default, no network prefix or lifetime is configured in the IPv6 address pool view.
Run excluded-address start-ipv6-address [ to end-ipv6-address ]
The range of IPv6 addresses that cannot be automatically assigned from the IPv6 address pool is specified.
By default, all IPv6 addresses in an address pool can be automatically assigned to clients. If only one IPv6 address cannot be automatically allocated, specify it as start-ipv6-address.
Run capwap-ac ipv6-address
The AC's IPv6 address is configured in the IPv6 address pool view.
By default, the AC's IPv6 address is not configured in the IPv6 address pool view.
Run quit
Return to the system view.
Run capwap source interface loopback loopback-number
A loopback interface is specified as the source interface of the CAPWAP tunnel established between the AP and AC.
If a source interface has been configured on the device, you must run the undo capwap source interface command first before configuring a new source interface.
After the undo capwap source interface command is executed, all APs get offline on the AC. Therefore, exercise caution before running the command.
(Optional) Configuring a Network Element Name
Verifying the AC System Parameter Configuration
Procedure
- Run the display regulatory-domain-profile { all | name profile-name } command to check configuration information about a regulatory domain profile.
- Run the display references regulatory-domain-profile name profile-name command to check reference information about a regulatory domain profile.
- Run the display capwap configuration command to check the source interface of an AC.
- Run the display ac global configuration command to check global configurations of an AC, including the AC's NE name.