Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/sbin/ifup.8

    rf42cce0 ra44ae577  
    1515
    1616DESCRIPTION
    17        The  ifup  and  ifdown  commands  may be used to configure 
    18        (or, respectively, deconfigure) a network interface based 
    19        on interface  definitions in the file 
     17       The  ifup  and  ifdown  commands  may be used to configure
     18       (or, respectively, deconfigure) a network interface based
     19       on interface  definitions in the file
    2020       /etc/sysconfig/ifconfig.IFACE.
    2121
     
    3131EXAMPLES
    3232       ifup eth0
    33               Bring up the interface defined in the file 
     33              Bring up the interface defined in the file
    3434              /etc/sysconfig/ifconfig.eth0
    3535
     
    5050                LABEL=eth0:2
    5151                SERVICE=dhcpcd
    52          
     52
    5353                DHCP_START="--waitip"
    5454                DHCP_STOP="-k"
    55          
     55
    5656                # Set PRINTIP="yes" to have the script print the DHCP IP address
    5757                PRINTIP="yes"
    58          
     58
    5959                # Set PRINTALL="yes" to print the DHCP assigned values for
    60                 # IP, SM, DG, and 1st NS. 
     60                # IP, SM, DG, and 1st NS.
    6161                PRINTALL="no"
    6262
    6363       ifup br0
    64               Bring up the interface defined in the file 
     64              Bring up the interface defined in the file
    6565              /etc/sysconfig/ifconfig.br0
    66                    
     66
    6767                ONBOOT=yes
    6868                IFACE=br0
     
    7878NOTES
    7979       The program does not configure network interfaces direct-
    80        ly.  It runs scripts defined by the SERVICE variable in 
     80       ly.  It runs scripts defined by the SERVICE variable in
    8181       the network configuration file.
    8282
     
    8484       ment variables set:
    8585
    86        IFACE   - The interface to configure, e.g. eth0.  It must 
     86       IFACE   - The interface to configure, e.g. eth0.  It must
    8787                 be available in /sys/class/net.
    8888
    8989       SERVICE - The service script to run to bring up the inter-
    90                  face.  Standard services are ipv4-static and 
     90                 face.  Standard services are ipv4-static and
    9191                 ipv4-static-route.  Other services such as dhcp
    9292                 or bridge may be installed.  This value may
     
    9494                 compound device such as a bridge.
    9595
    96        ONBOOT  - If set to 'yes', the specified interface is 
     96       ONBOOT  - If set to 'yes', the specified interface is
    9797                 configured by the netowrk boot script.
    9898
    9999       GATEWAY - The default IP address to use for routing if
    100                  the destination IP address is not in a static 
    101                  route or on a local network, e.g., 192.168.1.1. 
    102                  For secondary IP addresses on an interface, this 
     100                 the destination IP address is not in a static
     101                 route or on a local network, e.g., 192.168.1.1.
     102                 For secondary IP addresses on an interface, this
    103103                 parameter should not be specified.  If the service
    104104                 is ipv4-static-route, this parameter must NOT
     
    106106
    107107       STATIC_GATEWAY - The default IP address to use for routing
    108                  when setting a static routing address. 
     108                 when setting a static routing address.
    109109
    110110       INTERFACE_COMPONENTS - A list of component interfaces
    111                  only needed for a compound device such as a bridge. 
    112                  This list is normally a single value, e.g. eth0, 
     111                 only needed for a compound device such as a bridge.
     112                 This list is normally a single value, e.g. eth0,
    113113                 for use with a virtual host such as kvm.
    114114
     
    117117       ipv4-static
    118118
    119          IP        - The IP address of the interface, 
     119         IP        - The IP address of the interface,
    120120                     e.g. 192.168.1.2.
    121121
     
    123123                     number of the interface.  The default, if not
    124124                     specified, is 24.
    125        
    126          LABEL     - The label to be assigned to the interface. 
     125
     126         LABEL     - The label to be assigned to the interface.
    127127                     This is normally specified for assigning
    128128                     additional IP addresses to a network
    129129                     device.  Example: eth0:2 (optional)
    130        
    131          BROADCAST - The brodcast address for this interface, 
    132                      e.g 192.168.1.255.  If not specified, 
     130
     131         BROADCAST - The brodcast address for this interface,
     132                     e.g 192.168.1.255.  If not specified,
    133133                     the broadcast address will be calculated
    134134                     from the IP and PREFIX.
     
    136136       ipv4-static-route
    137137
    138          TYPE    -  The type of route, typically 'default', 
     138         TYPE    -  The type of route, typically 'default',
    139139                    'network', 'or host'.
    140140
     
    146146         STATIC_GATEWAY - The IP address for a network route.
    147147
    148          SOURCE  -  The source IP address to prefer when sending 
     148         SOURCE  -  The source IP address to prefer when sending
    149149                    to the destinations covered by the specified
    150150                    route. (optional)
     
    155155                      at startup.
    156156
    157          DHCP_STOP  - Optional paremeters to pass to the dhcp client 
     157         DHCP_STOP  - Optional paremeters to pass to the dhcp client
    158158                      at shutdown.
    159159
     
    165165
    166166         IP_FORWARD - An optional flag to enable the system to forward
    167                       inbound IP packets received by one interface to 
    168                       another outbound interface. 
     167                      inbound IP packets received by one interface to
     168                      another outbound interface.
    169169
    170170         STP        - Set bridge spanning tree protocol.  Default is no.
     
    172172FILES
    173173       /etc/sysconfig/ifconfig.*
    174               definitions of network interfaces 
     174              definitions of network interfaces
    175175
    176176AUTHORS
    177177       The ifup/ifdown suite was written by Nathan Coulson
    178        <nathan@linuxfromscratch.org> and Kevin P. Fleming 
     178       <nathan@linuxfromscratch.org> and Kevin P. Fleming
    179179       <kpfleming@linuxfromscratch.org>
    180180       and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
Note: See TracChangeset for help on using the changeset viewer.