- Table of Contents
-
- H3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)
- 00-1Cover
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-IP Address and Performance Configuration Command
- 06-Management VLAN Command
- 07-Voice VLAN Command
- 08-GVRP Command
- 09-Port Basic Configuration Command
- 10-Link Aggregation Command
- 11-Port Isolation Command
- 12-Port Security-Port Binding Command
- 13-DLDP Command
- 14-MAC Address Table Command
- 15-Auto Detect Command
- 16-MSTP Command
- 17-Routing Protocol Command
- 18-Multicast Command
- 19-802.1x Command
- 20-AAA-RADIUS-HWTACACS-EAD Command
- 21-VRRP Command
- 22-Centralized MAC Address Authentication Command
- 23-ARP Command
- 24-DHCP Command
- 25-ACL Command
- 26-QoS-QoS Profile Command
- 27-Web Cache Redirection Command
- 28-Mirroring Command
- 29-IRF Fabric Command
- 30-Cluster Command
- 31-PoE-PoE Profile Command
- 32-UDP Helper Command
- 33-SNMP-RMON Command
- 34-NTP Command
- 35-SSH Terminal Service Command
- 36-File System Management Command
- 37-FTP and TFTP Command
- 38-Information Center Command
- 39-System Maintenance and Debugging Command
- 40-VLAN-VPN Command
- 41-HWPing Command
- 42-DNS Command
- 43-Access Management Command
- 44-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
27-Web Cache Redirection Command | 35 KB |
Table of Contents
Chapter 1 Web Cache Redirection Configuration Commands
1.1 Web Cache Redirection Configuration Commands
Chapter 1 Web Cache Redirection Configuration Commands
& Note:
The S3600-SI series switches do not support Web cache redirection.
1.1 Web Cache Redirection Configuration Commands
1.1.1 display webcache
Syntax
display webcache
View
Any view
Parameter
None
Description
Use the display webcache command to view Web cache redirection configuration and check whether or not the Web cache is accessible.
Example
# Display Web cache redirection configuration and check whether or not the Web cache is accessible.
[H3C] display webcache
webcache IP address: 1.1.1.1
webcache MAC address: 000f-e20f-0000
webcache port: Ethernet1/0/1
webcache VLAN: 1
webcache TCP port: 80
webcache redirect VLAN:
VLAN 2 Valid
webcache statue: accessible
1.1.2 webcache address
Syntax
In system view:
webcache address ip-address mac mac-address vlan vlan-id port interface-type interface-number [ tcpport tcpport-number ]
undo webcache all
In Ethernet port view:
webcache address ip-address mac mac-address vlan vlan-id [ tcpport tcpport-number ]
View
System view, Ethernet port view
Parameter
ip-address: IP address to be assigned to the Web cache.
mac-address: MAC address to be assigned to the Web cache.
vlan-id: ID of the VLAN where Web cache is located.
port interface-type interface-number: Specifies the port through which the switch is connected to the Web cache.
tcpport tcpport-number: Number of the TCP port used by HTTP packets. The default is 80.
Description
Use the webcache address command to enable Web Cache redirection on switch and configure the related parameters. The Web cache parameters include: IP address, MAC address, VLAN ID, the port connecting the switch to Web cache, TCP port number in HTTP packets.
Use the undo webcache all command to remove all Web cache redirection configurations on the switch.
You can configure the parameters of Web Cache in system view or Ethernet port view.
& Note:
l If the configured Web cache is inaccessible, Web cache redirection cannot be enabled.
l A switch supports only one Web cache. If you configure a new Web cache, the new configuration will replace the old one.
l If the VLAN where Web cache is located does not have the corresponding VLAN interface on the switch, the configuration will be failed.
l If the VLAN interface is not up, Web Cache redirection will be failed.
Example
# Enable Web cache redirection on the switch in system view, configuring the Web cache with the following parameters: IP address to be 1.1.1.1, MAC address to be 000f-e20f-0101, VLAN ID to be 40, the port through which the switch is connected to the Web cache to be Ethernet 1/0/4, and the default TCP port number used by HTTP packets to be 80.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] webcache address 1.1.1.1 mac 000f-e20f-0101 vlan 40 port Ethernet 1/0/4
# Enable Web cache redirection on switch in Ethernet port view, configuring web cache with the following parameters: IP address to be 1.1.1.1, MAC address to be 000f-e20f-0101, VLAN ID to be 40, the port through which the switch is connected to the Web cache to be Ethernet 1/0/4, and the default TCP port number used by HTTP packets to be 80.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 1/0/4
[H3C-Ethernet1/0/4] webcache address 1.1.1.1 mac 000f-e20f-0101 vlan 40
1.1.3 webcache redirect-vlan
Syntax
webcache redirect-vlan vlan-id
undo webcache redirect-vlan [ vlan-id ]
View
System view
Parameter
vlan-id: ID of the VLAN whose traffic is to be redirected.
Description
Use the webcache redirect-vlan command to specify a VLAN whose HTTP traffic is to be redirected.
Use the undo webcache redirect-vlan command to remove the VLAN whose HTTP traffic is being redirected.
By default, the HTTP traffic of the users in all VLANs is not redirected to the Web cache.
If you do not specify the vlan-id argument when executing the undo webcache redirect-vlan command, Web cache redirection for all the VLANs is disabled.
& Note:
This configuration will not take effect unless the VLAN interfaces corresponding to the VLAN IDs exist.
If the VLAN interface is not up, Web cache redirection will be failed.
Example
# Redirect the HTTP traffic of VLAN 40 to the Web cache.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] webcache redirect-vlan 40