summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change final occurances of IPADDR/NETMASK/IPALIASES over to IPADDRS.Darren 'Tadgy' Austin2021-02-272-28/+7
|
* Update manpages with new/changed options, update email address.Darren 'Tadgy' Austin2021-02-272-48/+48
|
* Update write out of rc.inet1.conf to new format. +moreDarren 'Tadgy' Austin2021-02-271-68/+54
| | | | | | | Change to new format IP6ADDRS when writing out /etc/networks. Remove old syntax variables. Use 'Exit' as cancel button label on some dialogs. Changed a couple of occurances of cancel to abandon for clarity.
* Add function to convert new CIDR format netmasks to old style dotted quad.Darren 'Tadgy' Austin2021-02-271-1/+13
| | | | Replace setting of BROADCAST and NETWORK for use when writing files.
* Updated nameserver processing handling to include syntax checks + more.Darren 'Tadgy' Austin2021-02-271-50/+82
| | | | | | | | | | When creating example for nameserver dialog, take into account multiple IPs. Add the . to the VLAN part When writing rc.inet1.conf. Update SLAAC final confirmation dialog to match output of DHCP confirmation. Update final confirmation for static IPs to include IPv6 and VLAN ID. Include VLAN ID in DHCP final confirmation screen. Unconditionally output final info screen, ref accepted/discarded settings. Update static IP infomarion input/processing.
* Allow exiting when in NetworkManager confirmation dialog.Darren 'Tadgy' Austin2021-02-271-1/+4
|
* Add IPv6 support to 'loopback' option. Use IPADDRS.Darren 'Tadgy' Austin2021-02-271-4/+8
|
* Don't skip VLAN entry if it's empty + moreDarren 'Tadgy' Austin2021-02-271-12/+10
| | | | | Change a couple of button text to 'Exit'. Allow canceling out of DHCP hostname prompt.
* Don't write HOSTNAME before confirmation. Remove colour around examples.Darren 'Tadgy' Austin2021-02-271-3/+4
|
* Give 2 examples for IP address entry syntax.Darren 'Tadgy' Austin2021-02-271-2/+2
|
* Check entered prefix length is valid + more.Darren 'Tadgy' Austin2021-02-271-102/+60
| | | | | | Added a dialog to warn if no IP addresses have bee configured. Adjusted some dialog box sizes for altered text. Updated text for some dialog boxes.
* Add syntax_check_v6 function to validate IPv6 addresses + more.Darren 'Tadgy' Austin2021-02-271-19/+44
| | | | | Move temp directory code to start of main block. Update dialog text for some screens.
* Begin implementing multiple IPv6 addresses handling.Darren 'Tadgy' Austin2021-02-271-33/+76
|
* Use an IPv4 specific bounce file with IPv4 config.Darren 'Tadgy' Austin2021-02-271-7/+7
|
* Use an ipv4 specific bounce file for gateway config.Darren 'Tadgy' Austin2021-02-271-15/+6
|
* Clean up after ourselves in various places with new code.Darren 'Tadgy' Austin2021-02-271-15/+41
| | | | | * Keep a file with the VLAN ID while processing VLANs. * Touched up a couple more bits of dialog text.
* Various updates to netconfig - see full log.Darren 'Tadgy' Austin2021-02-271-80/+90
| | | | | | | | | | * Rename -syntax_check_color function to syntax_check_v4 as it more accurately represents its IPv4 specific function now. * Some updates to text presented in dialogs. * Protect some variable expansions with ""s. * Initial support for IPADDRS/IP6ADDRS arrays. * Improve validation of user supplied input. * Refactoring for use of the IPADDRS array and multiple IP/mask entry.
* Clean up syntax of host+domain entry and add some basic validation.Darren 'Tadgy' Austin2021-02-271-28/+42
|
* Update VLAN syntax checking. Add quotes in rc.inet1.conf.Darren 'Tadgy' Austin2021-02-272-15/+26
|
* Add first draft of README.networking.Darren 'Tadgy' Austin2021-02-271-0/+550
|
* Implement a new IPADDRS array for v4 IPs - read full commit messageDarren 'Tadgy' Austin2021-02-272-67/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the logic for a new IPADDRS array which will work in a similar way to the IPv6 IP6ADDRS array. The IPADDRS array can hold multiple IPv4 addresses with netmasks, which are used in preference to, but maintaining backwards compatibility with, the old IPADDR/NETMASK arrays. If IPADDRS is set for an interface, the IPs and netmasks configured in the array are set before an also configured IPADDR/NETMASK. This maintains backwards compatibility - users can continue to use the IPADDR/NETMASK and IPALIASES arrays to configure the interface and completely ignore IPADDRS, or keep their old rc.inet1.conf files, if they so wish. If the IPADDRS arrays contains multiple IPs, those IPs are all added to the interface regardles of whether any IP in IPADDRS is or is not set. These IPs will also be added to the interface just as with IPALIASES if DHCP/SLAAC is used to set the first IP. The IPALIASES IPs are also added to the interface to maintain backwards compatibility. IPa set in IPADDRS to be used as 'alias' interfaces, are NOT given the usual ethX:Y name, like the IPs listed in IPALIASES. To get an ethX:Y interface the iPALIASES array should be used; to have the IPs simply added to the interface the user should use the IPADDRS array with multiple (space separated) IPs and netmasks. Using IPALIASES along side IPADDRS is completly legal and maintains backwards compatibility - it would yield a mixture of IPs set with and without ethX:Y aliases. This changeset moves the IPv4 configuration to be on par with the new IPv6 configuration syntax, but maintains FULL backwards compatibility with the old style syntax. Additionally, handling of IP4ADDRS has been modified such that it matches the IPADDRS usage. That is, any IPs listed in IP6ADDRS are also added to the interface (just as IPADDRS and IPALIASES are added for v4) whether the interface is configured with DHCP/DHCP6/SLAAC or not. This is a change to the IP6ADDRS usage, but since this script hasn't been officially accepted, there is no backwards compatibility issues. Again, note that these changes DO NOT change previous behaviour or damage backwards compatability. New functionallity and semantics only change behaviour of non-released features, so there is no bother to the changes. netconfig will be modified to output the new IPADDRS syntax, just as it does for IP6ADDRS and both will allow multiple IPs to be specified at configuration time - this is an improvement on the current netconfig behaviour.
* Restablish use of the -L option to assist Slackware ARM users.Darren 'Tadgy' Austin2021-02-271-1/+0
|
* Update comments regarding use of the hard coded dhcpcd -L command line option.current-20210227Darren 'Tadgy' Austin2020-08-171-3/+6
| | | | | | | | | | The -L command line option was added to the dhcpcd call in the -current development cycle to assist ARM users with getting networking up and running. This addition was incorrect as rc.inet1 already has support to use or not use -L by setting DHCP_NOIPV4LL[x]="". When I was updating rc.inet1 I took out the -L, but didn't make it clear enough why I had taken it out and how to use the DHCP_NOIP4ALL[x]="" option in rc.inet1.conf. This commit is simply updating that comment to be more verbose.
* 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
|