Wireless Access Controller (AC and Fit AP) V200R010C00 CLI-based Configuration Guide
Configuring a Source Interface or Source Address
You need to specify a unique IP address, VLANIF interface, or loopback interface. In this manner, APs managed by an AC can learn the specified IP address or the IP address of the specified interface to set up a CAPWAP tunnel with the AC. This specified IP address or interface is called the source address or interface.
Use the IP address of the VLANIF interface or loopback interface as the source address.
- 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.
When Configuring VRRP HSB is configured, AC1 and AC2 form a VRRP group and function as a virtual AC for all the APs that connect to the two ACs. The virtual IP address of the VRRP group is the IP address of the virtual AC. The virtual IP address needs to be configured as the source address of the master AC so that all the APs can establish CAPWAP tunnels with the master AC based on the virtual IP address.
The CAPWAP tunnel supports IPv4 and IPv6, but cannot use them concurrently.
- Configure an IPv4 source interface or source address.
Specify a VLANIF 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 the capwap source interface vlanif vlan-id command to specify a VLANIF interface as the source interface or run the capwap source ip-address ip-address command to specify an IP address of the VLANIF interface as the source IP address.
If a source interface or a source IP address has been configured on the device, you must run the undo capwap source interface or undo capwap source ip-address command first before configuring a new source interface or a source IP address.
After the undo capwap source interface or undo capwap source ip-address command is executed, all APs get offline on the AC. Therefore, exercise caution before running the command.
Specify a loopback 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 the capwap source interface loopback loopback-number command to specify a loopback interface as the source interface or run the capwap source ip-address ip-address command to specify an IP address of the loopback interface as the source IP address.
If a source interface or a source IP address has been configured on the device, you must run the undo capwap source interface or undo capwap source ip-address command first before configuring a new source interface or a source IP address.
After the undo capwap source interface or undo capwap source ip-address command is executed, all APs get offline on the AC. Therefore, exercise caution before running the command.
Configure a virtual IP address as the source address.
Run system-view
The system view is displayed.
Run vlan vlan-id
A VLAN is created.
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 vrrp vrid virtual-router-id virtual-ip virtual-address
A VRRP group is created, and a virtual IP address is configured for the VRRP group.
VRRP groups cannot share virtual IP addresses. The virtual IP address of a VRRP group must be on the same network segment as the IP addresses of the interfaces where the VRRP group is configured.
Two devices in a VRRP group must be configured with the same virtual router ID (VRID).
Run quit
Return to the system view.
Run capwap source ip-address ip-address
A source IP address is configured for the AC.
If a source interface or a source IP address has been configured on the device, you must run the undo capwap source interface or undo capwap source ip-address command first before configuring a new source interface or a source IP address.
After the undo capwap source interface or undo capwap source ip-address 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 ipv6
IPv6 packet forwarding is enabled.
By default, IPv6 packet forwarding is disabled.
Run vlan vlan-id
A VLAN is created.
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 ipv6 enable
The IPv6 function is enabled on the interface.
By default, the IPv6 function is disabled on an interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
The IPv6 address and prefix length of the VLANIF interface are configured.
Run quit
Return to the system view.
Run capwap ipv6 enable
The IPv6 function of CAPWAP links is enabled.
Run the capwap source interface vlanif vlan-id command to specify a VLANIF interface 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 ipv6
IPv6 packet forwarding 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, the IPv6 function is disabled on an interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
The IPv6 address and prefix length of the loopback interface are configured.
Run quit
Return to the system view.
Run capwap ipv6 enable
The IPv6 function of CAPWAP links is enabled.
Run the capwap source interface loopback loopback-number command to specify a loopback interface 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.