aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
Commit message (Collapse)AuthorAgeFilesLines
* ipv6_add_addr_on_device: replace the existing address on NICDavid Kaspar [Dee'Kej]2017-02-271-1/+1
| | | | | | | | Instead of adding the IPv6 address when ifup is called, we replace the address, because it might have been auto-assigned before by RA. This is to assure that static NIC configuration will take effect if the NIC was already dynamically configured by RA.
* network: load NetworkManager connection via dbusPetr Horáček2017-02-141-1/+9
| | | | | Use dbus to refresh configuration files for NetworkManager in order to make ifup and ifdown faster.
* network: check for running NetworkManager via dbusPetr Horáček2017-02-141-1/+5
| | | | Use dbus instead of nmcli to make ifup command faster.
* sysconfig/network: NO_DHCP_HOSTNAME option introducedDavid Kaspar [Dee'Kej]2016-11-162-9/+29
| | | | | | | Previously, some administrators were unable to force initscripts to not obtatin hostname from DHCP, even though they were using static configuration of network. Righ now, setting 'NO_DHCP_HOSTNAME' to 'yes', 'true' or '1' in /etc/sysconfig/network will allow them to do so.
* fix typo in IPV6_SET_SYSCTLSPavel Šimerda2016-11-151-1/+1
| | | | | | | Typo introduced in commit 432951d. Related: https://github.com/fedora-sysv/initscripts/pull/2 Signed-off-by: Pavel Šimerda <pavlix@pavlix.net>
* network-functions: do not send hostname via dhclient everytimeDavid Kaspar [Dee'Kej]2016-11-102-9/+25
|
* ipv6_wait_tentative(): exit immediately when dadfailed occursDavid Kaspar [Dee'Kej]2016-11-011-3/+22
|
* ifup-eth: if arping fails, output responding MACLukas Nykryn2016-10-312-4/+6
| | | | Resolves: #1099026
* ifup-post: introduce new configuration option NOROUTESETDavid Kaspar [Dee'Kej]2016-10-311-1/+3
| | | | This has patch has been suggested in RHBZ #950453, by Konrad Moson.
* ifup-post: use is_false() function instead of checking for "no" stringDavid Kaspar [Dee'Kej]2016-10-311-2/+5
|
* ifup-aliases: send gratuitous ARPs when adding addressesLukas Nykryn2016-10-311-0/+6
|
* Add ability to specify arbitrary route optionsPhil Dibowitz2016-10-271-0/+2
| | | | | | | | | | | | `ifup` can set _some_ route options. Today it's missing several and so, to set something like `mtu` or `advmss` you have to do hacks like: ``` METRIC='10 mtu 1480' ``` which is sub-optimal. Rather than one-off add support for everything in the man page, provide a hook for arbitrary extra route options.
* Fix typo'd variable in 6to4 cleanupPhil Dibowitz2016-10-121-2/+2
| | | | | | Thanks to shellcheck. :) This is ontop of the whitespace PRs, those should go in first.
* Use the is_true() and is_false() functions where possibleDavid Kaspar [Dee'Kej]2016-10-126-11/+11
|
* [3/3] Remove tabs and fix spacing: ifup/ifdown scriptsPhil Dibowitz2016-10-1219-779/+782
|
* [2/3] Remove tabs and fix spacing: network-functionsPhil Dibowitz2016-10-121-284/+289
|
* [1/3] Remove tabs and fix spacing: ipv6 scriptsPhil Dibowitz2016-10-124-1151/+1149
| | | | | | | | | | | | | | | | | The network-scripts are a mix of tabs and spaces (!!) as well as completely inconsistent indentation (some 2, some 4). This is a series of 3 patches to move the entire of network-scripts to 2-space indentation for consistency so I can develop on the codebase without my brain bleeding. I don't feel strongly about 2 vs 4... 2 was just most common in the first file I picked, so I used that. This set is in 3 sets for easier reviewing and easier reverting if necessary: * 1/3 - ipv6 files * 2/3 - network-functions - it needed it's own * 3/3 - ifup/ifdown files
* Allow someone to keep accept_ra on while using static addresses.Phil Dibowitz2016-10-101-1/+3
| | | | | | | It's reasonable (and common) to assign static addresses while still wanting to get your default gw from your router. The assumption that not wanting SLAAC means not wanting RA is flawed, but I don't want to break backwards compatability, so I'm adding an additional option.
* Provide a mechanism to prevent network-scripts from messing with sysctlsPhil Dibowitz2016-10-103-33/+42
| | | | | | | | | | | network-scripts makes odd assumptions, like if I don't want SLAAC (i.e. if I turn off AUTOCONF) that I also don't want RA. This is not true, it's common to have a static local address, but to get my gateway through RA. This is one solution. I will also be sending a more specific solution to enable the above directly, but having a way to tell network-scripts to not mess with systctls seems generally useful.
* ifup-eth: fix setting preferred_lft and valid_lftLukas Nykryn2016-06-231-1/+1
|
* ifup: don't call nmcli on any lo deviceLukas Nykryn2016-06-162-2/+2
| | | | Resolves: #1336869
* source_config: tell NetworkManger to load ifcfg file even for NM_CONTROLLED=noThomas Haller2016-06-131-4/+6
|
* ipv6: wait for all global IPv6 addresses to leave the "tentative" stateLukas Nykryn2016-06-132-0/+23
|
* ifup: set valid_lft and preferred_lft to forever for static ipBlake Caldwell2016-05-301-0/+3
|
* ifdown-eth: fix comparisonLukas Nykryn2015-12-251-1/+1
|
* network-scripts: DEVICE and HWADRR could be quoted by apostropheLukas Nykryn2015-10-273-4/+4
|
* ifup-wireless: fix calling of phy_wireless_deviceLukas Nykryn2015-10-161-1/+4
|
* ifdown: clean ipv4 localhost addressesLukas Nykryn2015-10-151-7/+7
|
* ifup-eth: some bridge options are applied laterLukas Nykryn2015-09-161-1/+3
|
* network-functions: fix wireless detectionLukas Nykryn2015-08-061-1/+1
|
* fedora-readonly: use --make-slave with --bind mountsLukas Nykryn2015-07-011-0/+2
|
* ifup-post: should be interpreted in bashLukas Nykryn2015-05-251-1/+1
|
* bonding: warn if the ifup for slave device failedLukas Nykryn2015-05-071-1/+1
|
* ifup: don't call NM for loopbackLukas Nykryn2015-05-061-1/+1
|
* ifup: add missing quotesLukas Nykryn2015-04-241-1/+1
|
* network-functions: fix change_resolv_conf after grep updateLukas Nykryn2015-04-091-4/+4
|
* ifup-aliases: don't return with error when arping failsLukas Nykryn2015-04-051-1/+2
|
* ifup-aliases: inherit ARPCHECK from parent deviceLukas Nykryn2015-02-271-1/+2
|
* ifdown-eth: use scope host for loLeon Kos2015-02-041-2/+7
|
* ifup-ipv6: set accept_ra to 2 when IPV6FORWARDING=yes and IPV6_AUTOCONF=yesLukas Nykryn2015-01-191-1/+5
|
* ifup-post: check resolve.conf also with DNS2Lukas Nykryn2015-01-161-1/+8
|
* ifup-aliases: do not fail when only ipv6 addr is specifiedLukas Nykryn2015-01-151-0/+5
|
* network-functions: is_available_wait should wait even in the case that ↵Lukas Nykryn2015-01-121-4/+2
| | | | is_available returns 2
* ifdown-post: remove resolv.conf only in specific casesLukas Nykryn2015-01-081-1/+2
|
* network-functions: fix check in install_bonding_driverLukas Nykryn2015-01-021-1/+1
|
* ifdown-ipv6: reset addrgenmode to eui64 for deviceLukas Nykryn2014-12-161-0/+1
|
* ifup: fix typoLukas Nykryn2014-12-161-1/+1
|
* network-functions: reeplace iwconfig with iwValdis Kletnieks2014-12-101-2/+2
|
* improve_check_for_bond_master_in_install_bonding_driverAshish Samant2014-12-081-2/+14
| | | | | | | | | | | | | | | | | | The current grep check (fgrep -sqx) in install_bonding_driver, to determine whether bond master exists, fails when there are multiple bond masters. The fix assumes that multiple bond masters are on different lines in the file "/sys/class/net/bonding_masters", while they are in fact on the same line. Since fgrep -sqx checks for the entire line,it will never match any one bond master within the line and always fail if there are multiple bonds. This patch improves the check by creating a new function, bond_master_exists() to handle this and other conditions. Orabug: 19897586 Signed-off-by: Ashish Samant <ashish.samant@oracle.com> Signed-off-by: John Haxby <john.haxby@oracle.com> Acked-by: Mukesh Kacker <mukesh.kacker@oracle.com>
* adjust LINKDELAY when STP is onLaine Stump2014-11-121-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1162822 When ifup is called on an interface that has BOOTPROTO=dhcp, ifup-eth will call network-functions:check_link_down() to wait for carrier on the interface before starting dhclient. If the interface happens to be a bridge device, carrier will not come on until at least one attached device is in "forwarding" mode. If the bridge has STP enabled, it takes at least $DELAY * 2 + 5 seconds (sometimes slightly longer) for any attached device to go into forwarding mode. However, check_link_down() will only wait for max(${LINKDELAY}, 5) seconds for carrier, and there are *many* existing configs that have STP enabled but no setting for LINKDELAY. Every one of those configs will now fail to ifup the bridge device. The solution implemented in this patch is for ifup-eth to set LINKDELAY to at least ${DELAY} * 2 + 7 when the device is a bridge an STP is enabled. Since check_link_down() returns within .5 sec of carrier coming up, the worst effect this could have would be to take longer to fail in the case of a config where carrier was *never* going to come up. Otherwise, it will not create any more delay than is already present in cases that currently work, and will cause many other configs to become unbroken.