summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Include the IPv6 address + hostnames in /etc/networks.Darren 'Tadgy' Austin2020-05-231-4/+2
|
* Correct a couple of issues making shellcheck barf errors.Darren 'Tadgy' Austin2020-01-051-2/+2
| | | | | The rest of the shellcheck issues are non-issue warnings that could possibly do with being corrected, but it's not a huge issue.
* A couple of updates to netconfig and rc.inet1.conf.Darren 'Tadgy' Austin2019-12-172-5/+8
|
* Clarify configuration of IPALIASES in the examples section.Darren 'Tadgy' Austin2019-12-121-3/+4
| | | | Thanks to Fraks on LQ.
* Match interface name exactly when taking interfaces down.Darren 'Tadgy' Austin2019-11-291-1/+1
| | | | Thanks to Master-Passeli for the bug report.
* Very small correction of rc.inet1.conf text.Darren 'Tadgy' Austin2019-11-292-2/+2
|
* IPv6 configuration support in netconfig. See full log.Darren 'Tadgy' Austin2019-11-201-159/+310
| | | | | | | | | | | | | | | | | | A lot of the changes are formatting (I had a bug I couldn't hunt down and the formatting wasn't helping), but there's quite a few new dialogs - not only to configure IPv6, but adding better user input issue handling. * Modify creation of the rc.inet1.conf file to incorporate IPv6. * Edited error text in syntax_check_color() to be more generic. * Added SLAAC option to the configuration type menu. * Added a new DHCP selection menu to cater for v4, v6 and both configurations. * Edited various dialog texts to be more consistent and/or IPv6 friendly. * Validate netmask that's entered by the user. * Produce an error about missing netmask when IPv4 IP is set. * Only do netmask and gateway (IPv4) prompting if an IPv4 address was set. * Added static IPv6 configuration dialogs. * Updated nameserver configuration dialog. * Added IPv6 fields to the final static IP confirmation/edit screen.
* Add VLAN configuration support to netconfig.Darren 'Tadgy' Austin2019-11-201-0/+30
|
* Update text in rc.inet1.conf (and netconfig).Darren 'Tadgy' Austin2019-11-182-8/+10
|
* Flush interface before applying any IPs.Darren 'Tadgy' Austin2019-11-181-0/+2
| | | | Thanks to abga on LQ.
* Quiet "modprobe ipv6" using its built-in way to do it :-)Robby Workman2019-11-151-1/+1
|
* Update manpages with new interface configurations.Darren 'Tadgy' Austin2019-11-152-25/+71
|
* Quiet down the ipv6 modprobe. Tell the user what is going on.Darren 'Tadgy' Austin2019-11-151-1/+3
| | | | Thanks to upnort for the suggestions.
* Fix up 'ipv6' modprobe config to match othersRobby Workman2019-11-151-0/+6
|
* Fix up 'bonding' modprobe config to match othersRobby Workman2019-11-151-0/+7
|
* README.bonding: Fix minor typosRobby Workman2019-11-141-3/+3
|
* README.VLANs: Fix minor typosRobby Workman2019-11-141-2/+2
|
* README.IPv6: Fix minor typos and grammar stuffRobby Workman2019-11-141-7/+7
|
* Remove toplevel README - it's stale now.Robby Workman2019-11-141-26/+0
|
* Update text in rc.inet1.conf, and sync with netconfig.Darren 'Tadgy' Austin2019-11-142-32/+70
|
* Update documentation. Default BONDMODE to balance-rr. Update rc.inet1.conf.Darren 'Tadgy' Austin2019-11-144-16/+238
|
* Several small fixes - see log.Darren 'Tadgy' Austin2019-11-131-8/+24
| | | | | | | | | * Added more debug_log calls around taking down interfaces. * When taking down a bridge, put the member interfaces down too. * Configure wireless interfaces before everything else - it might be that a wireless interface is part of a bond/bridge/VLAN. * When taking down VLAN interfaces, check if the underlying interface has an IP address. If it does, leave it up; else take it down.
* When creating a bond, flush the underlying interface IP.Darren 'Tadgy' Austin2019-11-131-4/+2
| | | | Also removed redundant setting of a 0.0.0.0 IP address.
* Remove BONDOPTS, VLANOPTS and BROPTS and replace with generic IFOPTS.Darren 'Tadgy' Austin2019-11-132-29/+45
| | | | | | | | | | Previously we had an xOPTS variable for each type of interface that could be configured. I've replaced this with a generic IFOPTS option which can be used to supply interface type specific options to 'ip'. As the option is now generic, it can be applied to physical interfaces too; so interfaces such as eth0 can have options applied just like a virtual interface.
* In rc.inet1.conf, be consistant with spacing and commenting.Darren 'Tadgy' Austin2019-11-131-46/+45
|
* Added support for a BROPTS variable to set bridge specific settings.Darren 'Tadgy' Austin2019-11-132-7/+18
| | | | | | | Before, it was not possible to set bridge specific options when creating a bridge. This option adds the ability to set options via a BROPTS variable, which takes a pipe (|) delimited set of options as documented in the ip-link(8) man page (search for "BRIDGE Type Support").
* Be consistent with variable case. Emit warning when assuming netmask.Darren 'Tadgy' Austin2019-11-131-47/+50
|
* Create and document a new VLANOPTS variable.Darren 'Tadgy' Austin2019-11-132-0/+12
| | | | | This variable can be used to set custom options to configure the VLAN interface. It does not need to be used in 'normal' operation with a VLAN.
* Initial support for bonding (link aggrigation) in rc.inet1.Darren 'Tadgy' Austin2019-11-133-7/+72
| | | | | | | | | | | | | | | | | | | The bonding code introduces three new variables for use in rc.inet1.conf: BONDNICS[x]="" BONDMODE[x]="" BONDOPTS[x]="" The BONDNICS variable takes a list of interfaces which should be slaved to the bond. BONDMODE sets the mode of the bond. Useful options are 'balance-rr', 'active-backup' and '802.3ad'. A full list of options can be found in /usr/src/linux/Documentation/networking/bonding.txt and README.bonding. BONDOPTS are a pipe (|) separated list of options to apply to the bond after the interfaces have been added. Useful options are 'primary' (which is required when BONDMODE is 'active-backup', 'xmit_hash_policy' (which can be used with 'balance-rr' to choose the hash policy, 'lacp_rate' (which should be used with '802.3ad' mode), and 'miimon' (which should be used with all modes) See the kernel source documentation or README.bonding for more info.
* Small fixes - see full log.Darren 'Tadgy' Austin2019-11-122-13/+10
| | | | | | | | | | | Remove code to skip interfaces that do not have IP addresses configured. This checking is redundant now, and prevents interfaces being brought up without IP addresses - which is important for bridging/bonding/VLANs. When grabbing the vlan ID from the interface name, use ## instead of #. Move the point where bridges are taken down to before the point where wireless interfaces are taken down. This is required so that a bridge on a wireless interface is take down before the interface itself. When looping through the interfaces to take down, use MAXNICS-1.
* Add example ipv6.conf for the modprobe.d directory.Darren 'Tadgy' Austin2019-11-121-0/+2
|
* Fix typo when de-configuring interfaces, i->1.Darren 'Tadgy' Austin2019-11-111-1/+1
|
* VLAN support. Sync logging/IPv6 changes from tadgy-ipv6-fixes branch.Darren 'Tadgy' Austin2019-11-112-73/+132
| | | | | | | | | | | | | | | | | | | | rc.inet1: * VLAN support added to rc.inet1{,.conf}. * Created new info_log function to replace $LOGGING variable. * When logging to syslog, use a tag of 'rc.inet1' with PID. * Decrease script noisyness at non-debug levels. * Add more debugging logging for testing. * Use -4 when configuring IPv4 loopback address. * Configure ::1 for IPv6 loopbacking. * Use 'local' not 'declare' in functions. * Move where DAD is disabled when setting IPv6 addresses. * Add error checking to some calls to 'ip'. * Walk backwards through interfaces when deconfiguring. rc.wireless: * Log to syslog, failling back to stdout. * Output error to stderr if not called from rc.inet1. Manpages and netconfig: * Updated for new VLAN support.
* Update rc.inet1.conf in netconfig. Update manpage.Darren 'Tadgy' Austin2019-11-072-0/+41
|
* Added README.VLANs with some basic usage instructions.Darren 'Tadgy' Austin2019-11-071-0/+20
|
* Walk _backwards_ through interfaces when deconfiguring.Darren 'Tadgy' Austin2019-11-071-2/+3
|
* Document MAXNICS in rc.inet1.conf. Extended VLAN description.Darren 'Tadgy' Austin2019-11-071-1/+7
|
* Initial commit of VLAN support.Darren 'Tadgy' Austin2019-11-072-4/+45
|
* Update manpages for changes to rc.inet1Darren 'Tadgy' Austin2019-11-061-26/+11
|
* Update rc.inet1.conf in netconfig.Darren 'Tadgy' Austin2019-11-061-14/+17
|
* Put IPv6 config with the IPv4 config in rc.inet1.confDarren 'Tadgy' Austin2019-11-061-14/+17
|
* Use 'broadcast +' for bringing up interfaces in IPALIASES block.Darren 'Tadgy' Austin2019-11-061-2/+2
|
* Remove IP6ALIASES block. IP6ADDR->IP6ADDRS.Darren 'Tadgy' Austin2019-11-061-17/+1
|
* Sync netconfig's rc.inet1.conf with the new one. Add ::1 to loopback in hostsDarren 'Tadgy' Austin2019-11-061-11/+44
|
* New configuration methodology - see full commit log.Darren 'Tadgy' Austin2019-11-062-24/+24
| | | | | | | | | | | It occurred to me that IPv6 addresses don't really need to have IP6ALIASES since all IPs are just added to the interface itself. So I've changed the syntax from using IP6ADDR + PREFIXLEN + IP6ALIASES to using just a single IP6ADDRS array, which takes a list of IP addresses with a prefix length in a space separated list. eg: IP6ADDRS[0]="a:b:c:d::1/64 1:2:3::1/48" If the prefix length is omitted a /64 length is assumed and a warning emitted.
* Updated specification and wrapped all lines at 80 chars.Darren 'Tadgy' Austin2019-11-061-128/+191
|
* If modprobe events occurred, sleep for a bit after they finishedRobby Workman2018-11-261-1/+6
| | | | | | This is ugly, but it beats doing the sleep regardless of whether there's any need for it and causing folks to whine about two seconds of loss in boot time.
* Add README.IPv6Darren 'Tadgy' Austin2018-11-262-9/+183
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Updated manpagesDarren 'Tadgy' Austin2018-11-262-124/+208
| | | | | | Thanks to David Spencer for much of this. Signed-off-by: Robby Workman <rworkman@slackware.com>
* Flush ip addresses on lo when taking interfaces downDarren 'Tadgy' Austin2018-11-261-0/+2
| | | | | | | This prevents an annoying "RTNETLINK answers: File exists" warning when restarting networking Signed-off-by: Robby Workman <rworkman@slackware.com>