Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
     5         kx # /etc/rc.d/rc.inet1.conf
     5         kx #
     5         kx # This file contains the configuration settings for network interfaces.
     5         kx #
     5         kx # If USE_DHCP[interface] is set to "yes", this overrides any other settings.
     5         kx # If you don't have an interface, leave the settings null ("").
     5         kx #
     5         kx # You can configure network interfaces other than eth0,eth1... by setting
     5         kx # IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
     5         kx # or empty, it is assumed you're configuring eth<interface>.
     5         kx #
     5         kx # Several other parameters are available; the end of this file contains a
     5         kx # comprehensive set of examples.
     5         kx #
     5         kx # Important note for IPv6 stateless auto configuration (SLAAC) users:
     5         kx # From Slackware 15.0 onwards, you need to set USE_SLAAC[0]="yes" below.
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # IPv4 config options for eth0:
     5         kx IPADDRS[0]=""
     5         kx USE_DHCP[0]=""
     5         kx # IPv6 config options for eth0:
     5         kx IP6ADDRS[0]=""
     5         kx USE_SLAAC[0]=""
     5         kx USE_DHCP6[0]=""
     5         kx # Generic options for eth0:
     5         kx DHCP_HOSTNAME[0]=""
     5         kx 
     5         kx # IPv4 config options for eth1:
     5         kx IPADDRS[1]=""
     5         kx USE_DHCP[1]=""
     5         kx # IPv6 config options for eth1:
     5         kx IP6ADDRS[1]=""
     5         kx USE_SLAAC[1]=""
     5         kx USE_DHCP6[1]=""
     5         kx # Generic options for eth1:
     5         kx DHCP_HOSTNAME[1]=""
     5         kx 
     5         kx # IPv4 config options for eth2:
     5         kx IPADDRS[2]=""
     5         kx USE_DHCP[2]=""
     5         kx # IPv6 config options for eth2:
     5         kx IP6ADDRS[2]=""
     5         kx USE_SLAAC[2]=""
     5         kx USE_DHCP6[2]=""
     5         kx # Generic options for eth2:
     5         kx DHCP_HOSTNAME[2]=""
     5         kx 
     5         kx # IPv4 config options for eth3:
     5         kx IPADDRS[3]=""
     5         kx USE_DHCP[3]=""
     5         kx # IPv6 config options for eth3:
     5         kx IP6ADDRS[3]=""
     5         kx USE_SLAAC[3]=""
     5         kx USE_DHCP6[3]=""
     5         kx # Generic options for eth3:
     5         kx DHCP_HOSTNAME[3]=""
     5         kx 
     5         kx # IPv4 default gateway IP address:
     5         kx GATEWAY=""
     5         kx # IPv6 default gateway IP address:
     5         kx GATEWAY6=""
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Example of how to configure a bond (link aggregation) interface.
     5         kx # Note the addition of the BONDNICS and BONDMODE parameters.
     5         kx # BONDNICS is a space delimited list of interfaces to add to this bond.  The
     5         kx # BONDNICS interfaces will be brought up and configured while bringing up the
     5         kx # bond interface, so do not need to be previously defined in rc.inet1.conf.
     5         kx # BONDMODE sets the bonding mode for this interface.  If not specified when
     5         kx # BONDNICS has been used, the default is 'balance-rr'.
     5         kx # IFOPTS is a pipe (|) delimited list of bonding module specific settings to be
     5         kx # applied to the interface, and should always include the 'miimon' option when
     5         kx # configuring bonding - not using this option will result in network
     5         kx # degradation.  In 'active-backup' mode, the 'primary' option should also be
     5         kx # supplied.  When using '802.3ad' mode, set "lacp_rate fast" for faster
     5         kx # recovery from an interface failure.  In other modes, the 'xmit_hash_policy'
     5         kx # should be set.  See the /usr/src/linux/Documentation/networking/bonding.txt
     5         kx # file (search for "Bonding Driver Options") for the full set of options.
     5         kx #IFNAME[0]="bond0"
     5         kx #BONDNICS[0]="eth0 eth1"
     5         kx #BONDMODE[0]="balance-rr"
     5         kx #IFOPTS[0]="xmit_hash_policy layer2+3 | miimon 100"
     5         kx #IPADDRS[0]="192.168.0.1/24"
     5         kx #USE_DHCP[0]=""
     5         kx #DHCP_HOSTNAME[0]=""
     5         kx #IP6ADDRS[0]=""
     5         kx #USE_SLAAC[0]=""
     5         kx #USE_DHCP6[0]=""
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Example of how to configure a VLAN interface:
     5         kx # The VLAN ID is taken from the full interface name, which is comprised of the
     5         kx # underlying interface name, a period (.) and then the VLAN ID.
     5         kx # IFOPTS is a pipe (|) delimited list of VLAN module specific settings to be
     5         kx # applied to the interface.  See the ip-link(8) man page (search for "VLAN Type
     5         kx # Support") for details of the options available.  This option is not required
     5         kx # for a standard VLAN to be configured.
     5         kx #IFNAME[0]="eth0.10"
     5         kx #IFOPTS[0]=""
     5         kx #IPADDRS[0]="192.168.10.1/24"
     5         kx #USE_DHCP[0]=""
     5         kx #DHCP_HOSTNAME[0]=""
     5         kx #IP6ADDRS[0]=""
     5         kx #USE_SLAAC[0]=""
     5         kx #USE_DHCP6[0]=""
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Example of how to configure a bridge:
     5         kx # Note the added "BRNICS" variable which contains a space-separated list
     5         kx # of the physical or virtual network interfaces you want to add to the bridge.
     5         kx # IFOPTS is a pipe (|) delimited list of bridge module specific settings to be
     5         kx # applied to the interface.  See the ip-link(8) man page (search for "BRIDGE
     5         kx # Type Support") for details of the options available.  This option is not
     5         kx # required for a standard bridge to be configured.
     5         kx #IFNAME[0]="br0"
     5         kx #BRNICS[0]="eth0"
     5         kx #IFOPTS[0]=""
     5         kx #IPADDRS[0]="192.168.0.1/24"
     5         kx #USE_DHCP[0]=""
     5         kx #DHCP_HOSTNAME[0]=""
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Virtual interfaces to create - these are created before any address
     5         kx # configuration or bridge setup is done, so you may use these interfaces
     5         kx # as IFNAME or BRNICS values. These can be tun or tap interfaces:
     5         kx # adjust VIRTIFNAME and VIRTIFTYPE accordingly.
     5         kx # Starting with VIRTIFNAME[0] is mandatory, and each next one must be
     5         kx # incremented by one, so VIRTIFNAME[1], VIRTIFNAME[2], and so on.
     5         kx # Virtual tap interface example
     5         kx #VIRTIFNAME[0]="tap0"
     5         kx #VIRTIFTYPE[0]="tap"
     5         kx #VIRTIFUSER[0]="root"
     5         kx #VIRTIFGROUP[0]="root"
     5         kx 
     5         kx # Virtual tun interface example
     5         kx #VIRTIFNAME[1]="tun0"
     5         kx #VIRTIFTYPE[1]="tun"
     5         kx #VIRTIFUSER[1]="someuser"
     5         kx #VIRTIFGROUP[1]="somegroup"
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Example config information for wlan0:
     5         kx # Uncomment the lines you need and fill in your data.  You may not need all of
     5         kx # these for your wireless network.
     5         kx #IFNAME[4]="wlan0"
     5         kx #IPADDRS[4]=""
     5         kx #USE_DHCP[4]="yes"
     5         kx #DHCP_HOSTNAME[4]="icculus-wireless"
     5         kx #DHCP_KEEPRESOLV[4]="yes"
     5         kx #DHCP_KEEPNTP[4]="yes"
     5         kx #DHCP_KEEPGW[4]="yes"
     5         kx #DHCP_IPADDR[4]=""
     5         kx #WLAN_ESSID[4]=DARKSTAR
     5         kx #WLAN_MODE[4]=Managed
     5         kx #WLAN_RATE[4]="54M auto"
     5         kx #WLAN_CHANNEL[4]="auto"
     5         kx #WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
     5         kx #WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
     5         kx #WLAN_WPA[4]="wpa_supplicant"
     5         kx #WLAN_WPADRIVER[4]="wext"
     5         kx #WLAN_WPAWAIT[4]=30
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Some examples of additional network parameters that you can use.
     5         kx #IFNAME[4]="wlan0"              # Use a different interface name instead of
     5         kx                                 # the default 'eth4'
     5         kx #IFOPTS[4]=""                   # A pipe (|) delimited list of interface type
     5         kx                                 # specific options to apply.  These options
     5         kx                                 # can be found in the ip-link(8) man page in
     5         kx                                 # the approprite section for the interface
     5         kx                                 # type being configured.
     5         kx #HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
     5         kx #MTU[4]=""                      # The default MTU is 1500, but you might need
     5         kx                                 # 1360 when you use NAT'ed IPSec traffic.
     5         kx #PROMISCUOUS[4]="yes"           # Set promiscuous mode on the interface.
     5         kx #DHCP_TIMEOUT[4]="15"           # The default timeout for the DHCP client to
     5         kx                                 # wait for server resonse is 15 seconds, but
     5         kx                                 # you might want a shorter or longer wait.
     5         kx #DHCP_KEEPRESOLV[4]="yes"       # If you don't want /etc/resolv.conf overwritten
     5         kx #DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
     5         kx #DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
     5         kx                                 # your default gateway
     5         kx #DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
     5         kx                                 # server
     5         kx #DHCP_DEBUG[4]="yes"            # Make dhcpcd show verbose diagnostics
     5         kx #DHCP_NOIPV4LL[4]="yes"         # Do not assign an ipv4ll address when a DHCP
     5         kx                                 # server is not found (ipv4ll link-local
     5         kx                                 # adresses in the IP range 169.254.0.0/16 are
     5         kx                                 # also known as "zeroconf" addresses)
     5         kx #SLAAC_TIMEOUT[4]="15"          # The default timeout for auto configuration to
     5         kx                                 # wait for the interface to come up is 15 sec.
     5         kx                                 # Increase the timeout if required.
     5         kx #SLAAC_PRIVIPGEN[4]="yes"       # When assigning addresses via SLAAC, use the
     5         kx                                 # 'private' (RFC7217) address generation method.
     5         kx                                 # It is advisable to also set SLAAC_SECRET[x].
     5         kx #SLAAC_SECRET[4]="xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx"
     5         kx                                 # When SLAAC_PRIVIPGEN[x]="yes" is set, this is
     5         kx                                 # the secret to be used.  This must be in the
     5         kx                                 # form of an IPv6 address.  When left unset, a
     5         kx                                 # random secret is used (this is the default).
     5         kx #SLAAC_TEMPADDR[4]="yes"        # Use a temporary address with SLAAC to enhance
     5         kx                                 # security.
     5         kx #USE_RA[4]="yes"                # Accept router advertisements even when SLAAC
     5         kx                                 # is disabled on the interface.
     5         kx #WLAN_ESSID[4]="DARKSTAR"       # An example of how you can override _any_
     5         kx                                 # parameter defined in rc.wireless.conf, by
     5         kx                                 # prepending 'WLAN_' to the parameter's name.
     5         kx                                 # Useful with multiple wireless interfaces.
     5         kx #WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
     5         kx                                 # Some drivers require a private ioctl to be
     5         kx                                 # set through the iwpriv command. If more than
     5         kx                                 # one is required, you can place them in the
     5         kx                                 # IWPRIV parameter (separated with the pipe (|)
     5         kx                                 # character, see the example).
     5         kx #WLAN_WPA[4]="wpa_supplicant"   # Run wpa_supplicant for WPA support
     5         kx #WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
     5         kx                                 # ndiswrapper driver (if you leave this empty
     5         kx                                 # the 'wext' driver is used by default)
     5         kx #WLAN_WPAWAIT[4]="30"           # In case it takes long for the WPA association
     5         kx                                 # to finish, you can increase the wait time
     5         kx                                 # (defaults to 10 seconds)
     5         kx 
     5         kx # =============================================================================
     5         kx 
     5         kx # Change this to "yes" for debugging output to syslog (if available, stdout if
     5         kx # not).
     5         kx DEBUG_ETH_UP="no"
     5         kx 
     5         kx # MAXNICS is the maximum number of interfaces that will be configured.
     5         kx # You may need to increase the MAXNICS value if you have many interfaces, or
     5         kx # you use multiple VLANs and/or bridges.  The default is 6.
     5         kx #MAXNICS="6"