summaryrefslogtreecommitdiffstats
path: root/netconfig
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-06 01:13:23 +0000
committerRobby Workman <rworkman@slackware.com>2019-11-06 19:52:24 -0600
commitc9a9f841de46625aafec7879a5cc1780a3d87ee9 (patch)
treeb009f2d74405b4d2a53594dfd68e0e2b7b5385c2 /netconfig
parent031f41b62e9761276b2964840c22d6c6666f83be (diff)
downloadslacknetsetup-c9a9f841de46625aafec7879a5cc1780a3d87ee9.tar.xz
Sync netconfig's rc.inet1.conf with the new one. Add ::1 to loopback in hosts
Diffstat (limited to 'netconfig')
-rw-r--r--netconfig55
1 files changed, 44 insertions, 11 deletions
diff --git a/netconfig b/netconfig
index 5c5bf8a..0ae58a8 100644
--- a/netconfig
+++ b/netconfig
@@ -25,6 +25,7 @@ fi
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
+
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
@@ -35,44 +36,64 @@ fi
# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.
+# Important note for IPv6 stateless auto configuration (SLAAC) users:
+# From Slackware 15.0 onwards, you need to set USE_SLAAC[0]="yes" (etc) below
+
# =============================================================================
-# Config information for eth0:
+# IPv4 config information for eth0:
IPADDR[0]="$RCIPCOPY"
NETMASK[0]="$RCMASKCOPY"
IPALIASES[0]=""
USE_DHCP[0]="$USE_DHCP"
DHCP_HOSTNAME[0]="$DHCP_HOSTNAME"
-# Config information for eth1:
+# IPv4 config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
IPALIASES[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
-# Config information for eth2:
+# IPv4 config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
IPALIASES[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
-# Config information for eth3:
+# IPv4 config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
IPALIASES[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
-# Default gateway IP address:
+# IPv4 default gateway IP address:
GATEWAY="$GATEWAY"
-# Change this to "yes" for debugging output to stdout. Unfortunately,
-# /sbin/hotplug seems to disable stdout so you'll only see debugging output
-# when rc.inet1 is called directly.
+# =============================================================================
+
+# IPv6 config information for eth0:
+IP6ADDRS[0]=""
+USE_SLAAC[0]=""
+USE_DHCP6[0]=""
+
+# IPv6 config information for eth1:
+IP6ADDRS[1]=""
+USE_SLAAC[1]=""
+USE_DHCP6[1]=""
+
+# IPv6 default gateway address:
+GATEWAY6=""
+
+# =============================================================================
+
+# Change this to "yes" for debugging output to stdout.
DEBUG_ETH_UP="no"
+# =============================================================================
+
# Example of how to configure a bridge:
# Note the added "BRNICS" variable which contains a space-separated list
# of the physical or virtual network interfaces you want to add to the bridge.
@@ -84,6 +105,8 @@ DEBUG_ETH_UP="no"
#USE_DHCP[0]=""
#DHCP_HOSTNAME[0]=""
+# =============================================================================
+
# Virtual interfaces to create - these are created before any address
# configuration or bridge setup is done, so you may use these interfaces
# as IFNAME or BRNICS values. These can be tun or tap interfaces:
@@ -103,8 +126,10 @@ DEBUG_ETH_UP="no"
#VIRTIFUSER[1]="someuser"
#VIRTIFGROUP[1]="somegroup"
-## Example config information for wlan0. Uncomment the lines you need and fill
-## in your data. (You may not need all of these for your wireless network)
+# =============================================================================
+
+## Example config information for wlan0. Uncomment the lines you need and fill
+## in your data. (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
@@ -124,13 +149,15 @@ DEBUG_ETH_UP="no"
#WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30
+# =============================================================================
+
## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name instead of
# the default 'eth4'
#IPALIASES[4]="192.168.5.10/24" # Set up an IP alias. A netmask may be given
# with a /<prefix> after the IP address - if
- # not supplied, /32 will be used as default.
+ # not supplied, /24 will be used as default.
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
@@ -149,6 +176,11 @@ DEBUG_ETH_UP="no"
# server is not found (ipv4ll link-local
# adresses in the IP range 169.254.0.0/16 are
# also known as "zeroconf" addresses)
+#SLAAC_TIMEOUT[4]="15" # The default timeout for auto configuration to
+ # wait for the interface to come up is 15 sec.
+ # Increase the timeout if required.
+#USE_RA[4]="yes" # Accept router advertisements even when SLAAC
+ # is disabled on the interface.
#WLAN_ESSID[4]=DARKSTAR # An example of how you can override _any_
# parameter defined in rc.wireless.conf, by
# prepending 'WLAN_' to the parameter's name.
@@ -208,6 +240,7 @@ chmod 644 $ETCNETWORKS
# For loopbacking.
127.0.0.1 localhost
+::1 localhost
$IPADDR $HOSTNM.$DOMAIN $HOSTNM
# End of hosts.