Arahe Logo

 

 
>> 相关资源
 

Enabling WCCP on the Router

Step 1ip wccp enable

Enables the router to use WCCP.

Step 2ip wccp redirect-list [number | name] (Optional.)

Specifies the redirect access list. Only packets that match this access list are redirected. If you do not configure this command, all packets are redirected.

Note If you are using a redirect access list with dCEF on the Cisco 7500 Series, then you must use a numbered access list instead of a named access list.

Step 3interface type number

Enters interface configuration mode.

Step 4ip web-cache redirect

Configures the interface connected to the Internet to redirect web traffic to the Content Engine.

Step 5ip route-cache same-interface (Optional.) If the client and a Content Engine are located on the same network, configures the router to use the fast switching path on the interface.

Step 6end

Exits configuration mode.

Step 7copy running-config startup-config

Saves the configuration.

Web Cache Service with Clients and Content Engine on Same Subnet

Configuring the Content Engine for Web Cache Service—Clients and Content Engine on Same Subnet

Step 1contentengine(config)# wccp version 2

Ensures that Content Engine is running WCCP Version 2.

Step 2contentengine(config)# wccp router-list 1 10.10.10.1

Configures a router list.

Step 3contentengine(config)# wccp web-cache router-list-num 1

Informs the routers in the specified router list that the Content Engine is accepting web cache service.

Step 4contentengine(config)# exit

Exits global configuration mode.

Step 5contentengine# write memory

Writes running configurations to nonvolatile memory.

Configuring the Router for Web Cache Service—Clients and Content Engine on Same Subnet

Step 1router(config)# ip wccp web-cache

Instructs the router to run the web cache service.

Step 2router(config)# interface Ethernet0

Specifies which router interface to configure. In this scenario, Ethernet0 is the router interface to which the Content Engine and clients are connected.

Step 3router(config-if)# ip route-cache same-interface

Enables fast switching of redirected packets back through the interface on which they were received. Without this command, the router does not use the high-speed switching cache, and the packets are process-switched, a much slower method.

Step 4router(config)# interface Serial0

Specifies which router interface to configure. In this scenario, Serial0 is the router interface to the Internet.

Step 5router(config-if)# ip wccp web-cache redirect out

Instructs the router to redirect web cache traffic bound for the specified interface to Content Engines that accept web cache service. In this scenario there is only one router. Web cache traffic is defined as TCP port 80 traffic.

Step 6router(config-if)# exit

Exits global configuration mode.

Configuration Examples—Web Cache Service with Clients and Content Engine on the Same Subnet

Content Engine

hostname Content_engine_4.2

!

clock timezone pst -8 0

!

ip domain-name cu.net

!

interface FastEthernet 0

ip address 10.10.20.10 255.255.255.0

no autosense

bandwidth 100

full-duplex

exit

interface FastEthernet 1

shutdown

exit

!

ip default-gateway 10.10.20.1

!

ip name-server 10.10.10.100

!

!

!

wccp router-list 1 10.10.20.1

wccp web-cache router-list-num 1

wccp version 2

!

!

!

. . . 

WCCP-Enabled Router

Building configuration...

Current configuration:

!

version 12.0

!

hostname WCCP-Router

!

!

ip wccp web-cache         

!

interface Ethernet0

 ip address 10.10.10.1 255.255.255.0

 ip route-cache same-interface

!

interface Serial0

ip address 192.168.1.2 255.255.255.252

no ip directed-broadcast

no ip mroute-cache

ip wccp web-cache redirect out

 !

end

Web Cache Service Configuration with Clients and Content Engine on Different Subnets

Step 1contentengine(config)# wccp version 2

Ensures that the Content Engine is running WCCP Version 2.

Step 2contentengine(config)# wccp router-list 1 10.10.20.1

Configures a router list.

Step 3contentengine(config)# wccp web-cache router-list-num 1

Informs the routers in the specified router list that the Content Engine is accepting web cache service.

Step 4contentengine(config)# exit

Exits global configuration mode.

Step 5contentengine# write memory

Writes running configurations to nonvolatile memory.

Configuring the Router for Web Cache Service—Clients and Content Engine on Different Subnets

Step 1router(config)# ip wccp web-cache

Instructs the router to run the web cache service.

Step 2router(config)# interface Serial0

Specifies which router interface to configure. In this scenario, Serial0 is the router interface to the Internet.

Step 3router(config-if)# ip wccp web-cache redirect out

Instructs the router to redirect web cache traffic bound for the specified interface to Content Engines that accept web cache service. In this scenario there is only one router. Web cache traffic is defined as HTTP packets on port 80.

Step 4router(config-if)# exit

Exits global configuration mode

Content Engine Configuration

. . .

hostname Content_engine_4.2

!

clock timezone pst -8 0

!

ip domain-name cisco.com

!

exec-timeout 20

!

interface FastEthernet 0

ip address 10.10.20.10 255.255.255.0

no autosense

bandwidth 100

full-duplex

exit

interface FastEthernet 1

shutdown

exit

!

ip default-gateway 10.10.20.1

!

ip name-server 10.10.10.100

!

!

wccp router-list 1 10.10.20.1

wccp web-cache router-list-num 1

wccp version 2

!

!

!

...

WCCP-Enabled Router Configuration

Building configuration...

 

Current configuration:

!

hostname WCCP-Router

!

!

ip subnet-zero

!

ip wccp web-cache         

!

interface Ethernet0

 ip address 10.10.10.1 255.255.255.0

!

interface Ethernet1

 ip address 10.10.20.1 255.255.255.0

!

interface Serial0

 ip address 192.168.1.2 255.255.255.252

 no ip directed-broadcast

 no ip mroute-cache

ip wccp web-cache redirect out

 !

end

Step 1router(config)# ip wccp web-cache

Instructs the router to run the web cache service.

Step 2router(config)# interface Ethernet0

Specifies which router interface to configure. In this scenario, Ethernet0 is the router interface to which the Content Engine and clients are connected.

Step 3router(config-if)# ip route-cache same-interface

Enables fast switching of redirected packets back through the interface on which they were received. Without this command, the router does not use the high-speed switching cache, and the packets are process-switched, a much slower method.

Step 4router(config)# interface Serial0

Specifies which router interface to configure. In this scenario, Serial0 is the router interface to the Internet.

Step 5router(config-if)# ip wccp web-cache redirect out

Instructs the router to redirect web cache traffic bound for the specified interface to Content Engines that accept web cache service. In this scenario there is only one router. Web cache traffic is defined as TCP port 80 traffic.

Step 6router(config-if)# exit

Exits global configuration mode.

 

Copyright @ 2002,2003 Arahe Systems Sdn Bhd. All rights reserved.