取消
显示结果 
搜索替代 
您的意思是: 
cancel
3934
查看次数
0
有帮助
2
回复

Vxlan环境下evpn中的rt为何设置为auto?

Netdou
Level 1
Level 1
如题,当leaf、spine同为一个as时,leaf1的rt设置为auto,leaf2的rt也设置为auto,那么是怎么实现leaf1的export和leaf2的import一致的?依靠as号?vrf name?很疑惑,请大神们指教一下
2 条回复2

Dawei
Cisco Employee
Cisco Employee
The auto-derived Route-Target (route-target import/export/both auto) is based on the Type 0 encoding format as described in IETF RFC 4364 section 4.2 (https://tools.ietf.org/html/rfc4364#section-4.2). IETF RFC 4364 section 4.2 describes the Route Distinguisher format and IETF RFC 4364 section 4.3.1 refers that it is desirable to use a similar format for the Route-Targets. The Type 0 encoding allows a 2-byte administrative field and a 4-byte numbering field. Within Cisco NX-OS, the auto derived Route-Target is constructed with the Autonomous System Number (ASN) as the 2-byte administrative field and the Service Identifier (VNI) for the 4-byte numbering field.
Examples of an auto derived Route-Target (RT):
IP-VRF within ASN 65001 and L3VNI 50001 - Route-Target 65001:50001
MAC-VRF within ASN 65001 and L2VNI 30001 - Route-Target 65001:30001
For Multi-AS environments, the Route-Targets must either be statically defined or rewritten to match the ASN portion of the Route-Targets.
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/command_references/configuration_commands/b_N9K_Config_Commands_703i7x/b_N9K_Config_Commands_703i7x_chapter_010010.html#wp4498893710

zhanghy
Level 1
Level 1
RT/RD值设置为auto 后 系统默认调用AS:VNI作为RT/RD值 按照此参数再去读配置,就可以理解evpn路由的学习过程
快捷链接