Thanks John. That actually helped.
Now I can have multiple unique ‘sub-interface:BD:BVI:VRF’s on a single physical 
interface.

Regards,
Leela sankar

From: "John Lo (loj)" <l...@cisco.com>
Date: Thursday, March 22, 2018 at 2:22 PM
To: Leela Gudimetla <lgudi...@ciena.com>, "vpp-dev@lists.fd.io" 
<vpp-dev@lists.fd.io>
Subject: RE: [**EXTERNAL**] RE: [vpp-dev] Is IRB feature fully functional?

I read your original email as adding a sub-interface on loopback into BD as 
BVI. I see now you are using loop0 main interface as BVI for BD 5 while adding 
a sub-interface GigabitEthernet5/0/0.50 in BD 5.

In this situation, it does not work because packets from sub-interface will 
send packets with VLAN 50 into BD 5 while BVI is not expecting packets with any 
VLAN tag.  If you add a config to pop the VLAN tag from 
GigabitEthernet5/0/0.50, it should allow the packet to be handled by BVI 
properly:

set interface l2 tag-rewrite GigabitEthernet5/0/0.50 pop 1

Regards,
John

From: Gudimetla, Leela Sankar <lgudi...@ciena.com>
Sent: Thursday, March 22, 2018 4:46 PM
To: John Lo (loj) <l...@cisco.com>; vpp-dev@lists.fd.io
Subject: Re: [**EXTERNAL**] RE: [vpp-dev] Is IRB feature fully functional?

Thanks John for quick response.
Yes. I placed sub-interface in the BD that the BVI is associated. My intention 
is to keep L2 functionality (vlan edits, etc) intact and add L3 to it.
So this is what I am doing.


vpp# loopback create-interface

loop0

vpp# set interface state loop0 up

vpp# set interface mac address loop0 0000.0b51.0001

vpp# set interface l2 bridge loop0 5 bvi

vpp# set interface ip table loop0 0

vpp# set interface l2 learn loop0 disable

vpp# set interface ip address loop0 10.10.10.44/24

vpp#

vpp#

vpp#

vpp# create sub-interfaces GigabitEthernet5/0/0 50

GigabitEthernet5/0/0.50

vpp# set interface state GigabitEthernet5/0/0.50 up

vpp# set interface l2 bridge GigabitEthernet5/0/0.50 5

vpp#


I have similar configuration on the other box with the ip address configured on 
the bvi in the same sub-net.
But the ping does not go through saying the below reason.



vpp# show errors

   Count                    Node                  Reason

         5                arp-input               Interface is not IP enabled

vpp#


I think the IP address is to be configured on the loop-back interface (as it is 
the bvi that connects the bridging domain and routing domain) and not on the 
sub-interface ‘GigabitEthernet5/0/0.50’.
The APR REQs are getting received on the physical interface 
‘GigabitEthernet5/0/0 and getting dropped on sub-interface.


vpp# show interface

              Name               Idx       State          Counter          Count

GigabitEthernet5/0/0              3         up       rx packets                 
    5

                                                     rx bytes                   
  300

                                                     drops                      
    5

GigabitEthernet5/0/0.50           6         up

GigabitEthernet5/0/1              4         up

TenGigabitEthernet3/0/0           1        down

TenGigabitEthernet3/0/1           2        down

local0                            0        down

loop0                             5         up

vpp#

Should there be any configuration to enable routing on the BD? Like ‘bridge 1 
route ip’ on cisco router.

Thanks,
Leela sankar


From: "John Lo (loj)" <l...@cisco.com<mailto:l...@cisco.com>>
Date: Thursday, March 22, 2018 at 1:19 PM
To: Leela Gudimetla <lgudi...@ciena.com<mailto:lgudi...@ciena.com>>, 
"vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Subject: [**EXTERNAL**] RE: [vpp-dev] Is IRB feature fully functional?

In order to use a sub-interface on a loopback interface as BVI of a BD, the 
sub-interface should be placed in a BD and the IP address configured on the 
sub-interface (in your case, sub-interface with VLAN tag 50 and not the main 
interface).  The sub-interface must be configured as an exact match VLAN 
sub-interface (thus expect packets contain a VLAN tag of ID 50 in your case) 
and all packets received and forwarded in the BD must have one VLAN tag of ID 
50, matching that of the BVI sub-interface VLAN.   –John

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> On Behalf Of Gudimetla, Leela 
Sankar
Sent: Thursday, March 22, 2018 3:35 PM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [vpp-dev] Is IRB feature fully functional?

Hi,

I am trying to configure IRB/BVI feature and see if it works.
I am doing the configuration as per the instructions given in 
‘https://wiki.fd.io/view/VPP/Command-line_Interface_(CLI)_Guide#IRB.2FBVI’.

Instead of configuring a route as per the link, I am configuring an IP address 
on BVI interface.
And I am configuring a sub-interface with vlan-id 50 and attaching it to the 
same bridge-domain.

I am doing the similar configuration on the other box and trying to ping.
But the ARP REQ packets are getting dropped saying that the ‘Interface is not 
IP enabled’. I see that the sub-interface is not in L3 mode since it is 
attached to the bridge. But since the bridge is ‘flood’ enabled, I expect the 
ARP REQ should get flooded and the loop-back interface should respond.

And I also see that there is no command similar to ‘bridge <no> route ip’ to 
enable routing and bridging.

Please let me know that attaching sub-interface to the bridge for IRB is 
supported.
And also please let me know if I am missing anything.

Thanks,
Leela sankar

Reply via email to