Re: [vpp-dev] marvell pp2
Damjan,thanks for your quick reply!So I don’t need to set any dpdk parameters in the startup.conf, am I right? I will read the document soon. 可用于iOS的myMail发送 2019年4月3日 星期三 +0800 20:11 发件人 dmarion=me@lists.fd.io : > > >> On 3 Apr 2019, at 13:25, saint_sun 孙 via Lists.Fd.Io < >> saint_sun=aliyun@lists.fd.io > wrote: >> >> Hi all, >> I want to run vpp on marvell SOC board, anyone know how to set the >> startup.conf? >> I have insmod the musdk_cma and mv_pp_uio.ko. >> > >Have you read src/plugins/marvell/README.md ? There is no special startup.conf >entry needed... > >-=-=-=-=-=-=-=-=-=-=-=- >Links: You receive all messages sent to this group. > >View/Reply Online (#12693): https://lists.fd.io/g/vpp-dev/message/12693 >Mute This Topic: https://lists.fd.io/mt/30879756/1454168 >Group Owner: vpp-dev+ow...@lists.fd.io >Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [saint_...@aliyun.com] >-=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12694): https://lists.fd.io/g/vpp-dev/message/12694 Mute This Topic: https://lists.fd.io/mt/30879756/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] marvell pp2
Hi all, I want to run vpp on marvell SOC board, anyone know how to set the startup.conf? I have insmod the musdk_cma and mv_pp_uio.ko. thanks saint_sun-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12692): https://lists.fd.io/g/vpp-dev/message/12692 Mute This Topic: https://lists.fd.io/mt/30879416/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] ipsec AH+ESP
thanks for your reply! expecting for your patch~ best regards, saint_sun From: Neale Ranns via Lists.Fd.Io Date: 2019-02-14 16:28 To: saint_...@aliyun.com; vpp-dev CC: vpp-dev Subject: Re: [vpp-dev] ipsec AH+ESP Hi Sun, It is my understanding that it is not possible to configure both AH and ESP for a given ‘flow’. It is something we identified only recently and we are working towards a fix. Regards, Neale De : au nom de "saint_sun 孙 via Lists.Fd.Io" Répondre à : "saint_...@aliyun.com" Date : mardi 12 février 2019 à 09:42 À : vpp-dev Cc : "vpp-dev@lists.fd.io" Objet : [vpp-dev] ipsec AH+ESP hi all, how can I configure ipsec to support AH+ESP mode? I used "ipsec_sa_add_del_command_fn" command to configure one AH sa and one ESP sa, then I used "ipsec_policy_add_del_command_fn" command to apply the sa, but I only saw the AH-encapsulated packet that passing through the device. best regards, saint_sun -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12251): https://lists.fd.io/g/vpp-dev/message/12251 Mute This Topic: https://lists.fd.io/mt/29748014/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] ipsec AH+ESP
hi all, how can I configure ipsec to support AH+ESP mode? I used "ipsec_sa_add_del_command_fn" command to configure one AH sa and one ESP sa, then I used "ipsec_policy_add_del_command_fn" command to apply the sa, but I only saw the AH-encapsulated packet that passing through the device. best regards, saint_sun -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12231): https://lists.fd.io/g/vpp-dev/message/12231 Mute This Topic: https://lists.fd.io/mt/29748014/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] nat44:twice nat
thanks very much! Any plan to support this feature? saint_sun From: Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io Date: 2019-01-15 18:00 To: saint_...@aliyun.com; vpp-dev CC: vpp-dev Subject: Re: [vpp-dev] nat44:twice nat Hi, twice NAT is currently supported only for TCP and UDP Matus From: vpp-dev@lists.fd.io On Behalf Of saint_sun ? via Lists.Fd.Io Sent: Tuesday, January 15, 2019 10:47 AM To: vpp-dev Cc: vpp-dev@lists.fd.io Subject: [vpp-dev] nat44:twice nat hi all, I want to use twice-nat,but when I send an icmp packet through the device, the packet can not be translated, otherwise udp packet can. anyone who knows why? the corresponding information is in the attachment. Any reply will be appreciated! best regards, saint_sun -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11924): https://lists.fd.io/g/vpp-dev/message/11924 Mute This Topic: https://lists.fd.io/mt/29122851/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] nat44:twice nat
hi all, I want to use twice-nat,but when I send an icmp packet through the device, the packet can not be translated, otherwise udp packet can. anyone who knows why? the corresponding information is in the attachment. Any reply will be appreciated! best regards, saint_sun twice-nat.txt Description: Binary data -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11921): https://lists.fd.io/g/vpp-dev/message/11921 Mute This Topic: https://lists.fd.io/mt/29122851/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] regarding cross compiling
Hi, I modified several positions, then the make can be done successfully with some minor problems, the details list below: one is in the vpp.mk user@vpp-compiler:~/vpp1810$ git diff diff --git a/build-data/packages/vpp.mk b/build-data/packages/vpp.mk index 2a1b9a7..288ed65 100644 --- a/build-data/packages/vpp.mk +++ b/build-data/packages/vpp.mk @@ -31,6 +31,12 @@ vpp_cmake_args += -DCMAKE_PREFIX_PATH:PATH="$(vpp_cmake_prefix_path)" ifeq ("$(V)","1") vpp_cmake_args += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON endif +ifneq ("$(PLATFORM)","native") +vpp_cmake_args += -DCMAKE_TOOLCHAIN_FILE="$(WS_ROOT)/src/cmake/$(PLATFORM)_toolchain.cmake" +vpp_cmake_args += -DPYTHON_INCLUDE_DIR="/usr/include/python2.7" +vpp_cmake_args += -DPYTHON_LIBRARY="/usr/lib/libpython2.7.so" +vpp_cmake_args += -DDPDK_INCLUDE_DIR:PATH="$(vpp_cmake_prefix_path)/include/dpdk" +endif # Use devtoolset on centos 7 ifneq ($(wildcard /opt/rh/devtoolset-7/enable),) -- one is in the src/cmake, we add a file named arm32_toolchain.cmake -- user@vpp-compiler:~/vpp1810$ cat src/cmake/arm32_toolchain.cmake set(CMAKE_SYSTEM_NAME "Linux") set(CMAKE_SYSTEM_PROCESSOR "arm") # specify the cross compiler set(CMAKE_C_COMPILER "/home/user/armv7-marvell-linux-gnueabi-softfp_i686_64K_Dev_20131002/bin/arm-marvell-linux-gnueabi-gcc") # where is the target environment set(CMAKE_SYSROOT "/home/user/armv7-marvell-linux-gnueabi-softfp_i686_64K_Dev_20131002/arm-marvell-linux-gnueabi/libc") set(CMAKE_FIND_ROOT_PATH "/home/user/armv7-marvell-linux-gnueabi-softfp_i686_64K_Dev_20131002/arm-marvell-linux-gnueabi/libc") #set(CMAKE_FIND_ROOT_PATH "/home/user/iproc_ARMv7_glibc/usr/arm-broadcom-linux-gnueabi/sysroot") # search for programs in the build host directories (not necessary) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # for libraries and headers in the target directories set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) set( THREADS_PTHREAD_ARG "PLEASE_FILL_OUT-FAILED_TO_RUN" CACHE STRING "Result from TRY_RUN" FORCE) - the compilation process: user@vpp-compiler:~/vpp1810$ make V=1 PLATFORM=arm32 build make[1]: Entering directory '/home/user/vpp1810/build-root' Arch for platform 'arm32' is native Finding source for external Makefile fragment found in /home/user/vpp1810/build-data/packages/external.mk Source found in /home/user/vpp1810/build Arch for platform 'arm32' is native Finding source for vpp Makefile fragment found in /home/user/vpp1810/build-data/packages/vpp.mk Source found in /home/user/vpp1810/src Configuring external in /home/user/vpp1810/build-root/build-arm32_debug-native/external Building external in /home/user/vpp1810/build-root/build-arm32_debug-native/external make[2]: Entering directory '/home/user/vpp1810/build/external' make check-deb make[3]: Entering directory '/home/user/vpp1810/build/external' make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[3]: Nothing to be done for 'check-deb'. make[3]: Leaving directory '/home/user/vpp1810/build/external' make[2]: Leaving directory '/home/user/vpp1810/build/external' Installing external make[2]: Entering directory '/home/user/vpp1810/build/external' make[2]: Nothing to be done for 'ebuild-install'. make[2]: Leaving directory '/home/user/vpp1810/build/external' Configuring vpp in /home/user/vpp1810/build-root/build-arm32_debug-native/vpp -- The C compiler identification is GNU 4.6.4 -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Looking for ccache -- Looking for ccache - found -- Performing Test compiler_flag_no_address_of_packed_member -- Performing Test compiler_flag_no_address_of_packed_member - Success -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - no -- Found Threads: TRUE -- Performing Test HAVE_MEMFD_CREATE -- Performing Test HAVE_MEMFD_CREATE - Failed -- The ASM compiler identification is GNU -- Found assembler: /home/user/armv7-marvell-linux-gnueabi-softfp_i686_64K_Dev_20131002/bin/arm-marvell-linux-gnueabi-gcc -- Looking for
Re: [vpp-dev] regarding cross compiling
Thanks to all who have helped, I am trying, will resend the result later. saint_...@aliyun.com From: Dave Barach via Lists.Fd.Io Date: 2018-12-20 00:29 To: Andrew Pinski; dmar...@me.com CC: vpp-dev Subject: Re: [vpp-dev] regarding cross compiling Please give the instructions at https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling a try and let us know what happens. Suffice it to say that the vpp committer community saw sufficient value in switching to cmake to do so. D. -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Andrew Pinski Sent: Wednesday, December 19, 2018 10:40 AM To: dmar...@me.com Cc: Saxena, Nitin ; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] regarding cross compiling On Wed, Dec 19, 2018 at 8:54 AM Damjan Marion via Lists.Fd.Io wrote: > > i > > On 19 Dec 2018, at 14:00, Saxena, Nitin wrote: > > Hi Damjan, > > >>Somebody needs to spend a bit of time to teach CMake how to properly > >>cross-compile > > Correct me if I am wrong but I think cross-compilation support was there > before CMake transition. > > I guess so, never used it... I am still disappointed moving away from autotools. CMake has too much junk science of getting it right; autotools just work for all of these special cases. Yes it is a bit slower to build with autotools but it makes cross compiling and debugging what is going wrong with the build easier. > > Also I am not finding capability to link VPP with externally compiled > dpdk? Am I correct or missing anything > > You can just specify -DCMAKE_INSTALL_PREFIX:PATH=. to the tree where dpdk > tree is. > That is what we do today with /opt/vpp/external/$(uname -m)/ Also it makes help messages from configure easier to find the needed options including but not limited to the above. Having reading cmake files in the past and autoconfig files, the autoconf is easier to understand and understand how it works. Also autoconf is standard, while cmake is very much unstandardized when it comes to finding headers, etc. You need to pull in a library, here have a weird cmake file which might or might not work. Thanks, Andrew Pinski > > -- > Damjan > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#11694): > https://lists.fd.io/g/vpp-dev/message/11694 > Mute This Topic: https://lists.fd.io/mt/28800506/912176 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [pins...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11700): https://lists.fd.io/g/vpp-dev/message/11700 Mute This Topic: https://lists.fd.io/mt/28800506/1454168 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [saint_...@aliyun.com] -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11719): https://lists.fd.io/g/vpp-dev/message/11719 Mute This Topic: https://lists.fd.io/mt/28800506/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] regarding cross compiling
Hi all, I was confused with cross compiling, when I built vpp with the new version(18.10) using arm build tools. The compiling environment is listed below: - vpp 18.10 host : ubuntu 16.04 , x86-64 cpu target : armv71 toolchain : arm-linux-gcc alredy exist in my home directory -- The compiling process is listed below: -- user@vpp-compiler:~/vpp1810$ make build V=1 PLATFORM=arm32 or ~/vpp1810/build-root$ make V=1 PLATFORM=arm32 TAG=vpp install-deb make[1]: Entering directory '/home/user/vpp1810/build-root' Arch for platform 'arm32' is arm Finding source for external Makefile fragment found in /home/user/vpp1810/build-data/packages/external.mk Source found in /home/user/vpp1810/build Arch for platform 'arm32' is arm Finding source for vpp Makefile fragment found in /home/user/vpp1810/build-data/packages/vpp.mk Source found in /home/user/vpp1810/src Configuring external in /home/user/vpp1810/build-root/build-arm32_debug-arm/external Building external in /home/user/vpp1810/build-root/build-arm32_debug-arm/external make[2]: Entering directory '/home/user/vpp1810/build/external' make check-deb make[3]: Entering directory '/home/user/vpp1810/build/external' make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[3]: Nothing to be done for 'check-deb'. make[3]: Leaving directory '/home/user/vpp1810/build/external' make[2]: Leaving directory '/home/user/vpp1810/build/external' Installing external make[2]: Entering directory '/home/user/vpp1810/build/external' make[2]: Nothing to be done for 'ebuild-install'. make[2]: Leaving directory '/home/user/vpp1810/build/external' Configuring vpp in /home/user/vpp1810/build-root/build-arm32_debug-arm/vpp -- The C compiler identification is unknown -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- broken CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/lib/ccache/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/user/vpp1810/build-root/build-arm32l_debug-arm/vpp/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/ninja" "cmTC_d3272" [1/2] Building C object CMakeFiles/cmTC_d3272.dir/testCCompiler.c.o FAILED: /usr/lib/ccache/cc -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -DVLIB_MAX_CPUS=4 -march=armv7-a -fstack-protector-all -fPIC -Werror -o CMakeFiles/cmTC_d3272.dir/testCCompiler.c.o -c testCCompiler.c testCCompiler.c:1:0: error: bad value (armv7-a) for -march= switch #ifdef __cplusplus ^ ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:16 (project) -- Configuring incomplete, errors occurred! See also "/home/user/vpp1810/build-root/build-arm32_debug-arm/vpp/CMakeFiles/CMakeOutput.log". See also "/home/user/vpp1810/build-root/build-arm32_debug-arm/vpp/CMakeFiles/CMakeError.log". Makefile:640: recipe for target 'vpp-configure' failed make[1]: *** [vpp-configure] Error 1 make[1]: Leaving directory '/home/user/vpp1810/build-root' Makefile:356: recipe for target 'build' failed make: *** [build] Error 2 --- Could anyone give me some ticks or some examples how can I build sucess using vpp 18.10? Any reply will be appreciated! thanks, saint_...@aliyun.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11691): https://lists.fd.io/g/vpp-dev/message/11691 Mute This Topic: https://lists.fd.io/mt/28800506/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] inet raw socket
Hi Ole, thanks for your advice, I have done something about option 3, So that other applications can not sense the changes of the socket. saint_...@aliyun.com From: Ole Troan Date: 2018-11-13 15:47 To: saint_sun CC: vpp-dev Subject: Re: [vpp-dev] inet raw socket Hi again, > yes, we have a control plane, and the protocols I mentioned below run in the > control plane. > when these protocols want to send packets, they organize their own protocol > data then call inet raw socket to set the IP header and link header. when > received a packet from the interface, first we will stripe the link header > and ip header then hand over to the corresponding modules through inet raw > socket. Now can you know what I want to do? There are a number of ways a control plane can (or could) integrate with VPP. Which one is most suitable for you depends. 1) Mirror interfaces. As described in https://wiki.fd.io/view/VPP_Sandbox/router Each VPP interface is mirrored as a Linux TAP interface. Any traffic destined to an interface address in VPP is forwarded to the TAP interface. Any packet received on the TAP interface is shipped out the physical interface. All Linux tools and applications work unchanged. Including use of raw sockets. A all or nothing approach. And might not be suitable for cases with lots of (virtual) interfaces. 2) Separate punt interface. Transport using memif and/or Unix domain socket. Control plane registeres with VPP which protoocols it wants. E.g. a DHCP server registeres for UDP port 69, an IPv6 ND daemon registres for a set of ICMPv6 types. Raw packets sent over transport with meta data. Likewise when CP sends packet, it includes meta-data to specify outgoing interface and/or VPP processing graph node. See https://git.fd.io/vpp/tree/src/vnet/ip/punt.h#n44 This is currently only used by https://pypi.org/project/dhcpkit-vpp/ Gaps: - Missing selectors (only UDP supported) - Missing transports (only UDS) - Missing throttling and QoS 3) Integrate with VPP host stack. For TCP VPP exposes an API that control plane applications can use. I plan to put a Python wrapper on top of VCL and integrate with exaBGP. This approach is of course limited to whatever VCL supports. But in theory VCL could give a full socket-like API. 4) Integrated in VPP Write the control plane functions as VPP plugins. This is how ND, ARP, DHCP and a few others are done. Any others? Personally I would like to do more work on 2. What’s your view? Best regards, Ole -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11343): https://lists.fd.io/g/vpp-dev/message/11343 Mute This Topic: https://lists.fd.io/mt/27857220/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] inet raw socket
hello Ole, yes, we have a control plane, and the protocols I mentioned below run in the control plane. when these protocols want to send packets, they organize their own protocol data then call inet raw socket to set the IP header and link header. when received a packet from the interface, first we will stripe the link header and ip header then hand over to the corresponding modules through inet raw socket. Now can you know what I want to do? saint_sun From: Ole Troan Date: 2018-11-08 11:11 To: saint_sun CC: vpp-dev Subject: Re: [vpp-dev] inet raw socket > Some protocols or functions need inet raw socket to transmit and receive > packets such as ping/vrrp/pim, and I want to debug these functions. You are still leaving me guessing at what you are trying to do. You can implement these inside of VPP, where you obviously don’t need or use a socket API. Sounds like you are talking about having these protocols implemented on the control plane side. There are many ways of integrating a control plane with VPP. With e.g. a port mirroring approach, you would use Linux applications unchanged. That’s not necessarily where I would go. We have some ideas around improvements for the CP/DP interface, and I’m happy to engage in a discussion with that, but you would have to share what problem you are trying to solve in more detail. Best regards, Ole-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11210): https://lists.fd.io/g/vpp-dev/message/11210 Mute This Topic: https://lists.fd.io/mt/27857220/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] inet raw socket
hello Ole, yes, we have a control plane, and the protocols I mentioned below run in the control plane. when these protocols want to send packets, they organize their own protocol data then call inet raw socket to set the IP header and link header. when received a packet from the interface, first we will stripe the link header and ip header then hand over to the corresponding modules through inet raw socket. Now can you know what I want to do? 可用于iOS的myMail发送 2018年11月8日 星期四 +0800 11:11 发件人 Ole Troan : >> Some protocols or functions need inet raw socket to transmit and receive >> packets such as ping/vrrp/pim, and I want to debug these functions. > >You are still leaving me guessing at what you are trying to do. > >You can implement these inside of VPP, where you obviously don’t need or use a >socket API. > >Sounds like you are talking about having these protocols implemented on the >control plane side. >There are many ways of integrating a control plane with VPP. >With e.g. a port mirroring approach, you would use Linux applications >unchanged. That’s not necessarily where I would go. We have some ideas around >improvements for the CP/DP interface, and I’m happy to engage in a discussion >with that, but you would have to share what problem you are trying to solve in >more detail. > >Best regards, >Ole -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11154): https://lists.fd.io/g/vpp-dev/message/11154 Mute This Topic: https://lists.fd.io/mt/27857220/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] inet raw socket
Some protocols or functions need inet raw socket to transmit and receive packets such as ping/vrrp/pim, and I want to debug these functions. 可用于iOS的myMail发送 2018年11月7日 星期三 +0800 19:40 发件人 Ole Troan : >> I am confused, your suggestion is that I can use >> The API interface? > >No. What I said was that you were writing a graph node, you have direct access >to the frames. > >Instead of playing hide and seak. Could you tell us what you are trying to do? >What problem are you trying to solve? > >Ole > > >> >> >> >> >> 可用于iOS的myMail发送 >> >> >> 2018年11月7日 星期三 +0800 15:49 发件人 Ole Troan < otr...@employees.org >: >> > <81.gif>thanks very much! And I have another question: does VPP support >> > INET RAW socket, I find the UDP and TCP socket except the raw socket. >> >> No, but you do get full access to the frame in the buffer. Which is >> generally a much more flexible interface than INET RAW. >> >> Cheers, >> Ole -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11141): https://lists.fd.io/g/vpp-dev/message/11141 Mute This Topic: https://lists.fd.io/mt/27857220/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] inet raw socket
I am confused, your suggestion is that I can use The API interface? 可用于iOS的myMail发送 2018年11月7日 星期三 +0800 15:49 发件人 Ole Troan : >> <81.gif>thanks very much! And I have another question: does VPP support >> INET RAW socket, I find the UDP and TCP socket except the raw socket. > >No, but you do get full access to the frame in the buffer. Which is generally >a much more flexible interface than INET RAW. > >Cheers, >Ole-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11136): https://lists.fd.io/g/vpp-dev/message/11136 Mute This Topic: https://lists.fd.io/mt/27857220/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] inet raw socket
thanks very much! And I have another question: does VPP support INET RAW socket, I find the UDP and TCP socket except the raw socket. saint_...@aliyun.com From: Ole Troan Date: 2018-11-05 13:03 To: saint_sun CC: vpp-dev Subject: Re: [vpp-dev] Where is the definition of IP_PROTOCOL_ICMP Hi there, > Does someone know where is the definition of IP_PROTOCOL_ICMP? I searched > all the directories in VPP, but could not find it. src/vnet/ip/protocols.def Best regards, Ole -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11096): https://lists.fd.io/g/vpp-dev/message/11096 Mute This Topic: https://lists.fd.io/mt/27857220/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] Where is the definition of IP_PROTOCOL_ICMP
Hello everyone, Does someone know where is the definition of IP_PROTOCOL_ICMP? I searched all the directories in VPP, but could not find it. Appreciated for your help! 可用于iOS的myMail发送 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11091): https://lists.fd.io/g/vpp-dev/message/11091 Mute This Topic: https://lists.fd.io/mt/27855718/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev]ping local address
OK , it is better, I will try, thanks! saint_...@aliyun.com From: Neale Ranns (nranns) Date: 2018-10-31 17:01 To: saint_...@aliyun.com CC: vpp-dev Subject: Re: [vpp-dev]ping local address Hi Saint, With this change an attacker could send a packet with both the source and destination both set to one of VPP’s own addresses. If you include in this new sub-condition to only accept locally generated packets, then we should be good (b->flags & VNET_BUFFER_F_LOCALLY_ORIGINATED). Regards, neale De : "saint_...@aliyun.com" Date : mercredi 31 octobre 2018 à 08:49 À : "Neale Ranns (nranns)" Cc : vpp-dev Objet : Re: Re: [vpp-dev]ping local address hello neale, I found and modified a piece of code in the ip4_forward.c, and now it is able to ping local address, as follows: I think the source- check should only discard the packet which comes from the attacker(forged a source address) and wants to attack another host, so I changed the judgement conditions. can you help me to check it right or wrong? The attachment is the modified file. saint_...@aliyun.com From: Neale Ranns (nranns) Date: 2018-10-25 15:55 To: saint_...@aliyun.com; vpp-dev Subject: Re: [vpp-dev]ping local address It’s a known limitation. Contributions to fix it would be welcome. /neale De : au nom de "saint_sun 孙 via Lists.Fd.Io" Répondre à : "saint_...@aliyun.com" Date : jeudi 25 octobre 2018 à 09:40 À : vpp-dev Cc : "vpp-dev@lists.fd.io" Objet : [vpp-dev]ping local address Hello all: An basic features: ping myself. when I configure an IP address for an interface, then I ping the address from VPP, it's failed, why?should I do other more settings? DBGvpp# ping 10.0.0.1 Aborted due to a keypress. Statistics: 1 sent, 0 received, 100% packet loss DBGvpp# show ip fib ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] locks:[src:default-route:1, ] 0.0.0.0/0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[0:0]] [0] [@0]: dpo-drop ip4 0.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]] [0] [@0]: dpo-drop ip4 10.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:17 buckets:1 uRPF:21 to:[0:0]] [0] [@0]: dpo-drop ip4 10.0.0.0/24 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:16 buckets:1 uRPF:27 to:[0:0]] [0] [@4]: ipv4-glean: line1: mtu:9000 000e5e513c380806 10.0.0.1/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:19 buckets:1 uRPF:25 to:[0:0]] [0] [@2]: dpo-receive: 10.0.0.1 on line1 10.0.0.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:18 buckets:1 uRPF:23 to:[0:0]] [0] [@0]: dpo-drop ip4 224.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]] [0] [@0]: dpo-drop ip4 240.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]] [0] [@0]: dpo-drop ip4 255.255.255.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]] [0] [@0]: dpo-drop ip4 saint_...@aliyun.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11051): https://lists.fd.io/g/vpp-dev/message/11051 Mute This Topic: https://lists.fd.io/mt/27630267/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] Problem switching a bonded interface from L2 to L3 mode
sorry for my unclear expression! The explanation for the trace below is not completely, what I want to say is when I switches the bonding interface back to l3 mode from l2(first l3->l2 then l2->l3), the packet can’t be sent to bond-input again. I have tested the modifications what you mentioned, now it’s able to send the packet to bond-input again. 可用于iOS的myMail发送 2018年10月26日 星期五 +0800 10:12 发件人 Steven Luong (sluong) : >Your trace and explanation of the problem are not consistent. You stated there >is a problem after the bonded interface switches from L2 to L3. Yet your trace >shows when the interface is in L3 mode, it is working fine. When it is in L2 >mode, > it complains the interface is not IP enabled. I can’t really recreate your > problem to see what is going on because I don’t have your whole configuration > from both sides and where you send the ping from. Sure, we can invoke > ethernet_set_rx_redirect (vnm, sif_hw, > 0) for all interfaces when we remove the last L2 interface on the bond. But I > don’t think it is going to help you. For your benefit of the doubt, you can > try adding the else what you suspect may be the problem. > > else if ((bif_hw->l2_if_count == 0) && (l2_if_adjust == -1)) > { > /* Just removed last L2 subinterface on this port */ > vec_foreach (sw_if_index, bif->slaves) > { > sif_hw = vnet_get_sup_hw_interface (vnm, *sw_if_index); > /* Allow ip packets to go directly to ip4-input etc */ > ethernet_set_rx_redirect (vnm, sif_hw, 0); > } > } > >when the bonding is in l2 mode, the packet trace below: >packet: >00:00:00:00: memif-input > memif: hw_if_index 3 next-index 4 >slot: ring 0 >00 :00:00:000 000: ethernet-input > ARP: 00:00:5e:22:22:2c -> ff:ff:ff:ff:ff:ff 802.1q vlan 0 >00:00:00:00: arp-input > request, type ethernet/IP4, address size 6/4 > 00:00:5e:22:22:2c/110.0.0.2 -> 00:00:00:00:00:00/110.0.0.1 >00:00:00:00: error-drop > arp-input: Interface is not IP enabled > > >Steven > >From: < vpp-dev@lists.fd.io > on behalf of "saint_sun 孙 via Lists.Fd.Io" < >saint_sun=aliyun@lists.fd.io > >Reply-To: "saint_...@aliyun.com" < saint_...@aliyun.com > >Date: Thursday, October 25, 2018 at 12:25 AM >To: "Steven Luong (sluong)" < slu...@cisco.com > >Cc: "vpp-dev@lists.fd.io" < vpp-dev@lists.fd.io > >Subject: Re: [vpp-dev] Problem switching a bonded interface from L2 to L3 mode > >Hello steven, >I used the native memif to be the member of bonding interface, below is my >configuration: > >DBGvpp# create bond mode active-backup >DBGvpp# bond add BondEthernet1 line2 >DBGvpp# show bond details >BondEthernet0 > mode: active-backup > load balance: l23 > number of active slaves: 0 > number of slaves: 1 >line1 > device instance: 0 > sw_if_index: 1 > hw_if_index: 1 >BondEthernet1 > mode: active-backup > load balance: l2 > number of active slaves: 1 >line2 > number of slaves: 1 >line2 > device instance: 1 > sw_if_index: 22 > hw_if_index: 20 > >DBGvpp# set interface l2 bridge BondEthernet1 300 >DBGvpp# show bridge-domain 300 detail > BD-ID Index BSN Age(min) Learning U-Forwrd UU-Flood Flooding >ARP-Term BVI-Intf > 300 4 2 44onononon off > N/A > > Interface If-idx ISN SHG BVI TxFlood >VLAN-Tag-Rewrite > BondEthernet1 2230- * none > >DBGvpp# set interface l3 BondEthernet0 > >when the bonding is in l3 mode, the packet trace below: >packet: >00:00:00:00: memif-input > memif: hw_if_index 3 next-index 7 >slot: ring 0 >00:00:00:00: bond-input > src 00:00:5e:22:22:2c, dst ff:ff:ff:ff:ff:ff, line2 -> BondEthernet1 >00:00:00:00: ethernet-input > ARP: 00:00:5e:22:22:2c -> ff:ff:ff:ff:ff:ff 802.1q vlan 0 >00:00:00:00: arp-input > request, type ethernet/IP4, address size 6/4 > 00:00:5e:22:22:2c/110.0.0.2 -> 00:00:00:00:00:00/110.0.0.1 >00:00:00:00: BondEthernet1-output > BondEthernet1 > ARP: 00:00:5e:51:3c:38 -> 00:00:5e:22:22:2c > reply, type ethernet/IP4, address size 6/4 > 00:00:5e:51:3c:38/110.0.0.1 -> 00:00:5e:22:22:2c/110.0.0.2 > >when the bonding is in l2 mode, the packet trace below: >packet: >00:00:00:00: memif-input > memif: hw_if_index 3 next-index 4 >slot: ring 0 >00 :00:00:000 000: ethernet-input > ARP: 00:00:5e:22:22:2c -> ff:ff:ff:ff:ff:ff 802.1q vlan 0 >00:00:00:00: arp-input > request, type ethernet/IP4, address size 6/4 > 00:00:5e:22:22:2c/110.0.0.2 -> 00:00:00:00:00:00/110.0.0.1 >00:00:00:00: error-drop > arp-input: Interface is not IP enabled > >The mode switch code of bonding device: >static __clib_unused clib_error_t * >bond_set_l2_mode_function (vnet_main_t * vnm, > struct vnet_hw_interface_t *bif_hw, > i32 l2_if_adjust) >{ > bond_if_t *bif; > u32 *sw_if_index; > struct vnet_hw_interface_t
[vpp-dev]ping local address
Hello all: An basic features: ping myself. when I configure an IP address for an interface, then I ping the address from VPP, it's failed, why?should I do other more settings? DBGvpp# ping 10.0.0.1 Aborted due to a keypress. Statistics: 1 sent, 0 received, 100% packet loss DBGvpp# show ip fib ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] locks:[src:default-route:1, ] 0.0.0.0/0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[0:0]] [0] [@0]: dpo-drop ip4 0.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]] [0] [@0]: dpo-drop ip4 10.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:17 buckets:1 uRPF:21 to:[0:0]] [0] [@0]: dpo-drop ip4 10.0.0.0/24 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:16 buckets:1 uRPF:27 to:[0:0]] [0] [@4]: ipv4-glean: line1: mtu:9000 000e5e513c380806 10.0.0.1/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:19 buckets:1 uRPF:25 to:[0:0]] [0] [@2]: dpo-receive: 10.0.0.1 on line1 10.0.0.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:18 buckets:1 uRPF:23 to:[0:0]] [0] [@0]: dpo-drop ip4 224.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]] [0] [@0]: dpo-drop ip4 240.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]] [0] [@0]: dpo-drop ip4 255.255.255.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]] [0] [@0]: dpo-drop ip4 saint_...@aliyun.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10981): https://lists.fd.io/g/vpp-dev/message/10981 Mute This Topic: https://lists.fd.io/mt/27630267/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] Problem switching a bonded interface from L2 to L3 mode
Hello steven, I used the native memif to be the member of bonding interface, below is my configuration: DBGvpp# create bond mode active-backup DBGvpp# bond add BondEthernet1 line2 DBGvpp# show bond details BondEthernet0 mode: active-backup load balance: l23 number of active slaves: 0 number of slaves: 1 line1 device instance: 0 sw_if_index: 1 hw_if_index: 1 BondEthernet1 mode: active-backup load balance: l2 number of active slaves: 1 line2 number of slaves: 1 line2 device instance: 1 sw_if_index: 22 hw_if_index: 20 DBGvpp# set interface l2 bridge BondEthernet1 300 DBGvpp# show bridge-domain 300 detail BD-ID Index BSN Age(min) Learning U-Forwrd UU-Flood Flooding ARP-Term BVI-Intf 300 4 2 44onononon off N/A Interface If-idx ISN SHG BVI TxFlood VLAN-Tag-Rewrite BondEthernet1 2230- * none DBGvpp# set interface l3 BondEthernet0 when the bonding is in l3 mode, the packet trace below: packet: 00:00:00:00: memif-input memif: hw_if_index 3 next-index 7 slot: ring 0 00:00:00:00: bond-input src 00:00:5e:22:22:2c, dst ff:ff:ff:ff:ff:ff, line2 -> BondEthernet1 00:00:00:00: ethernet-input ARP: 00:00:5e:22:22:2c -> ff:ff:ff:ff:ff:ff 802.1q vlan 0 00:00:00:00: arp-input request, type ethernet/IP4, address size 6/4 00:00:5e:22:22:2c/110.0.0.2 -> 00:00:00:00:00:00/110.0.0.1 00:00:00:00: BondEthernet1-output BondEthernet1 ARP: 00:00:5e:51:3c:38 -> 00:00:5e:22:22:2c reply, type ethernet/IP4, address size 6/4 00:00:5e:51:3c:38/110.0.0.1 -> 00:00:5e:22:22:2c/110.0.0.2 when the bonding is in l2 mode, the packet trace below: packet: 00:00:00:00: memif-input memif: hw_if_index 3 next-index 4 slot: ring 0 00:00:00:00: ethernet-input ARP: 00:00:5e:22:22:2c -> ff:ff:ff:ff:ff:ff 802.1q vlan 0 00:00:00:00: arp-input request, type ethernet/IP4, address size 6/4 00:00:5e:22:22:2c/110.0.0.2 -> 00:00:00:00:00:00/110.0.0.1 00:00:00:00: error-drop arp-input: Interface is not IP enabled The mode switch code of bonding device: static __clib_unused clib_error_t * bond_set_l2_mode_function (vnet_main_t * vnm, struct vnet_hw_interface_t *bif_hw, i32 l2_if_adjust) { bond_if_t *bif; u32 *sw_if_index; struct vnet_hw_interface_t *sif_hw; bif = bond_get_master_by_sw_if_index (bif_hw->sw_if_index); if (!bif) return 0; if ((bif_hw->l2_if_count == 1) && (l2_if_adjust == 1)) { /* Just added first L2 interface on this port */ vec_foreach (sw_if_index, bif->slaves) { sif_hw = vnet_get_sup_hw_interface (vnm, *sw_if_index); ethernet_set_flags (vnm, sif_hw->hw_if_index, ETHERNET_INTERFACE_FLAG_ACCEPT_ALL); /* ensure all packets go to ethernet-input */ ethernet_set_rx_redirect (vnm, sif_hw, 1); } } return 0; } when I switch the mode of bonding interface to l2, the function(blue color code above) redirects all the members to ethernet-input , but when I switch it back to l3, all the members don't redirect to bond-input. saint_...@aliyun.com From: steven luong via Lists.Fd.Io Date: 2018-10-25 12:06 To: saint_...@aliyun.com; John Lo (loj) CC: vpp-dev Subject: Re: [vpp-dev] Problem switching a bonded interface from L2 to L3 mode Are you using VPP native bonding driver or DPDK bonding driver? How do you configure the bonding interface? Please include the configuration and process to recreate the problem. Steven From: on behalf of "saint_sun 孙 via Lists.Fd.Io" Reply-To: "saint_...@aliyun.com" Date: Wednesday, October 24, 2018 at 8:07 PM To: "John Lo (loj)" Cc: "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] Problem switching a bonded interface from L2 to L3 mode Ok, I forgot to click the reply-all. who is familiar with the problem I mentioned below please tell me,thanks! 2018年10月25日 星期四 +0800 10:32 发件人 John Lo (loj) : Please include vpp-dev alias on any questions about VPP, instead of unicast an individual only. Then whoever is familiar with the area you are asking about may respond. Does anyone know about the potential problem of switching between L2 and L3 modes on a bonded interface described in this email (I did change the email subject accordingly)? -John From: saint_sun 孙 Sent: Wednesday, October 24, 2018 8:52 PM To: John Lo (loj) Subject: Re: RE: RE: [vpp-dev]vlan interface support? I am very grateful for your help. And when I test the VLAN, maybe I find a bug that if I switch the mode of the Bonding interface to L2 and then switch back to L3,the bonding interface can not work as before. I have found the error code that is in the mode switch function of bonding device: when set the mode of bonding interface to l2, all the members of the bonding interface will be set to l2, but when set the bonding interface back, all the members do not recover to l3. At
Re: [vpp-dev] Problem switching a bonded interface from L2 to L3 mode
Ok, I forgot to click the reply-all. who is familiar with the problem I mentioned below please tell me,thanks! 2018年10月25日 星期四 +0800 10:32 发件人 John Lo (loj) : >Please include vpp-dev alias on any questions about VPP, instead of unicast an >individual only. Then whoever is familiar with the area > you are asking about may respond. Does anyone know about the potential > problem of switching between L2 and L3 modes on a bonded interface described > in this email (I did change the email subject accordingly)? -John > >From: saint_sun 孙 < saint_...@aliyun.com > >Sent: Wednesday, October 24, 2018 8:52 PM >To: John Lo (loj) < l...@cisco.com > >Subject: Re: RE: RE: [vpp-dev]vlan interface support? > >I am very grateful for your help. >And when I test the VLAN, maybe I find a bug that if I switch the mode of the >Bonding interface to L2 and then switch back to L3 , the bonding interface can >not work as before. >I have found the error code that is in the mode switch function of bonding >device: when set the mode of bonding interface to l2, all the members of the >bonding interface will be set to l2, but when set the bonding interface back, >all the > members do not recover to l3. > >At last I have another doubt that when I configure an IP address for an >interface, then I ping the address from VPP, it’s failed, why?should I do >other more settings? > > > >2018 年 10 月 15 日 星期一 +0800 22:20 发件人 John Lo (loj) < l...@cisco.com >: >>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 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 < 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 < 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 >>>Cc: 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 (#10976): https://lists.fd.io/g/vpp-dev/message/10976 Mute This Topic: https://lists.fd.io/mt/27628831/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
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 : >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 < 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 >Cc: 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 (#10814): https://lists.fd.io/g/vpp-dev/message/10814 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] -=-=-=-=-=-=-=-=-=-=-=-
[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 (#10806): https://lists.fd.io/g/vpp-dev/message/10806 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] -=-=-=-=-=-=-=-=-=-=-=-