diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2021-03-01 20:10:44 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-03-02 08:59:52 +0100 |
commit | 07ac5d43e50cb2039f37b4e9447c4e52789c9fb2 (patch) | |
tree | 9b2ebc687d19203f8b4ebe1ab2a0b6c485454a3b /source/n/network-scripts/manpages/rc.inet1.conf.5 | |
parent | fa458b65d9d4c5e933622574d999915ecda37a25 (diff) | |
download | current-07ac5d43e50cb2039f37b4e9447c4e52789c9fb2.tar.gz current-07ac5d43e50cb2039f37b4e9447c4e52789c9fb2.tar.xz |
Mon Mar 1 20:10:44 UTC 202120210301201044
a/e2fsprogs-1.46.2-x86_64-1.txz: Upgraded.
a/etc-15.0-x86_64-14.txz: Rebuilt.
/etc/hosts: added IPv6 loopback addresses.
a/hwdata-0.345-noarch-1.txz: Upgraded.
ap/hplip-3.20.6-x86_64-7.txz: Rebuilt.
Fixed desktop file to show category and icon properly.
Thanks to upnort and ArTourter.
d/git-2.30.1-x86_64-3.txz: Rebuilt.
Make sure the bash-completion file is installed in the proper location.
Thanks to Robby Workman.
d/python-setuptools-54.0.0-x86_64-1.txz: Upgraded.
d/vala-0.50.4-x86_64-1.txz: Upgraded.
l/imagemagick-7.0.11_2-x86_64-1.txz: Upgraded.
l/python-pillow-8.1.1-x86_64-1.txz: Upgraded.
n/network-scripts-15.0-noarch-13.txz: Rebuilt.
Well, apparently there was a newer branch of this than the one that was
sitting in my usual pending queue, so here it is. This also includes some
additional documentation on the new features. NOTE: In order to use SLAAC
to configure IPv6, you'll need to have USE_SLAAC[x]="yes" for the interface
in rc.inet1.conf. This is to ensure that nobody is surprised to find their
machine fully exposed to the internet - better safe than sorry.
Thanks to Darren "Tadgy" Austin and Robby Workman.
n/wireless_tools-30.pre9-x86_64-4.txz: Rebuilt.
This package contains some updates to rc.wireless and rc.wireless.conf.
Thanks to Darren "Tadgy" Austin.
xfce/mousepad-0.5.3-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/n/network-scripts/manpages/rc.inet1.conf.5')
-rw-r--r-- | source/n/network-scripts/manpages/rc.inet1.conf.5 | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/source/n/network-scripts/manpages/rc.inet1.conf.5 b/source/n/network-scripts/manpages/rc.inet1.conf.5 index e966eb7e6..8152b3494 100644 --- a/source/n/network-scripts/manpages/rc.inet1.conf.5 +++ b/source/n/network-scripts/manpages/rc.inet1.conf.5 @@ -26,40 +26,45 @@ and so forth. The default interface name can be overruled by the use of the parameter .B IFNAME. .LP -This is what a typical section of the file looks like for an interface that is -configured to use DHCP, showing all parameters with the index number `0': +This is what a typical section of the file looks like for an interface, +showing all parameters with the index number `0': .LP -# Config information for eth0: .br -IPADDR[0]="" +# IPv4 config options for eth0: +.br +IPADDRS[0]="" +.br +USE_DHCP[0]="" +.br +# IPv6 config options for eth0: +.br +IP6ADDRS[0]="" +.br +USE_SLAAC[0]="" .br -NETMASK[0]="" +USE_DHCP6[0]="" .br -IPALIASES[0]="" +# Generic options for eth0: .br -USE_DHCP[0]="yes" +DHCP_HOSTNAME[0]="" .LP -Alternatively, here is an example for an interface that uses a static -IPv4 address, an autoconfigured IPv6 address, and a non-default name +Alternatively, here is an example for an interface that uses static +IPv4 addresses, an autoconfigured IPv6 address, and a non-default name .RI ( ath0 instead of -.IR eth1 ), -as well as additional IPv4 alias addresses. +.IR eth1 ). The parameter index is `1' in this case. .LP -# Config information for ath0: .br IFNAME[1]="ath0" .br -IPADDR[1]="192.168.3.11" -.br -NETMASK[1]="24" +# IPv4 config options for ath0: .br -IPALIASES[1]="192.168.3.100/24" +IPADDRS[1]="192.168.1.10/24 10.0.0.10/8" .br USE_DHCP[1]="" .br -GATEWAY="192.168.3.1" +# IPv6 config options for ath0 .br IP6ADDRS[1]="" .br @@ -67,6 +72,15 @@ USE_SLAAC[1]="yes" .br USE_DHCP6[1]="" .br +# Generic options for ath0: +.br +DHCP_HOSTNAME[1]="" + +.br +# Gateway IP addresses: +.br +GATEWAY="192.168.1.1" +.br GATEWAY6="" .br .SH EXAMPLE VIRTUAL INTERFACE CREATION AND SETUP @@ -85,7 +99,7 @@ VIRTIFUSER[0]="root" .br VIRTIFGROUP[0]="root" .br -.SH EXAMPLE BRIDGE INTERFACE CREATION +.SH EXAMPLE BONDING INTERFACE CREATION Link aggregation (bond) interfaces can be configured with the use of 3 new parameters for use in rc.inet1.conf. The BONDNICS parameter should contain the (space delimited) list of interfaces to include in the bond. The type @@ -114,9 +128,13 @@ BONDMODE[0]="balance-rr" .br IFOPTS[0]="xmit_hash_policy layer2+3 | miimon 100" .br -IPADDR[0]="192.168.0.10" +IPADDRS[0]="192.168.0.10/24" +.br +IP6ADDRS[0]="e1ff:fec8:ae47:d9ab::abc1/64" .br -NETMASK[0]="24" +GATEWAY="192.168.0.1" +.br +GATEWAY6="e1ff:fec8:ae47:d9ab::1" .LP .SH EXAMPLE VLAN INTERFACE CREATION VLAN interfaces can be configured in rc.inet1.conf, in the standard Slackware @@ -131,9 +149,7 @@ IFNAME[0]="eth0.100" .br IFOPTS[0]="" .br -IPADDR[0]="192.168.100.10" -.br -NETMASK[0]="24" +IPADDRS[0]="192.168.100.10/24" .LP The IFNAME of the interface contains the underlying ethernet device name (eth0), a period (.), and the VLAN ID to be exposed. @@ -160,9 +176,7 @@ BRNICS[5]="eth0 eth1 tun0" .br IFOPTS[5]="" .br -IPADDR[5]="192.168.0.10" -.br -NETMASK[5]="24" +IPADDRS[5]="192.168.0.10/24" .LP The new generic IFOPTS parameter takes a pipe (|) delimited list of interface type specific options, but does not need any options in order for a bridge @@ -178,24 +192,11 @@ the parameters all have the array index `0': .LP # Config information for eth0: .TP 25 -IPADDR[0]="" -# Set this parameter to an actual IPv4 address if you want static IPv4 -address assignment. This is ignored if the USE_DHCP[0] parameter is set -to "yes". -.TP -NETMASK[0]="" -# The netmask for the IPv4 address set in IPADDR[0]. This should be in -CIDR format with an optional leading /, e.g. "24" or "/16" - though the -traditional dotted-quad format (e.g. "255.255.255.0") is still accepted. -If this parameter is unset or empty, a netmask of "24" will be assumed. -.TP -IPALIASES[0]="" -# Space separated list of additional IPv4 addresses to bind to the -interface after initial configuration is complete. An optional -netmask may be specified after the address in the form "1.2.3.4/24". If no -netmask is specified the default of "/24" will be used. If USE_DHCP[0] -is set to `yes' then additional IPv4 addresses will only be added if the -DHCP client invocation is successful in obtaining a primary IPv4 address. +IPADDRS[0]="" +# Set this parameter to a space delimited list of IPv4 addresses and netmasks +to bind to the interface, The netmask should be in CIDR style separated from +the IP address with a /. E.g. "192.168.1.10/24 10.0.0.10/8". If the netmask +is not provided, "/24" is assumed. .TP USE_DHCP[0]="" # If set to "yes", we will run a DHCP client and have the IPv4 address @@ -213,8 +214,7 @@ IP6ADDRS[0]="" IPv6 addresses and prefix lengths in CIDR notation, in a space delimited list. For example: IP6ADDRS[0]="a:b:c:d::1/48 1:2:3:4::5/64". If a prefix length is not given (separated from the IP address with a /), a -length of 64 will be assumed. This is ignored if either the USE_DHCP6[0] -or USE_SLAAC[0] parameters is set to "yes". +length of 64 will be assumed. .TP USE_SLAAC[0]="" # With this parameter set to "yes", the interface's IPv6 address will be @@ -383,6 +383,6 @@ Eric Hameleers <alien@slackware.com> .br Robby Workman <rworkman@slackware.com> .br -Darren 'Tadgy' Austin <darren@afterdark.org.uk> +Darren 'Tadgy' Austin <darren@slackware.uk> .SH "SEE ALSO" .BR rc.inet1(8) |