S9700和ne80e建立vpls不通(Kompella方式)

发布时间:  2014-09-19 浏览次数:  242 下载次数:  0
问题描述
大致组网:pc1---(g10/0/20)s9700-----ne80e(g1/1/11)----pc2


1、S9700和ne80e建立vpls 2层vpn,vpn状态已经up了,但是两边的电脑ping不通
<SJC_S9712>display vsi 
Total VSI number is 1, 1 is up, 0 is down, 0 is LDP mode, 1 is BGP mode, 0 is AD mode, 0 is unspecified mode
--------------------------------------------------------------------------
Vsi                             Mem    PW   Mac       Encap     Mtu   Vsi    
Name                            Disc   Type Learn     Type      Value State  
--------------------------------------------------------------------------
shuanglin-cd-dianshitai         auto   bgp  unqualify vlan      1500  up 



<CD-SL-NE80E-1>display vsi name shuanglin-cd-dianshitai

Vsi                             Mem    PW   Mac       Encap     Mtu   Vsi    
Name                            Disc   Type Learn     Type      Value State  
--------------------------------------------------------------------------
shuanglin-cd-dianshitai         auto   bgp  unqualify vlan      1500  up  


2、两边的电脑的mac地址学习,感觉在s9700上学习有问题(两边的电脑都是192.168.1.0同一网段的)
<CD-SL-NE80E-1> dis mac-address dynamic 1 vsi shuanglin-cd-dianshitai
MAC address table of slot 1:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID 
               VSI/SI                                              MAC-Tunnel 
-------------------------------------------------------------------------------
e811-32c8-ab54 shuanglin-c -      -      GE1/1/11        dynamic   1/0        
               d-dianshita

-------------------------------------------------------------------------------
Total matching items on slot 1 displayed = 1

<CD-SL-NE80E-1>display mac-address dynamic 1 GigabitEthernet 1/1/11
MAC address table of slot 1:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID 
               VSI/SI                                              MAC-Tunnel 
-------------------------------------------------------------------------------
e811-32c8-ab54 shuanglin-c -      -      GE1/1/11        dynamic   1/0        
               d-dianshita

-------------------------------------------------------------------------------
Total matching items on slot 1 displayed = 1
// e811-32c8-ab54是ne80e这边接的电脑的mac地址,物理接口下和vsi里都可以学习到


<SJC_S9712>display mac-address GigabitEthernet10/0/20
-------------------------------------------------------------------------------
MAC Address    VLAN/VSI                          Learned-From        Type     
-------------------------------------------------------------------------------
dc0e-a174-7c86 16/-                              GE10/0/20           dynamic  

-------------------------------------------------------------------------------
Total items displayed = 1
// dc0e-a174-7c86 这是s9700本端电脑在直连物理接口下学习的mac地址

<SJC_S9712>dis mac-address vsi shuanglin-cd-dianshitai
-------------------------------------------------------------------------------
MAC Address    VLAN/VSI                          Learned-From        Type     
-------------------------------------------------------------------------------
e811-32c8-ab54 -/shuanglin-cd-dianshitai         XGE8/0/3            dynamic  

-------------------------------------------------------------------------------
Total items displayed = 1
//s9700这边的vsi里是可以学习到ne80e那边电脑的mac的,但是自己本端直连的电脑mac却学习不到,是不是s9700这边配置哪里还有问题?
告警信息
处理过程
改方式之后,可以了。 如下方法:
interface GigabitEthernet10/0/20
undo portswitch
l2 binding vsi shuanglin-cd-dianshitai


[SJC_S9712]dis mac-address vsi shuanglin-cd-dianshitai
-------------------------------------------------------------------------------
MAC Address    VLAN/VSI                          Learned-From        Type     
-------------------------------------------------------------------------------
dc0e-a174-7c86 -/shuanglin-cd-dianshitai         GE10/0/20           dynamic  
e811-32c8-ab54 -/shuanglin-cd-dianshitai         XGE8/0/3            dynamic  
根因
交换机的l2vpn,如果是vlanif口接入,要求从ce上来的报文必须带vlan,否则无法入vpls转发.目前97下挂pc,pc的报文是不带vlan的,无法入vpls转发,AC侧学不到ce的mac.

可以改为主接口接入,这样是可以允许报文不带vlan的.
解决方案
建议与总结

END