Hi all, I am using vpp as a router/gateway. I have one of my interfaces set to DHCP client. It is receiving dhcp address from my ISP (comcast).
vpp: v20.01 ubuntu: 18.04 LTS 4.15.0-76-generic Problem: dhcp client keeps losing IP address and this is clearing NAT pool, which in turn is causing all NAT sessions to drop/clear. This means, whenever dhcp client is renewing lease, vpp is completely losing internet connection. *The drop is happening every 30 mins* which is the lease time from dhcp server (I think) How did I test this: I set the interface to static address and this issue is not happening at all. Logs: As you can see below, the time it takes to recover is around 1sec to 2 seconds. During this time, all internet connections are completely dropped. I also see a lot of dhcp/client timeout messages. Is this even an issue in dhcp client? If so, can someone point me in the right direction? Really appreciate the help! vppctl sh log 2020/04/04 17:33:27:887 notice dhcp/client timeout 2020/04/04 17:33:28:887 notice dhcp/client timeout 2020/04/04 17:33:29:887 notice dhcp/client timeout 2020/04/04 17:33:30:887 notice dhcp/client timeout 2020/04/04 17:33:31:887 notice dhcp/client timeout 2020/04/04 17:33:31:887 notice dhcp/client lease expired: [0] wan0 state DHCP_BOUND installed 1 addr 1.3.2.20/24 gw 1.3.2.1 server 10.0.30.195 dns 22.22.21.140 dns 22.22.21.141 dns 3.44.1.82 dns 3.44.1.90 lease: *lifetime:1800* *renewal-interval:900* expires:51347.49 (now:51347.67) retry-count:188, next-xmt:51347.67 adjacencies:[unicast:11 broadcast:0] 2020/04/04 17:33:31:890 notice *dhcp/client enter discover: [0] wan0 state DHCP_DISCOVER installed 0 no address* lease: lifetime:1800 renewal-interval:0 expires:51347.49 (now:51347.68) retry-count:0, next-xmt:51347.68 adjacencies:[unicast:-1 broadcast:0] 2020/04/04 17:33:31:890 notice dhcp/client send: type:discover bcast:1 [0] wan0 state DHCP_DISCOVER installed 0 no address lease: lifetime:1800 renewal-interval:0 expires:51347.49 (now:51347.68) retry-count:0, next-xmt:51347.68 adjacencies:[unicast:-1 broadcast:0] 2020/04/04 17:33:32:887 notice dhcp/client timeout 2020/04/04 17:33:32:887 notice dhcp/client enter discover: [0] wan0 state DHCP_DISCOVER installed 0 no address lease: lifetime:1800 renewal-interval:0 expires:51347.49 (now:51348.67) retry-count:1, next-xmt:51348.67 adjacencies:[unicast:-1 broadcast:0] 2020/04/04 17:33:32:887 notice dhcp/client send: type:discover bcast:1 [0] wan0 state DHCP_DISCOVER installed 0 no address lease: lifetime:1800 renewal-interval:0 expires:51347.49 (now:51348.67) retry-count:1, next-xmt:51348.67 adjacencies:[unicast:-1 broadcast:0] 2020/04/04 17:33:32:896 notice dhcp/client enter request: [0] wan0 state DHCP_REQUEST installed 0 no address lease: lifetime:1800 renewal-interval:900 expires:53148.68 (now:51348.68) retry-count:0, next-xmt:0.00 adjacencies:[unicast:-1 broadcast:0] 2020/04/04 17:33:32:896 notice dhcp/client send: type:request bcast:1 [0] wan0 state DHCP_REQUEST installed 0 no address lease: lifetime:1800 renewal-interval:900 expires:53148.68 (now:51348.68) retry-count:0, next-xmt:0.00 adjacencies:[unicast:-1 broadcast:0] 2020/04/04 17:33:32:915 notice dhcp/client update: [0] wan0 state DHCP_BOUND installed 1 addr 1.3.2.106/24 gw 1.3.2.1 server 10.0.30.195 dns 22.22.21.140 dns 22.22.21.141 dns 3.44.1.82 dns 3.44.1.90 2020/04/04 17:33:32:919 notice * ip/neighbor add: wan0, 1.3.2.1*
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16029): https://lists.fd.io/g/vpp-dev/message/16029 Mute This Topic: https://lists.fd.io/mt/72855901/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-