Bug 6752 - Getting the routes via DHCP by default
Summary: Getting the routes via DHCP by default
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Pascal Terjan
QA Contact:
URL: http://wiki.mageialinux.ru/index.php?...
Whiteboard:
Keywords: Junior_job
Depends on:
Blocks:
 
Reported: 2012-07-11 12:28 CEST by Alex Loginov
Modified: 2019-10-12 19:13 CEST (History)
1 user (show)

See Also:
Source RPM: dhcp
CVE:
Status comment:


Attachments

Description Alex Loginov 2012-07-11 12:28:06 CEST
No routes via DHCP by default, but in Mandriva 2010.2 routes are via DHCP by default.
Fixed in Mandriva: https://qa.mandriva.com/show_bug.cgi?id=62242
Comment 1 Manuel Hiebel 2012-07-11 18:04:16 CEST
Can you explain a bit more please, I don't understand your wiki page, 
thanks

Keywords: (none) => NEEDINFO

Comment 2 Alex Loginov 2012-07-11 18:35:04 CEST
It's better to see https://qa.mandriva.com/show_bug.cgi?id=62242 how Eugeni Dodonov fixed this bug (2011-01-19 14:32:51).

/etc/dhclient-exit-hooks is in wiki.
/etc/dhclient.conf is in wiki

to start: dhclient eth0

But I don't know how Dodonov fixed, but he saw wiki.

http://translate.google.ru/?hl=ru&tab=wT#ru|en|
Comment 3 Manuel Hiebel 2012-07-11 18:55:38 CEST
ok found it, needs more sleeping..

http://svn.mandriva.com/viewvc/packages?view=revision&revision=631680

but as you can see it here it's the same change, so ?

Summary: No routes via DHCP by default, but in Mandriva 2010.2 the routes are via DHCP by default => Getting the routes via DHCP by default
Source RPM: dhclient => dhcp

Comment 4 Manuel Hiebel 2012-07-11 18:56:05 CEST
>but as you can see it here it's the same change, so ?
missing to paste the link: http://svnweb.mageia.org/packages?view=revision&revision=84559
Comment 5 Alex Loginov 2012-07-11 22:01:35 CEST
/etc/dhclient-exit-hooks is in package dhcp-server, but dhcp-server is not installed by default in Mageia - this is the first reason why is not working.
After installing of dhcp-server I did not receive routes via DHCP.
It means Dodonov fixed something more.
Comment 6 Manuel Hiebel 2012-07-12 18:39:36 CEST
it's the same in mdv, so it's wrong too no ?
you should said that instead of make us guess things

So if we move the patch to the dhcp-client it's ok ?
Comment 7 Alex Loginov 2012-07-12 18:55:41 CEST
I think:
1) better to move the patch to the dhcp-client: /etc/dhclient-exit-hooks,
2) to include to the dhcp-client: /etc/dhclient.conf (in wiki),
3) to change ifup (or another network script): after rising up of net interface (for example, eth0) to do: dhclient eth0.
Manuel Hiebel 2012-07-12 19:02:17 CEST

Keywords: NEEDINFO => Junior_job
Severity: normal => enhancement

Comment 8 Alex Loginov 2014-01-20 10:51:34 CET
Will you add dhcp-server package as preinstalled in distro? And this bug will be closed.
Comment 9 David Walser 2014-01-21 16:46:42 CET
Installing dhcp-server by default certainly doesn't make any sense.  Maybe switching back to dhcpcd instead of dhcp-client as the default DHCP client would help?
Comment 10 Alex Loginov 2014-01-21 17:58:05 CET
Eugeni Dodonov fixed only dhcp-server for getting the routes via DHCP.
Pascal Terjan 2014-02-09 22:39:31 CET

Assignee: bugsquad => pterjan
CC: (none) => pterjan

Comment 11 Pascal Terjan 2014-09-16 06:45:14 CEST
I have moved the hook to the dhcp-client package
Comment 12 Pascal Terjan 2014-09-16 06:47:22 CEST
But we may rather want something in /etc/NetworkManager/dispatcher.d (not sure)
Comment 13 Dick Gevers 2014-09-17 15:22:08 CEST
Since dhcp-client-4.3.1-2 with the move in of the hook file, status network.service shows an error every time:

# systemctl -l status network.service

gives inter alia:

...ifplugd(eth0)[6959]: client: Determining IP information for eth0.../etc/dhclient-exit-hooks: line 8: hook: No such file or directory

...dhclient[7147]: DHCPREQUEST on eth0 to 255.255.255.255 port 67

...dhclient[7147]: DHCPACK from 192.168.xxx.xx

...ifplugd(eth0)[6959]: client: /etc/dhclient-exit-hooks: line 8: hook: No such file or directory

...dhclient[7147]: bound to 192.168.xxx.xx -- renewal in 402859 seconds.

So I'm afraid the change is not very helpful.

CC: (none) => dvgevers

Comment 14 Pascal Terjan 2014-09-17 15:28:32 CEST
Should be fixed in -4
Comment 15 Dick Gevers 2014-09-17 15:40:09 CEST
Wow; that's fast :)) Thanks!
Comment 16 Alex Loginov 2014-11-17 22:44:58 CET
Pascal, hello,

Nothing requires dhcp-client.
It is requires for networkmanager, for example; but without networkmanager I got non working network.
Dick Gevers 2019-10-12 19:13:56 CEST

CC: dvgevers => (none)


Note You need to log in before you can comment on or make changes to this bug.