Hi guys,
I have tested L2VPN on two VPP,and the L2VPN works well. But I can't get the effective configuration on 3 vpp. The following is all my configuration not effective. Is there anything error in my configuration ? How can I get the effective configuration? VPP1 - VPP2 - VPP3 VPP1: create host-interface name eth4 mac 00:0c:29:4d:af:b5 create host-interface name eth2 mac 00:0c:29:4d:af:a1 set interface state host-eth2 up set interface state host-eth4 up set interface ip address host-eth2 14.1.1.1/24 mpls table add 0 set interface mpls host-eth2 enable create mpls tunnel out-label 33 out-label 53 via 14.1.1.2 host-eth2 l2-only set interface state mpls-tunnel0 up create bridge-domain 1 set interface l2 bridge mpls-tunnel0 1 set interface l2 bridge host-eth4 1 mpls local-label add non-eos 1023 mpls-lookup-in-table 0 mpls local-label add eos 1053 l2-input-on mpls-tunnel0 set interface mpls host-eth4 enable VPP3:(packets didn't arrive) create host-interface name eth3 mac 00:0c:29:19:8e:76 create host-interface name eth5 mac 00:0c:29:19:8e:8a set interface state host-eth3 up set interface state host-eth5 up set interface ip address host-eth3 12.1.1.2/24 VPP2: (only modify the configuration on VPP2) 1. create host-interface name eth2 mac 00:0c:29:0f:e2:a8 create host-interface name eth3 mac 00:0c:29:0f:e2:b2 set interface state host-eth2 up set interface state host-eth3 up set interface ip address host-eth3 12.1.1.1/24 set interface mpls host-eth2 enable set interface mpls host-eth3 enable set interface ip address host-eth2 14.1.1.2/24 mpls table add 0 mpls local-label add non-eos 33 mpls-lookup-in-table 0 ====decap the out-label create mpls tunnel out-label 60 via 12.1.1.2 host-eth3 ====== exchange the out-label to 60 set interface state mpls-tunnel0 up set interface mpls mpls-tunnel0 enable the trace info on VPP2,(there is no icmp message between VPP2 to VPP3): 00:21:58:149609: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x20000001 len 100 snaplen 100 mac 66 net 80 sec 0x5a1d04e8 nsec 0xac3650b vlan 0 00:21:58:149643: ethernet-input MPLS: 00:0c:29:4d:af:a1 -> 00:0c:29:0f:e2:a8 00:21:58:149743: mpls-input MPLS: next mpls-lookup[1] label 33 ttl 255 00:21:58:149753: mpls-lookup MPLS: next [6], lookup fib index 0, LB index 25 hash 0 label 33 eos 0 00:21:58:149761: lookup-mpls-dst fib-index:0 hdr:[53:255:0:eos] load-balance:18 00:21:58:149778: error-drop mpls-input: MPLS DROP DPO 2.modify the configuration: create host-interface name eth2 mac 00:0c:29:0f:e2:a8 create host-interface name eth3 mac 00:0c:29:0f:e2:b2 set interface state host-eth2 up set interface state host-eth3 up set interface ip address host-eth3 12.1.1.1/24 set interface mpls host-eth2 enable set interface mpls host-eth3 enable set interface ip address host-eth2 14.1.1.2/24 mpls table add 0 mpls local-label add non-eos 33 mpls-lookup-in-table 0 create mpls tunnel out-label 60 via 12.1.1.2 host-eth3 l2-only set interface state mpls-tunnel0 up set interface mpls mpls-tunnel0 enable the trace info on VPP2,(there is no icmp message between VPP2 to VPP3): 00:03:47:172693: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x20000001 len 100 snaplen 100 mac 66 net 80 sec 0x5a1d068e nsec 0x2e14a970 vlan 0 00:03:47:172722: ethernet-input MPLS: 00:0c:29:4d:af:a1 -> 00:0c:29:0f:e2:a8 00:03:47:172741: mpls-input MPLS: next mpls-lookup[1] label 33 ttl 255 00:03:47:172748: mpls-lookup MPLS: next [6], lookup fib index 0, LB index 24 hash 0 label 33 eos 0 00:03:47:172755: lookup-mpls-dst fib-index:0 hdr:[53:255:0:eos] load-balance:17 00:03:47:172763: error-drop mpls-input: MPLS DROP DPO 3.decap two layer label, and encap two layer label; create host-interface name eth2 mac 00:0c:29:0f:e2:a8 create host-interface name eth3 mac 00:0c:29:0f:e2:b2 set interface state host-eth2 up set interface state host-eth3 up set interface ip address host-eth3 12.1.1.1/24 set interface mpls host-eth2 enable set interface mpls host-eth3 enable set interface ip address host-eth2 14.1.1.2/24 mpls table add 0 mpls local-label add non-eos 33 mpls-lookup-in-table 0 create mpls tunnel out-label 60 out-label 53 via 12.1.1.2 set interface state mpls-tunnel0 up set interface mpls mpls-tunnel0 enable mpls local-label add eos 53 l2-input-on mpls-tunnel0 the trace info on VPP2,(there is no icmp message between VPP2 to VPP3): 00:01:52:770255: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x20000001 len 100 snaplen 100 mac 66 net 80 sec 0x5a1d0814 nsec 0x9cf10d8 vlan 0 00:01:52:770282: ethernet-input MPLS: 00:0c:29:4d:af:a1 -> 00:0c:29:0f:e2:a8 00:01:52:770328: mpls-input MPLS: next mpls-lookup[1] label 33 ttl 255 00:01:52:770335: mpls-lookup MPLS: next [6], lookup fib index 0, LB index 24 hash 0 label 33 eos 0 00:01:52:770342: lookup-mpls-dst fib-index:0 hdr:[53:255:0:eos] load-balance:26 00:01:52:770348: interface-rx-dpo-l2 sw_if_index:3 00:01:52:770353: l2-input l2-input: sw_if_index 3 dst 00:0c:29:19:8e:8a src 00:00:00:00:00:33 00:01:52:770358: feature-bitmap-drop feat_bitmap_drop: feature bitmap 0x00000000 00:01:52:770360: error-drop feature-bitmap-drop: L2 feature not implemented 4.modify the configuration: create host-interface name eth2 mac 00:0c:29:0f:e2:a8 create host-interface name eth3 mac 00:0c:29:0f:e2:b2 set interface state host-eth2 up set interface state host-eth3 up set interface ip address host-eth3 12.1.1.1/24 set interface mpls host-eth2 enable set interface mpls host-eth3 enable set interface ip address host-eth2 14.1.1.2/24 mpls table add 0 mpls local-label add non-eos 33 mpls-lookup-in-table 0 create mpls tunnel out-label 60 out-label 53 via 12.1.1.2 l2-only set interface state mpls-tunnel0 up set interface mpls mpls-tunnel0 enable mpls local-label add eos 53 l2-input-on mpls-tunnel0 the trace info on VPP2,(there is no icmp message between VPP2 to VPP3): 00:01:01:140835: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x20000001 len 100 snaplen 100 mac 66 net 80 sec 0x5a1d08de nsec 0x3924f6bf vlan 0 00:01:01:140860: ethernet-input MPLS: 00:0c:29:4d:af:a1 -> 00:0c:29:0f:e2:a8 00:01:01:140885: mpls-input MPLS: next mpls-lookup[1] label 33 ttl 255 00:01:01:140892: mpls-lookup MPLS: next [6], lookup fib index 0, LB index 24 hash 0 label 33 eos 0 00:01:01:140898: lookup-mpls-dst fib-index:0 hdr:[53:255:0:eos] load-balance:28 00:01:01:140903: interface-rx-dpo-l2 sw_if_index:3 00:01:01:140907: l2-input l2-input: sw_if_index 3 dst 00:0c:29:19:8e:8a src 00:00:00:00:00:33 00:01:01:140916: feature-bitmap-drop feat_bitmap_drop: feature bitmap 0x00000000 00:01:01:140918: error-drop feature-bitmap-drop: L2 feature not implemented 5.modify the configuration (exchange only one label) create host-interface name eth2 mac 00:0c:29:0f:e2:a8 create host-interface name eth3 mac 00:0c:29:0f:e2:b2 set interface state host-eth2 up set interface state host-eth3 up set interface ip address host-eth3 12.1.1.1/24 set interface mpls host-eth2 enable set interface mpls host-eth3 enable set interface ip address host-eth2 14.1.1.2/24 mpls table add 0 mpls local-label add non-eos 33 mpls-lookup-in-table 0 create mpls tunnel out-label 60 via 12.1.1.2 l2-only set interface state mpls-tunnel0 up set interface mpls mpls-tunnel0 enable create bridge-domain 1 set interface l2 bridge mpls-tunnel0 1 the trace info on VPP2,(there is no icmp message between VPP2 to VPP3): 00:01:33:667481: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x20000001 len 100 snaplen 100 mac 66 net 80 sec 0x5a1d0a8e nsec 0x822e583 vlan 0 00:01:33:667507: ethernet-input MPLS: 00:0c:29:4d:af:a1 -> 00:0c:29:0f:e2:a8 00:01:33:667535: mpls-input MPLS: next mpls-lookup[1] label 33 ttl 255 00:01:33:667541: mpls-lookup MPLS: next [6], lookup fib index 0, LB index 24 hash 0 label 33 eos 0 00:01:33:667549: lookup-mpls-dst fib-index:0 hdr:[53:255:0:eos] load-balance:17 00:01:33:667556: error-drop mpls-input: MPLS DROP DPO 6.modify the configuration (not very reasonable ,just have a try) create host-interface name eth2 mac 00:0c:29:0f:e2:a8 create host-interface name eth3 mac 00:0c:29:0f:e2:b2 set interface state host-eth2 up set interface state host-eth3 up set interface ip address host-eth3 12.1.1.1/24 set interface mpls host-eth2 enable set interface mpls host-eth3 enable set interface ip address host-eth2 14.1.1.2/24 mpls table add 0 mpls local-label add non-eos 33 mpls-lookup-in-table 0 create mpls tunnel out-label 60 out-label 53 via 12.1.1.2 l2-only set interface state mpls-tunnel0 up set interface mpls mpls-tunnel0 enable mpls local-label add eos 53 l2-input-on mpls-tunnel0 create bridge-domain 1 set interface l2 bridge mpls-tunnel0 1 the trace info on VPP2,(there is no icmp message between VPP2 to VPP3): 00:05:16:348639: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x20000001 len 100 snaplen 100 mac 66 net 80 sec 0x5a1d09dd nsec 0x38c41da4 vlan 0 00:05:16:348667: ethernet-input MPLS: 00:0c:29:4d:af:a1 -> 00:0c:29:0f:e2:a8 00:05:16:348705: mpls-input MPLS: next mpls-lookup[1] label 33 ttl 255 00:05:16:348712: mpls-lookup MPLS: next [6], lookup fib index 0, LB index 24 hash 0 label 33 eos 0 00:05:16:348718: lookup-mpls-dst fib-index:0 hdr:[53:255:0:eos] load-balance:28 00:05:16:348726: interface-rx-dpo-l2 sw_if_index:3 00:05:16:348730: l2-input l2-input: sw_if_index 3 dst 00:0c:29:19:8e:8a src 00:00:00:00:00:33 00:05:16:348736: l2-learn l2-learn: sw_if_index 3 dst 00:0c:29:19:8e:8a src 00:00:00:00:00:33 bd_index 1 00:05:16:348741: l2-fwd l2-fwd: sw_if_index 3 dst 00:0c:29:19:8e:8a src 00:00:00:00:00:33 bd_index 1 00:05:16:348745: l2-flood l2-flood: sw_if_index 3 dst 00:0c:29:19:8e:8a src 00:00:00:00:00:33 bd_index 1 00:05:16:348749: error-drop l2-flood: L2 replication complete Thanks, xyxue
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev