Hi Ben,
Thanks for your reply. I agree with you, I will configure both host and vpp use my agent. But I am still alittle confused. As if you check the function "tuntap_ip4_add_del_interface_address()" in tuntap.c. This function will be called by ip4_add_del_interface_address_internal() in ip4_forward.c. So the ip adress added to vpp physical interface will also be added to host interface. So I'd like to know the reason about this? Can you please explain more? Thanks Jinlei At 2021-01-04 16:32:58, "Benoit Ganne (bganne)" <[email protected]> wrote: >Hi, > >> I modified the startup.conf and enabled the tuntap interface. >> After vpp (vpp20.01) startup, it will create a tun interface named "vnet" >> in host linux. If I add an ip address to the physical interface, the same >> ip address will be added to vnet. But if I add an route entry, it will >> not. So the question is : Why vpp not synchronize route to host linux? > >VPP does not synchronize Linux and VPP config. >If you use VPP native TAP driver ('create tap ...') you can specify the >'host-ip4-addr <ip4addr/mask>' to set an IP address on Linux side but it is >merely for convenience, and it is only done at init time. Any configuration >change in VPP will not be propagated to Linux and vice-versa. >The usual way is for your agent to configure both VPP and Linux. > >Best >ben
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18461): https://lists.fd.io/g/vpp-dev/message/18461 Mute This Topic: https://lists.fd.io/mt/79415753/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
