|
@@ -28,15 +28,52 @@ OPTIONS
|
|
-V, --version
|
|
-V, --version
|
|
Show version information.
|
|
Show version information.
|
|
|
|
|
|
-EXAMPLE
|
|
|
|
|
|
+EXAMPLES
|
|
ifup eth0
|
|
ifup eth0
|
|
Bring up the interface defined in the file
|
|
Bring up the interface defined in the file
|
|
/etc/sysconfig/ifconfig.eth0
|
|
/etc/sysconfig/ifconfig.eth0
|
|
|
|
|
|
|
|
+ ONBOOT=no
|
|
|
|
+ IFACE=eth0
|
|
|
|
+ SERVICE=ipv4-static
|
|
|
|
+ IP=192.168.1.22
|
|
|
|
+ GATEWAY=192.168.1.1
|
|
|
|
+ PREFIX=24
|
|
|
|
+ BROADCAST=192.168.1.255
|
|
|
|
+
|
|
ifdown eth0:2
|
|
ifdown eth0:2
|
|
Bring down the interface defined in the file
|
|
Bring down the interface defined in the file
|
|
/etc/sysconfig/ifconfig.eth0:2
|
|
/etc/sysconfig/ifconfig.eth0:2
|
|
|
|
|
|
|
|
+ ONBOOT=no
|
|
|
|
+ IFACE=eth0:2
|
|
|
|
+ SERVICE=dhcpcd
|
|
|
|
+
|
|
|
|
+ DHCP_START="--waitip"
|
|
|
|
+ DHCP_STOP="-k"
|
|
|
|
+
|
|
|
|
+ # Set PRINTIP="yes" to have the script print the DHCP IP address
|
|
|
|
+ PRINTIP="yes"
|
|
|
|
+
|
|
|
|
+ # Set PRINTALL="yes" to print the DHCP assigned values for
|
|
|
|
+ # IP, SM, DG, and 1st NS.
|
|
|
|
+ PRINTALL="no"
|
|
|
|
+
|
|
|
|
+ ifup br0
|
|
|
|
+ Bring up the interface defined in the file
|
|
|
|
+ /etc/sysconfig/ifconfig.br0
|
|
|
|
+
|
|
|
|
+ ONBOOT=yes
|
|
|
|
+ IFACE=br0
|
|
|
|
+ SERVICE="bridge ipv4-static"
|
|
|
|
+ IP=192.168.1.22
|
|
|
|
+ GATEWAY=192.168.1.1
|
|
|
|
+ PREFIX=24
|
|
|
|
+ BROADCAST=192.168.1.255
|
|
|
|
+ STP=no # Spanning tree protocol, default no
|
|
|
|
+ INTERFACE_COMPONENTS=eth0 # Add to IFACE
|
|
|
|
+ IP_FORWARD=true
|
|
|
|
+
|
|
NOTES
|
|
NOTES
|
|
The program does not configure network interfaces direct-
|
|
The program does not configure network interfaces direct-
|
|
ly. It runs scripts defined by the SERVICE variable in
|
|
ly. It runs scripts defined by the SERVICE variable in
|
|
@@ -51,11 +88,24 @@ NOTES
|
|
SERVICE - The service script to run to bring up the inter-
|
|
SERVICE - The service script to run to bring up the inter-
|
|
face. Standard services are ipv4-static and
|
|
face. Standard services are ipv4-static and
|
|
ipv4-static-route. Other services such as dhcp
|
|
ipv4-static-route. Other services such as dhcp
|
|
- may be installed.
|
|
|
|
|
|
+ or bridge may be installed. This value may
|
|
|
|
+ be a list of services when the interface is a
|
|
|
|
+ compound device such as a bridge.
|
|
|
|
|
|
ONBOOT - If set to 'yes', the specified interface is
|
|
ONBOOT - If set to 'yes', the specified interface is
|
|
configured by the netowrk boot script.
|
|
configured by the netowrk boot script.
|
|
|
|
|
|
|
|
+ GATEWAY - The default IP address to use for routing if
|
|
|
|
+ the destination IP address is not in a static
|
|
|
|
+ route or on a local network, e.g., 192.168.1.1.
|
|
|
|
+ For secondary IP addresses on an interface, this
|
|
|
|
+ parameter should not be specified.
|
|
|
|
+
|
|
|
|
+ INTERFACE_COMPONENTS - A list of component interfaces
|
|
|
|
+ only needed for a compound device such as a bridge.
|
|
|
|
+ This list is normally a single value, e.g. eth0,
|
|
|
|
+ for use with a virtual host such as kvm.
|
|
|
|
+
|
|
Other paramters that are service specific include:
|
|
Other paramters that are service specific include:
|
|
|
|
|
|
ipv4-static
|
|
ipv4-static
|
|
@@ -64,24 +114,20 @@ NOTES
|
|
e.g. 192.168.1.2.
|
|
e.g. 192.168.1.2.
|
|
|
|
|
|
PREFIX - The number of bits that specify the network
|
|
PREFIX - The number of bits that specify the network
|
|
- number of the interface, e.g., 24.
|
|
|
|
|
|
+ number of the interface. The default, if not
|
|
|
|
+ specified, is 24.
|
|
|
|
|
|
- GATEWAY - The default IP address to use for routing
|
|
|
|
- if the destination IP address is not in a
|
|
|
|
- static route or on a local network, e.g.,
|
|
|
|
- 192.168.1.1. For secondary IP addresses on
|
|
|
|
- an interface, this parameter should not be
|
|
|
|
- specified.
|
|
|
|
-
|
|
|
|
BROADCAST - The brodcast address for this interface,
|
|
BROADCAST - The brodcast address for this interface,
|
|
- e.g 192.168.1.255.
|
|
|
|
|
|
+ e.g 192.168.1.255. If not specified,
|
|
|
|
+ the broadcast address will be calculated
|
|
|
|
+ from the IP and PREFIX.
|
|
|
|
|
|
ipv4-static-route
|
|
ipv4-static-route
|
|
|
|
|
|
TYPE - The type of route, typically 'default',
|
|
TYPE - The type of route, typically 'default',
|
|
'network', 'or host'.
|
|
'network', 'or host'.
|
|
|
|
|
|
- IP - The IP address for a network or host, if thei
|
|
|
|
|
|
+ IP - The IP address for a network or host, if the
|
|
TYPE is not 'default'.
|
|
TYPE is not 'default'.
|
|
|
|
|
|
PREFIX - The prefix for the associated IP address.
|
|
PREFIX - The prefix for the associated IP address.
|
|
@@ -92,12 +138,32 @@ NOTES
|
|
to the destinations covered by the specified
|
|
to the destinations covered by the specified
|
|
route. (optional)
|
|
route. (optional)
|
|
|
|
|
|
|
|
+ dhcp/dhclient
|
|
|
|
+
|
|
|
|
+ DHCP_START - Optional parameters to pass to the dhcp client
|
|
|
|
+ at startup.
|
|
|
|
+
|
|
|
|
+ DHCP_STOP - Optional paremeters to pass to the dhcp client
|
|
|
|
+ at shutdown.
|
|
|
|
+
|
|
|
|
+ PRINTIP - Flag to print the dhcp address to stdout
|
|
|
|
+
|
|
|
|
+ PRINTALL - Flag to print all obtained dhcp data to stdout
|
|
|
|
+
|
|
|
|
+ bridge
|
|
|
|
+
|
|
|
|
+ IP_FORWARD - An optional flag to enable the system to forward
|
|
|
|
+ inbound IP packets received by one interface to
|
|
|
|
+ another outbound interface.
|
|
|
|
+
|
|
|
|
+ STP - Set bridge spanning tree protocol. Default is no.
|
|
|
|
+
|
|
FILES
|
|
FILES
|
|
/etc/sysconfig/ifconfig.*
|
|
/etc/sysconfig/ifconfig.*
|
|
definitions of network interfaces
|
|
definitions of network interfaces
|
|
|
|
|
|
AUTHORS
|
|
AUTHORS
|
|
- The ifup/ifdown suite was written by Nathan Coulson
|
|
|
|
|
|
+ The ifup/ifdown suite was written by Nathan Coulson
|
|
<nathan@linuxfromscratch.org> and Kevin P. Fleming
|
|
<nathan@linuxfromscratch.org> and Kevin P. Fleming
|
|
<kpfleming@linuxfromscratch.org>
|
|
<kpfleming@linuxfromscratch.org>
|
|
and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
|
|
and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
|
|
@@ -105,4 +171,4 @@ AUTHORS
|
|
SEE ALSO
|
|
SEE ALSO
|
|
ip(8).
|
|
ip(8).
|
|
|
|
|
|
-IFUP/IFDOWN 18 Sep 2011 ifup(8)
|
|
|
|
|
|
+IFUP/IFDOWN 8 April 2012 ifup(8)
|