If there is a BVI in a BD with sub-interfaces in the same BD which get packets with VLAN tags, it is best to configure a tag-rewrite operation on the sub-interfaces to pop their VLAN tags. Then all packets are forwarded in BD without VLAN tags. The CLI is “set interface l2 tag-rewrite <sub-interface> pop 1” if the sub-interface has one VLAN tag. –John
From: saint_sun 孙 <saint_...@aliyun.com> Sent: Monday, October 15, 2018 2:42 AM To: John Lo (loj) <l...@cisco.com> Cc: vpp-dev@lists.fd.io Subject: Re: RE: [vpp-dev]vlan interface support? I am very grateful to you for your advice! I have tested it,But there is something wrong. when I receive an arp or ICMP packet from a l2 subif that joins to bd 200 and encapsulates vlan 200,the reply packet that send from the subif does not have the vlan tag 200. Any more other configurations should I set? 可用于iOS的myMail发送 2018年10月14日 星期日 +0800 04:58 发件人 l...@cisco.com<mailto:l...@cisco.com> <l...@cisco.com<mailto:l...@cisco.com>>: The equivalent of VLAN on a switch in VPP is a bridge domain or BD for short. One can put interfaces or VLAN sub-interfaces in a BD to form a L2 network among all interfaces in it. One can also create a loopback interface, put it in a BD as its BVI (Bridge Virtual Interface) and assign IP addresses to it. Then packet can be IP forwarded into a BD through its BVI. Following is the VPP CLI sequence to create a loopback (resulting in interface name loop0), put it in BD 13 as a BVI, and put an IP address on it: loopback create mac 1a:2b:3c:4d:5e:6f set interface l2 bridge loop0 13 bvi set interface state loop0 up set interface ip address loop0 6.0.0.250/16 Regards, 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 saint_sun ? via Lists.Fd.Io Sent: Friday, October 12, 2018 3:52 AM To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev]vlan interface support? I have a question: Does vpp has the function like the configuration example: interface f0/1 switchport access vlan 10 Interface vlan 10 ip address 10.0.0.1 255.255.255.0 If vpp has the function, where can I find the command and the source code? Another question, does vpp support superVLAN? anyone who knows please tell me, appreciate for your reply very much!
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10821): https://lists.fd.io/g/vpp-dev/message/10821 Mute This Topic: https://lists.fd.io/mt/27268189/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-