Talk:Netifrc

From Gentoo Wiki
Jump to: navigation, search
Note
This is a talk page. Please add newer comments below older ones, and sign your comments using four tildes (~~~~). When adding a new section (at the bottom of the page), please mark it as "open for discussion" by using {{talk|open}} so it will show up in the list of open discussions.

Additional section for finding network names

Talk status
This discussion is done.

A section should be added on how to find out what the network interface names are, maybe to run dmesg | grep -i 'network interface'. — The preceding unsigned comment was added by Charles17 (talkcontribs) 07:10, May 12, 2015‎

I added two methods for identifying interfaces. Don't forget to sign your messages on talk pages with your signature. --Maffblaster (talk) 18:36, 12 May 2015 (UTC)
Sorry, I am in doubt if having such section here was a good idea. These information about network interface names seem to be needed in several places, not only here. Especially since udev pushed its "predictable" crap, there are multiple threads on the forums with problems as people don't know about. Of course, most of that trouble is caused by using netifrc at all. But even without using netifrc, this knowledge about the network interface names could be needed, e.g. for setting a static IP address per interface without using the gui. I think a separate article Network interface in [1] might be a better place. There we could collect such information without bloating netifrc, wifi or other articles.
But, what about the "rc-update add net.<interface_name> default" stuff? This is very specific to netifrc and should be mentioned here, see Handbook:Parts/Networking/Introduction, bug #534752.
Regarding "Use curly braces and commas to speed up the process when dealing with multiple interfaces:", why should using syntax instead of typing the path twice be specific for multiple interfaces? --Charles17 (talk) 06:13, 13 May 2015 (UTC)
The ln with curly braces was provided simply as a tip for users creating multiple interfaces in order to save them a bit of typing.. You can use either format; they are both visible in the Handbook. --Maffblaster (talk) 23:48, 17 April 2017 (UTC)

"DHCP is the default behavior ..."

Talk status
This discussion is done as of July 28, 2017.

Please regard this sentence given in the filebox Netifrc#DHCP. Almost everybody can guess what it means. But, could it be reworded something like "The network configuration scripts will use dhcp by default to set up your interfaces. If you need to set up something more ..." and the example shown with some non-default configuration?

As the "behavior" is already default, the example presently shown is useless (even worse in the handbook). Putting dhcp or not doesn't change anything. So why not put a more useful example?

Another thing, regarding /etc/conf.d/net: Wasn't there something saying netifrc should work in some (or more) cases even without setting up the /etc/conf.d/net file? If so, this might be mentioned in Netifrc#Files before before saying "it is created by the system administrator ...".
--Charles17 (talk) 08:05, 28 July 2017 (UTC)

Haha! Charles, I knew you were going to have to say something about this. Did you see my commit message? :P
Even though DHCP is the default behavior I think it is okay to provide an example on how to set DHCP, even if it is the default for netifrc. :) It contrasts the static examples nicely. What is the harm in having an example visibly present? If you want to change the comment, feel free. I just want our users to be able to come to the wiki and view the examples here in this 'parent' article for netifrc.
I'm not sure if there is a place that talks about not setting up the net file, but if there is please add a reference to it and feel free to add additional text. I just didn't want you to completely remove these examples from this article; you can always make what I have added better! Kind regards, --Maffblaster (talk) 16:44, 28 July 2017 (UTC)
Also I should say, I'm totally okay with you 'porting' more examples of netifrc from the Handbook to this article. I actually think it's a good thing if articles outside Handbook cover (in more detail hopefully) the concepts covered in the Handbook. Reason being: the Handbook can't cover everything since it's scope is limited to getting Gentoo running on certain hardware. In fact, I think there is too much covered in the Handbook already; it really shouldn't be the central source of knowledge (on the wiki) for networking with netifrc. If you are not interested in porting it then I will add it to my list of things todo. Let me know via reply here if you're interested. Kind regards, --Maffblaster (talk) 16:57, 28 July 2017 (UTC)
Just found this forum post and if I am not completely misreading it, then users should first try without that file. I think of "normal" computers behind a router providing dhcp. And in case network makes problems, then the conf.d/net file should be created with some useful settings.
And here is an excellent example how youself did handle a Handbook's obsolete proposal: https://wiki.gentoo.org/wiki/Handbook_Talk:Parts/Networking/Wireless
I have too little experience with netifrc and I am not willing to test it again. Putting more useful information here should be done by someone who has better experience with that tool.--Charles17 (talk) 17:56, 28 July 2017 (UTC)
About removing that part from the Handbook, I was trusting what you said about WPA to be accurate. I didn't look myself. I'll ask Roy Bamford (NeddySeagoon) to take a look a this article and fix anything that's not accurate to clear. Kind regards, --Maffblaster (talk) 22:15, 28 July 2017 (UTC)