Skip to content

network: dhcp renew - #11883

Merged
yuwata merged 4 commits into
systemd:masterfrom
yuwata:network-dhcp-renew
Sep 22, 2019
Merged

yuwata merged 4 commits into
systemd:masterfrom
yuwata:network-dhcp-renew

Conversation

@yuwata

@yuwata yuwata commented Mar 4, 2019

Copy link
Copy Markdown
Member

This adds a bus method to renew DHCPv4 addresses.

Comment thread src/network/networkd-link-bus.c Resolved
@yuwata

yuwata commented Mar 5, 2019

Copy link
Copy Markdown
Member Author

@poettering Thank you for commenting such a quite early version.

@ssahani

ssahani commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

@yuwata you working on this ?

@yuwata

yuwata commented Sep 17, 2019

Copy link
Copy Markdown
Member Author

This is almost completed. But I have no way to test this PR... If you are interested in, please test this.

@ssahani

ssahani commented Sep 18, 2019

Copy link
Copy Markdown
Contributor

this works fine


DHCP CLIENT (0x79a266ed): REQUEST (renewing)
DHCP CLIENT (0x79a266ed): ACK
DHCP CLIENT (0x79a266ed): lease expires in 59min 58s
DHCP CLIENT (0x79a266ed): T2 expires in 52min 28s
DHCP CLIENT (0x79a266ed): T1 expires in 29min 59s
host0: Remembering updated address: 192.168.48.205/28 (valid for 1h)
host0: DHCP: No routes received from DHCP server: No data available
host0: Configuring route: dst: 192.168.48.193/32, src: n/a, gw: n/a, p

@yuwata

yuwata commented Sep 18, 2019

Copy link
Copy Markdown
Member Author

Thank you for testing this PR. I will try to add a test case later.

@ssahani

ssahani commented Sep 18, 2019 •

Copy link
Copy Markdown
Contributor

OK but please remove the WIP . I think it's works fine and much needed feature . @keszybz Please take a final look.

@yuwata

yuwata commented Sep 21, 2019 •

Copy link
Copy Markdown
Member Author

@ssahani Which software for DHCP server do you use? It seems DHCP servers of dnsmasq and systemd-networkd do not support RENEW command. I'd like to implement a test for this.

@yuwata yuwata changed the title [WIP] network: dhcp renew network: dhcp renew Sep 21, 2019
@yuwata

yuwata commented Sep 21, 2019

Copy link
Copy Markdown
Member Author

@ssahani I missed your comment in #13181 (comment). Still I am not sure why the test does not work on veth. But if it is true, then it seems hard to implement a test for this... Do you have any idea for testing this and SendRelease?

@ssahani

ssahani commented Sep 21, 2019

Copy link
Copy Markdown
Contributor

we can't test this on a veth but I have tested on real interface this works . we can capture packets on Wireshark and can see release packet been sent over interface. If in veth interface one end goes down then packet is not transmitted. While testing I found this and is correct. If you try sen to a VM in your laptop that should work.

@ssahani

ssahani commented Sep 21, 2019

Copy link
Copy Markdown
Contributor

LGTM

@yuwata

yuwata commented Sep 22, 2019

Copy link
Copy Markdown
Member Author

@ssahani Thank you for your review.

@yuwata
yuwata merged commit 82d1264 into systemd:master Sep 22, 2019
@yuwata
yuwata deleted the network-dhcp-renew branch September 22, 2019 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants