[netctl] Add support for DefaultRoute to ethernet and wireless connections
Task Info (Flyspray) | |
---|---|
Opened By | brent saner (sanerb) |
Task ID | 64651 |
Type | Feature Request |
Project | Arch Linux |
Category | Arch Projects |
Version | None |
OS | All |
Opened | 2019-11-26 11:23:40 UTC |
Status | Assigned |
Assignee | Jouke Witteveen (jouke) |
Details
Description: I would like to suggest adding support for a DefaultRoute=(true|false) configuration options for connection types ethernet and wireless, in addition to an IgnoreRoutes=(true|false) option.
dhcpcd has the -G flag for this, at least for ignoring a default route, but unfortunately dhclient does not. It can, however, be supported by a dhclient.conf file and accompanying script (by not requesting the "routers" DHCP option, option 3).
This has the added benefit of providing an in-band resolution to this bug: https://wiki.archlinux.org/index.php/Netctl#RTNETLINK_answers:File_exists(with_multiple_NICs) as one can simply ignore the default route on additional NICs.
IgnoreRoutes would ignore all RFC 3442 routes in the DHCP lease (by not requesting the "rfc3442-classless-static-routes" DHCP option, option 121). This is different from the "default route" or "gateway" option ("routes", option 3).