Creating the Captive Portal profile for external Web Authentication

The following steps configure the Captive Portal profile for external Web Authentication:

  1. Enter the configure terminal command to enter global configuration mode.
    device# configure terminal
    device(config)#
  2. Enter the captive-portal command to create a user-defined Captive Portal profile.
    device(config)# captive-portal cp_brocade
    device (config-cp-cp_brocade)#
    The Captive Portal command mode is enabled, where you can specify the external policy server details that enable the switch to handle HTTP redirection mechanism.
  3. Enter the virtual-ip command to configure the IP address of the external policy server as the virtual IP address.
    device (config-cp-cp_brocade)#  virtual-ip 10.21.240.42
  4. Enter the virtual-port command to configure the HTTP or HTTPS protocol port number to facilitate HTTP services for the clients in external Web Authentication.
    device (config-cp-cp_brocade)#  virtual-port 80
    By default, HTTPS is used and the default port number for HTTPS is 443. You can also specify HTTP mode and the default port number for HTTP is 80.
    The protocol configured in the Captive Portal profile must be the same as the protocol configured as part of web management access using the web-management command.
  5. Enter the login-page command to configure the login page details to redirect the client to the login page hosted on the external policy server.
    device (config-cp-cp_brocade)#  login-page brocadeguestlogin.php
    The login page details must be same as the login page hosted on the external policy server.
  6. (Optional) Enter the show captive-portal command to view the output of the configured Captive Portal profile.
    device(config)# show captive-portal cp_brocade
    Configured Captive Portal Profile Details :
      cp-name               :cp_brocade
      virtual-ip            :10.21.240.42
      virtual-port          :80
      login-page            :brocadeguestlogin.php