View previous topic :: View next topic |
Author |
Message |
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Sat Nov 08, 2014 5:11 pm Post subject: |
|
|
Trying it right now. Back in a minute...
EDIT: Back! Roy, I owe you some beercoins. Thanks a lot, man . _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sat Nov 15, 2014 12:16 pm Post subject: |
|
|
Heh guess you can edit this post to say "yes" then? |
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Mon Nov 17, 2014 3:34 pm Post subject: |
|
|
UberLord wrote: | Well, he needs to edit it to include the allowinterfaces line as well... |
2 questions:
- what is the default value for allowinterfaces?
- why doesn't configuring an interface via 'interface foo' add it to the allowed interfaces? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Nov 17, 2014 3:42 pm Post subject: |
|
|
Dr.Willy wrote: | UberLord wrote: | Well, he needs to edit it to include the allowinterfaces line as well... |
2 questions:
- what is the default value for allowinterfaces?
- why doesn't configuring an interface via 'interface foo' add it to the allowed interfaces? |
The default value for allowinterfaces is nothing, which is to say allow all interfaces except for loopback and pointopoint interfaces.
As to the latter, well that's a good question.
I suppose that if allowinterfaces is NOT defined in the config, we could append it in code. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Mon Nov 17, 2014 4:46 pm Post subject: |
|
|
UberLord wrote: | The default value for allowinterfaces is nothing, which is to say allow all interfaces except for loopback and pointopoint interfaces. |
So is 'allowinterfaces lo *' actually equivalent to just adding lo or does it also add pointtopoint interfaces?
UberLord wrote: | I suppose that if allowinterfaces is NOT defined in the config, we could append it in code. |
Does that even make sense at all? I mean creating a specific configuration for an interface while not letting dhcpcd discover it?
Because otherwise I'd say add it to allowinterfaces unless it's in denyinterfaces. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Nov 17, 2014 4:52 pm Post subject: |
|
|
Dr.Willy wrote: | UberLord wrote: | The default value for allowinterfaces is nothing, which is to say allow all interfaces except for loopback and pointopoint interfaces. |
So is 'allowinterfaces lo *' actually equivalent to just adding lo or does it also add pointtopoint interfaces?
|
Heh, yeah it does by virtue of the *
Quote: | UberLord wrote: | I suppose that if allowinterfaces is NOT defined in the config, we could append it in code. |
Does that even make sense at all? I mean creating a specific configuration for an interface while not letting dhcpcd discover it?
Because otherwise I'd say add it to allowinterfaces unless it's in denyinterfaces. |
Yes in my mind it does make sense.
Take apache, or any server daemon, with allow/deny directives. They override any other setting. dhcpcd takes the same approach. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Mon Nov 17, 2014 5:20 pm Post subject: |
|
|
UberLord wrote: | Heh, yeah it does by virtue of the * |
Sooo … 'allowinterfaces lo *' actually does the same as 'allowinterfaces *'? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Tue Nov 18, 2014 2:42 am Post subject: |
|
|
Hmm I agree it should just add a configured interface; it seems odd to have allow everything, and really I'd just want whatever I configure as root to be added to the set, without needing to do anything else.
Apologies if I'm missing some subtlety. |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Tue Nov 18, 2014 9:53 am Post subject: |
|
|
steveL wrote: | Heh guess you can edit this post to say "yes" then? |
I forgot about that post but anyway the first post in this topic, which is *the* reference, has already been updated.
steveL wrote: | Hmm I agree it should just add a configured interface; it seems odd to have allow everything, and really I'd just want whatever I configure as root to be added to the set, without needing to do anything else.
Apologies if I'm missing some subtlety. |
Well, not sure if this was the intent but let's not confuse *configuring* an interface and *bring it up/down*, which aren't the same thing. To me at least. As a matter of fact, leaving allowinterfaces blank doesn't stop dhcpcd from configuring the interface. The directive must include lo to also bring it up. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Schnulli Guru
Joined: 25 Jun 2010 Posts: 320 Location: Bremen DE
|
Posted: Tue Dec 09, 2014 12:00 am Post subject: |
|
|
VinzC ......pssssst
have a look at RedHat and CentOS scripts "ifnetup and ifnetdown"
they usually work fine and might help you and us all |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed Dec 10, 2014 7:36 am Post subject: |
|
|
Schnulli wrote: | VinzC ......pssssst
have a look at RedHat and CentOS scripts "ifnetup and ifnetdown"
they usually work fine and might help you and us all |
I prefer dhcpcd's simplicity though. One script, one config, fits most cases. I know CentOS/RH network management but I still find it too complex for the simplest setup. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
Schnulli Guru
Joined: 25 Jun 2010 Posts: 320 Location: Bremen DE
|
Posted: Wed Dec 10, 2014 4:12 pm Post subject: |
|
|
the ifnetup and ifnetdown scripts are a good example to have a cron checking if or dont connected ^^ thats all, complex yes, but works..... |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Wed Dec 10, 2014 8:35 pm Post subject: |
|
|
steveL wrote: | I'd just want whatever I configure as root to be added to the set, without needing to do anything else. |
UberLord wrote: | This has now been implemented.
However, allowinterfaces is still respected above everything else. |
Ah thanks, nice one :-) I take it you mean for deny?
Schnulli wrote: | the ifnetup and ifnetdown scripts are a good example to have a cron checking if or dont connected ^^ thats all, complex yes, but works..... |
It's better to post a link to a [url], usually from a version-control web-interface, if you want people to look at stuff. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Mon Jan 05, 2015 9:52 am Post subject: Re: TIP: Complete network stack without net.* scripts |
|
|
Dr.Willy wrote: | charles17 wrote: | Also, I am wondering why Gentoo handbook hasn't yet adopted this simplified setup. |
That is a good question. |
Just opened bug 534752. |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 544 Location: Germany
|
Posted: Mon Jan 05, 2015 4:05 pm Post subject: |
|
|
One question. I have network filesystem which is supposed to be mounted on boot. It is listed in /etc/fstab. Things are working fine when I use net.* scripts. Without them, the filesystem is not mounted. I have to do it manually. Is there any simple way to tell dhcpcd to do it? I guess, I can create some script that dhcpcd executes when network is up, but rather relied on existing solution. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Mon Jan 05, 2015 4:27 pm Post subject: |
|
|
v_andal wrote: | One question. I have network filesystem which is supposed to be mounted on boot. It is listed in /etc/fstab. Things are working fine when I use net.* scripts. Without them, the filesystem is not mounted. I have to do it manually. Is there any simple way to tell dhcpcd to do it? I guess, I can create some script that dhcpcd executes when network is up, but rather relied on existing solution. | There is /etc/init.d/netmount which is part of openrc.
I have rpcbind and fetchmail being started after dhcpcd comes up. And I guess it sould work for netmount as well.
https://wiki.gentoo.org/wiki/Network_management_using_DHCPCD/Network_dependant_services |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Tue Feb 13, 2018 6:05 pm Post subject: |
|
|
Do i put static IPv6 gateway just after IPv4 gateway to "static routers" line in dhcpcd.conf or is it even supported? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Fri Feb 16, 2018 11:47 am Post subject: |
|
|
UberLord wrote: | While the setting of a static IPv6 address is supported, routes are not.
You'll still need something broadcasting RA's. |
Code: | ip -family inet6 route add default via [IPv6-GW] dev eth0 |
Ok, dhcpcd.conf with static IPv6 address and noipv6rs option with above ip command at local startup script seem keep it working. With ipv6rs enabled it only works for a while, apparently some problem in OVH/Kimsufi network configuration. |
|
Back to top |
|
|
|