本文档介绍Nexus 9000平台上智能流量导向器(ITD)的配置和验证。
Cisco 建议您了解以下主题:
Nexus 9000
ITD
本文档中的信息基于以下软件和硬件版本:
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
请考虑此拓扑。从vlan 39中的主机发往www.google.com的流量通常会进入Nexus 9000并转发到vlan 800上的路由表中的下一跳。但是,客户希望能够在VLAN 39中传入的流量重定向到Web代理设备(40.40.40.2)之前最终转发给Internet服务提供商(ISP)。 此部署模式更常称为单臂部署模式。
F340.10.26-N9K-C9372PX-1# sh running-config services !Command: show running-config services !Time: Sat Feb 6 23:50:09 2016 version 7.0(3)I2(2a) feature itd itd device-group ITD_DEVICE_GROUP node ip 40.40.40.2 itd ITD_SERVICE device-group ITD_DEVICE_GROUP ingress interface Vlan39 no shut
使用本部分可确认配置能否正常运行。
F340.10.26-N9K-C9372PX-1# sh itd Name Probe LB Scheme Status Buckets -------------- ----- ---------- -------- ------- ITD_SERVICE N/A src-ip ACTIVE 1 Device Group VRF-Name -------------------------------------------------- ------------- ITD_DEVICE_GROUP Pool Interface Status Track_id ------------------------------ ------------ ------ --------- ITD_SERVICE_itd_pool Vlan39 UP - Node IP Config-State Weight Status Track_id Sla_id ------------------------- ------------ ------ ---------- --------- --------- 1 40.40.40.2 Active 1 OK None None Bucket List ----------------------------------------------------------------------- ITD_SERVICE_itd_bucket_1
注意:请参阅验证ITD配置:在使用此命令以查看ITD统计信息之前,必须使用itd statistics service_itd-name命令启用ITD统计。
F340.10.26-N9K-C9372PX-1# sh itd all statistics Service Device Group ----------------------------------------------------------- ITD_SERVICE ITD_DEVICE_GROUP 0% Traffic Bucket Assigned to Mode Original Node #Packets --------------- -------------- ----- -------------- --------- ITD_SERVICE_itd_bucket_1 40.40.40.2 Redirect 40.40.40.2 1215022221(100.00%)
注意:当在ITD服务下使用访问控制列表(ACL)时,此CLI不提供输出。使用ACL时,可以在系统生成的路由映射上启用pbr-statistics。
F340.10.26-N9K-C9372PX-1# sh run int vlan 39 !Command: show running-config interface Vlan39 !Time: Thu Feb 18 02:22:12 2016 version 7.0(3)I2(2a) interface Vlan39 no shutdown ip address 39.39.39.39/24 ip policy route-map ITD_SERVICE_itd_pool F340.10.26-N9K-C9372PX-1# sh route-map ITD_SERVICE_itd_pool route-map ITD_SERVICE_itd_pool, permit, sequence 10 Description: auto generated route-map for ITD service ITD_SERVICE Match clauses: ip address (access-lists): ITD_SERVICE_itd_bucket_1 Set clauses: ip next-hop 40.40.40.2 F340.10.26-N9K-C9372PX-1# sh ip access-lists ITD_SERVICE_itd_bucket_1 IP access list ITD_SERVICE_itd_bucket_1 10 permit ip 1.1.1.0 255.255.255.255 any
本部分提供了可用于对配置进行故障排除的信息。
F340.10.26-N9K-C9372PX-1# sh tech-support services detail | i "`show " `show feature | grep itd` `show itd` `show itd brief` `show itd statistics` `show itd statistics brief` `show running-config services` `show route-map` `show module` `show system internal iscm event-history debugs` `show system internal iscm event-history debugs detail` `show system internal iscm event-history events` `show system internal iscm event-history errors` `show system internal iscm event-history packets` `show system internal iscm event-history msgs` `show system internal iscm event-history all` `show port-channel summary` `show interface brief` `show accounting log`