H3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)

HomeSupportSwitchesH3C S3600 Switch SeriesReference GuidesCommand ReferencesH3C S3600 Series Ethernet Switches Command Manual-Release 1510(V1.04)
27-Web Cache Redirection Command
Title Size Download
27-Web Cache Redirection Command 35 KB

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

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网