Bug 65114
Summary: | RFE: ifup-aliases iproute support, ifup/ifup-aliases scope support | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jbowman | ||||||
Component: | initscripts | Assignee: | Bill Nottingham <notting> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brock Organ <borgan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | rawhide | CC: | cww, dgunchev, fullung, iarlyy, joshua, jpopelka, ml-bz-dale, redhat-bugzilla, rvokal, shigorin, wonczak, woodard | ||||||
Target Milestone: | --- | Keywords: | FutureFeature | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Enhancement | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-04-26 16:10:30 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
jbowman
2002-05-17 18:34:39 UTC
Err, that should be 'SCOPE=host' in my example, but you get the idea... Also, it would be really useful to be able to specify ONBOOT=no for the aliased interfaces. This would allow you to preconfigure aliases identically on multiple machines to be brought up when necessary (for migrating services for example) It's so old... still issue persists?? -- Fedora Bugzappers Team Member Yes. I found this bug because I ran into a situation where ifconfig (with respect to an infiniband interface) said: -------------------------------------------------- $ ifconfig ib0 Ifconfig uses the ioctl access method to get the full address information, which limits hardware addresses to 8 bytes. Because Infiniband address has 20 bytes, only the first 8 bytes are displayed correctly. Ifconfig is obsolete! For replacement check ip. ... -------------------------------------------------- And that motivated me to rewrite ifup-aliases to use /sbin/ip instead of ifconfig. I have *lightly* tested the new file. (It brings up the aliases OK on my system, but I am sure there are untested code paths). Besides the changes directly related to changing from ifconfig to /sbin/ip, I have also done some variable initialization and changed some "${xxx}" to "${xxx:-}". This is because (just for testing) I had a "set -u" present to detect undefined variables. For a "freshen" I replaced a single invocation of /sbin/ifconfig $DEVICE netmask $NETMASK broadcast $BROADCAST; with /sbin/ip calls to flush the address and then re-add it as there seemed to be no directly corresponding /sbin/ip functionality. The base version of ifup-aliases came from initscripts-9.02.1-1.i686 as is current for Fedora 12. File to be attached to this bug: ifup-aliases.patch I will also attach a straight-up version of ifup-aliases for easy reference. Created attachment 400930 [details]
Patch ifup-aliases to remove ifconfig and use /sbin/ip instead
Created attachment 400931 [details]
Entire file (not just a patch) showing removal of ifconfig in favor of /sbin/ip
*** Bug 132925 has been marked as a duplicate of this bug. *** While readin up on bug #195365 and bug #195353, I've grepped through initscripts-9.20.1-1.fc14 -- lots of ifconfig in ifup-* See also https://www.linuxfoundation.org/collaborate/workgroups/networking/etcnet -- maybe let's go with innovation instead of age-old crap which isn't easily fixable due to ifconfig-era design decisions wrt ifcfg-* format? /etc/net represents a new approach to Linux network configuration tasks. Inspired by the limitations of traditional network configuration subsystems, /etc/net provides builtin support for configuration profiles, interface name management, removable devices, full iproute2 command set, interface dependencies resolution, QoS and firewall configuration frameworks. /etc/net provides support for the following interface types: Ethernet, WiFi (WEP), IPv4/IPv6 tunnels, PSK IPSec tunnels, VLAN, PLIP, Ethernet bonding and bridging, traffic equalizer, Pent@NET, Pent@VALUE, SkyStar-2, TUN/TAP, OpenVPN TUN/TAP, OpenSSH TUN/TAP, usbnet and PPP. Due to its modular structure, support for new interface types can be added without overall design changes. http://git.altlinux.org/people/sbolshakov/packages/?p=etcnet.git It's used by ALTLinux since aug-2004 Nevertheless, /etc/net is not a drop-in replacement for what we have now. Definitely. It's not maintaining bug compatibility like ifcfg-* (doing multiple IPs per interface with numbered variables is a syntax/parser horror), but this clearly has a price to pay in docs, habits, 3rd party tools and archived advice. /etc/net was successfully introduced as an alternative networking configuration subsystem in ALT Linux and for a release or so there both net-scripts (distilled from initscripts) and etcnet were available (though conflicting over /etc/rc.d/init.d/network, of course). Any chance we could get this fixed? This bug is headed for it's 10th birthday. Yes please... even if need a big overhaul, let's do it! ifup-aliases uses ip as of a F-16 update. See git commit 59a9d2b792ff218f5ccd8e4e8c0ffe6f76efb13a. |