问题:
需要WCCP路由器配置示例
环境:
以下是将WCCP与思科网络安全设备(WSA)配合使用的思科路由器配置示例
注意:有关WCCP和配置的更多信息,请参阅以下此处的思科支持文章。
添加以下命令以在思科路由器上启用WCCP协议。
ip wccp web-cache redirect-list 120 password anything
access-list 120 permit ip host 192.168.112.14 any
- “redirect-list”选项指定访问列表以过滤哪些流量将被重定向到WCCP Web缓存设备。
- “password”命令是可选的。如果已添加,请确保它与WSA上配置的WCCP密码匹配。
此配置会将WCCP配置为使用“Web-cache”服务ID运行,并且由于所有ACL末尾的隐式拒绝,因此只会重定向192.168.112.14。
注意:确保WSA上配置的路由器IP地址是思科路由器的主IP地址(路由器ID)。
WSA上的代理日志或WCCP日志每10秒将显示以下事务:
INFO : prox::INFO: wccp2_here_i_am sent to router 10.8.86.254 ― 1 replie(s)pending...
信息:prox::INFO: Wccp2_i_see_you received from 10.8.86.254 156 bytes..
以下是Cisco路由器上debug和show命令的示例输出(具体数据因配置而异):
Router# debug ip wccp packets
WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.4 w/rcvd_id 00003532
WCCP-PKT: Sending I_See_You packet to 192.168.25.4 w/ rcvd_id 00003534
Router# debug ip wccp events
WCCP-EVNT: Built I_See_You msg body w/1 usable web caches, change # 0000000A
WCCP-EVNT: Web Cache 192.168.25.3 added
WCCP-EVNT: Built I_See_You msg body w/2 usable web caches, change # 0000000B
Router# show ip wccp web-cache detail
WCCP Cache-Engine information:
IP Address: 10.1.1.2
Protocol Version: 2.0
State: Usable
Initial Hash Info: 0000000000000000000000000000000000000000000000000000000000000000
Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Hash Allotment: 256 (100.00%)
Packets Redirected: 40807
Connect Time: 11:05:17
Router# show ip wccp web-cache view
WCCP Routers Informed of: 10.1.1.1
WCCP Cache Engines Visible: 10.1.1.2
WCCP Cache Engines NOT Visible: -none-