Captive Portal Redirection Example

In the following example:
  • Switch is configured to listen for web traffic on ports 80 and 8080.
  • Web-redirect index 1 enables server 1 with a redirection URL http://10.52.3.101:80/static/index.jsp.
  • Web-redirect index 1 enables server 2 with a redirection URL http://10.52.3.102:80/static/index.jsp.
  • Web-redirect index 1 is associated with policy profile 1.
#configure policy captive-portal listening 80,8080
#configure policy captive-portal web-redirect 1 server 1 url http:// 10.52.3.101:80/static/index.jsp enable
#configure policy captive-portal web-redirect 1 server 2 url http:// 10.52.3.102:80/static/index.jsp enable
#configure policy profile 1 web-redirect 1

#show policy captive-portal listening
Captive Portal Listening Ports: 80 8080

#show policy captive-portal web-redirect 1
Web-redirect Index: 1
Server Index: 1
Server Status: Enabled
Server URL: http://10.52.3.101:80/static/index.jsp
Server Index: 2
Server Status: Enabled
Server URL: http://10.52.3.102:80/static/index.jsp