Hi Xiaodong
Yes and if i add an ip to the tap in Linux it also shows up in VPP. I'm
adding the full config at the end of the mail.
No I can't get an answer that's what I'm trying to achieve.
[stefan@gw02:~]$ sudo dhclient -v ge0-3
Listening on LPF/ge0-3/00:0d:b9:50:99:0a
Sending on LPF/ge0-3/00:0d:b9:50:99:0a
Sending on Socket/fallback
DHCPDISCOVER on ge0-3 to 255.255.255.255 port 67 interval 3 (xid=0x5538f068)
DHCPDISCOVER on ge0-3 to 255.255.255.255 port 67 interval 3 (xid=0x5538f068)
DHCPDISCOVER on ge0-3 to 255.255.255.255 port 67 interval 7 (xid=0x5538f068)
[stefan@gw02:~]$ grep -v "\#" /etc/vpp/startup.conf | grep -v -e '^$'
unix {
nodaemon
log /var/log/vpp/vpp.log
full-coredump
cli-listen /run/vpp/cli.sock
gid vpp
exec /etc/vpp/bootstrap.vpp
}
api-trace {
on
}
api-segment {
gid vpp
}
socksvr {
default
}
cpu {
main-core 1
workers 2
skip-cores 0
}
plugins {
plugin lcpng_nl_plugin.so { enable }
plugin lcpng_if_plugin.so { enable }
}
logging {
default-syslog-log-level info
class linux-cp/if { rate-limit 10000 level debug syslog-level debug }
class linux-cp/nl { rate-limit 10000 level debug syslog-level debug }
}
lcpng {
lcp-sync
lcp-auto-subint
}
[stefan@gw02:~]$ grep -v -e '^$' /etc/vpp/bootstrap.vpp
set interface state GigabitEthernet3/0/0 up
lcp create GigabitEthernet3/0/0 host-if ge0-3
On 01.03.23 20:08, Xiaodong Xu wrote:
Hi Stefan,
Did you also enable 'linux-nl' plugin, in addition to 'linux-cp'? I
suppose 'linux-nl' is the one which syncs IP addresses/routes from
Linux to VPP.
BTW, were you able to get the IP address / route after you ran the
dhcp client on the tap interface? If not what do the error / log
messages look like?
Xiaodong
On Wed, Mar 1, 2023 at 10:42 AM Bauruine <li...@tuxli.ch> wrote:
Hi
I would like to use VPP with the lcpng plugin as a home gateway
where I
have to use dhcp to get an IP from my ISP. If I use the dhcp
plugin of
VPP it works and I can see an IP address on the interface on Linux
but
no route which was to be expected as lcpng doesn't sync routes
from VPP
to Linux.
Is it possible to use a dhcp client on Linux to get the IP and
routes on
Linux where they are synced back to VPP? I naively tried "lcp create
GigabitEthernet3/0/0 host-if ge0-3" in VPP and then "dhclient -v
ge0-3"
on Linux without success. Is there anything I have to configure or is
this not possible? I'm using VPP 23.02 with lcpng master.
Any help is highly appreciated.
Best regards,
Stefan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22642): https://lists.fd.io/g/vpp-dev/message/22642
Mute This Topic: https://lists.fd.io/mt/97322107/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-