-
Bug
-
Resolution: Done
-
High
-
None
-
I have a VM2 with VPP running inside.
It connect to another VM1 with GigabitEthernet0/3/0, VM1 will ping loop BVI interface on VPP on VM1, but it(VM1) can't get ICMP reply.
```
#create bridge-domain 10200 learn 0 forward 1 uu-flood 1 arp-term 0 arp-ufwd 1
create bridge-domain 10200 learn 0 forward 1 uu-flood 1 arp-term 0
#set bridge-domain learn 10200
#show bridge-domainloopback create-interface mac 52:54:01:00:00:01 instance 10200
set interface l2 bridge loop10200 10200 bvi
ip table add 10200
set interface ip table loop10200 10200
set interface ip address loop10200 200.0.0.1/24
set interface state loop10200 up
```
```
create sub-interfaces GigabitEthernet0/3/0 200
set interface state GigabitEthernet0/3/0 up
set interface state GigabitEthernet0/3/0.200 up
set interface l2 tag-rewrite GigabitEthernet0/3/0.200 pop 1
set interface l2 bridge GigabitEthernet0/3/0.200 10200
```I have a VM2 with VPP running inside. It connect to another VM1 with GigabitEthernet0/3/0, VM1 will ping loop BVI interface on VPP on VM1, but it(VM1) can't get ICMP reply. ``` #create bridge-domain 10200 learn 0 forward 1 uu-flood 1 arp-term 0 arp-ufwd 1 create bridge-domain 10200 learn 0 forward 1 uu-flood 1 arp-term 0 #set bridge-domain learn 10200 #show bridge-domain loopback create-interface mac 52:54:01:00:00:01 instance 10200 set interface l2 bridge loop10200 10200 bvi ip table add 10200 set interface ip table loop10200 10200 set interface ip address loop10200 200.0.0.1/24 set interface state loop10200 up ``` ``` create sub-interfaces GigabitEthernet0/3/0 200 set interface state GigabitEthernet0/3/0 up set interface state GigabitEthernet0/3/0.200 up set interface l2 tag-rewrite GigabitEthernet0/3/0.200 pop 1 set interface l2 bridge GigabitEthernet0/3/0.200 10200 ```
When I am using route plugin(hicn-extra-plugin-19.04) with VPP, I saw a VLAN issue introduced by command "enable tap-inject", which provided by this plugin.
The issue is I can't ping the IP address of loop BVI interface of VPP on VM2 from another VM1 with vlan sub-interface.
If I redo the following testing without "enable tap-inject", the VM1 can ping 200.0.0.1 as expected.
I also verified this issue persistent even I did "disable tap-inject" after run into this issue.
The detail is below:
- I have a VM1 (with VLAN sub-interface) connected to another VM2 (with VPP running on it)
- Set IP address 200.0.0.2/24 on VLAN sub interface on VM1.
- I setup a bridge-domain with BVI loop interface and a VLAN sub-interface within VM2, as below:
vpp# show bridge-domain 100200 detail
BD-ID Index BSN Age(min) Learning U-Forwrd UU-Flood Flooding ARP-Term arp-ufwd BVI-Intf
100200 1 1 off on on flood on on off loop10200
Interface If-idx ISN SHG BVI TxFlood VLAN-Tag-Rewrite
loop10200 3 1 0 * * none
GigabitEthernet0/3/0.200 4 1 0 - * pop-1
IP4/IP6 to MAC table for ARP Termination
vpp# show interface addr
GigabitEthernet0/3/0 (up):
GigabitEthernet0/3/0.200 (up):
L2 bridge bd-id 100200 idx 1 shg 0
GigabitEthernet0/4/0 (up):
L3 20.0.0.1/30
local0 (dn):
loop10200 (up):
L2 bridge bd-id 100200 idx 1 shg 0 bvi
L3 200.0.0.1/24 ip4 table-id 100200 fib-idx 1
vpp#
- I try to ping 200.0.0.1 from VM1, but ping failed.
The follow statistic show there is rx packet on both VLAN sub-interface and BVI loop interface on VM2. But no tx packet on these ports.
vpp# show interface
Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count
GigabitEthernet0/3/0 1 up 9000/0/0/0 rx packets 453
rx bytes 21322
tx packets 14
tx bytes 1056
drops 16
ip6 15
tx-error 1
GigabitEthernet0/3/0.200 4 up 0/0/0/0 rx packets 438
rx bytes 20176
GigabitEthernet0/4/0 2 up 9000/0/0/0 rx packets 351685
rx bytes 28328240
tx packets 348757
tx bytes 26426330
drops 8314
ip4 342527
ip6 840
local0 0 down 0/0/0/0
loop10200 3 up 9000/0/0/0 rx packets 438
rx bytes 12292
drops 1
ip6 1
vpp#