Ticket #183 (new task)

Opened 14 months ago

funtoo "bare" net initscripts feedback request

Reported by: drobbins@funtoo.org Owned by: roy
Priority: major Milestone:
Component: rc Version: 0.5
Keywords: Cc:

Description

I'm planning to move Funtoo to "bare" initscripts for networking that call ifconfig/route/ip directly (with *minimal* bash function help, like maybe 10-liners max) rather than using a large helper script.

I'm looking for ideas on how to organize these scripts. So far, in my initial test configuration, I've created net.eth? and net.br? scripts that set up these interfaces by calling ifconfig/brctl/etc directly. I"ve also set up dependencies so that net.br0 depends on net.eth0 since eth0 gets added to the bridge. Standalone interfaces like net.eth1 have a dependency on net.lo but do not have anything depending on them - they just get added to the default runlevel. I have all my net.* scripts providing "net". I have each net.* script set up its own interface-specific routes.

I am also testing another arrangement in a virtual container with a more basic static ip config. Similar to above, except I have a separate net.route script that sets up all routes for all interfaces, and depends on the net.eth0 script. In this configuration, I have only net.route providing "net".

I'm interested in your opinion on these approaches and what you think might work best in the long-run. Also interested in info on dhcpcd-5 integration.

Note: See TracTickets for help on using tickets.