1 | ifup(8) ifup(8)
|
---|
2 |
|
---|
3 | NAME
|
---|
4 | ifup - bring a network interface up
|
---|
5 | ifdown - take a network interface down
|
---|
6 |
|
---|
7 | SYNOPSIS
|
---|
8 | ifup IFACE
|
---|
9 | ifup -h|--help
|
---|
10 | ifup -V|--version
|
---|
11 |
|
---|
12 | ifdown IFACE
|
---|
13 | ifdown -h|--help
|
---|
14 | ifdown -V|--version
|
---|
15 |
|
---|
16 | DESCRIPTION
|
---|
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
|
---|
20 | /etc/sysconfig/ifconfig.IFACE.
|
---|
21 |
|
---|
22 | OPTIONS
|
---|
23 | A summary of options is included below.
|
---|
24 |
|
---|
25 | -h, --help
|
---|
26 | Show summary of options.
|
---|
27 |
|
---|
28 | -V, --version
|
---|
29 | Show version information.
|
---|
30 |
|
---|
31 | EXAMPLE
|
---|
32 | ifup eth0
|
---|
33 | Bring up the interface defined in the file
|
---|
34 | /etc/sysconfig/ifconfig.eth0
|
---|
35 |
|
---|
36 | ifdown eth0:2
|
---|
37 | Bring down the interface defined in the file
|
---|
38 | /etc/sysconfig/ifconfig.eth0:2
|
---|
39 |
|
---|
40 | NOTES
|
---|
41 | The program does not configure network interfaces direct-
|
---|
42 | ly. It runs scripts defined by the SERVICE variable in
|
---|
43 | the network configuration file.
|
---|
44 |
|
---|
45 | The configuration files must have the following environ-
|
---|
46 | ment variables set:
|
---|
47 |
|
---|
48 | IFACE - The interface to configure, e.g. eth0. It must
|
---|
49 | be available in /sys/class/net.
|
---|
50 |
|
---|
51 | SERVICE - The service script to run to bring up the inter-
|
---|
52 | face. Standard services are ipv4-static and
|
---|
53 | ipv4-static-route. Other services such as dhcp
|
---|
54 | may be installed.
|
---|
55 |
|
---|
56 | ONBOOT - If set to 'yes', the specified interface is
|
---|
57 | configured by the netowrk boot script.
|
---|
58 |
|
---|
59 | Other paramters that are service specific include:
|
---|
60 |
|
---|
61 | ipv4-static
|
---|
62 |
|
---|
63 | IP - The IP address of the interface,
|
---|
64 | e.g. 192.168.1.2.
|
---|
65 |
|
---|
66 | PREFIX - The number of bits that specify the network
|
---|
67 | number of the interface, e.g., 24.
|
---|
68 |
|
---|
69 | GATEWAY - The default IP address to use for routing
|
---|
70 | if the destination IP address is not in a
|
---|
71 | static route or on a local network, e.g.,
|
---|
72 | 192.168.1.1. For secondary IP addresses on
|
---|
73 | an interface, this parameter should not be
|
---|
74 | specified.
|
---|
75 |
|
---|
76 | BROADCAST - The brodcast address for this interface,
|
---|
77 | e.g 192.168.1.255.
|
---|
78 |
|
---|
79 | ipv4-static-route
|
---|
80 |
|
---|
81 | TYPE - The type of route, typically 'default',
|
---|
82 | 'network', 'or host'.
|
---|
83 |
|
---|
84 | IP - The IP address for a network or host, if thei
|
---|
85 | TYPE is not 'default'.
|
---|
86 |
|
---|
87 | PREFIX - The prefix for the associated IP address.
|
---|
88 |
|
---|
89 | GATEWAY - The IP address for a network route.
|
---|
90 |
|
---|
91 | SOURCE - The source IP address to prefer when sending
|
---|
92 | to the destinations covered by the specified
|
---|
93 | route. (optional)
|
---|
94 |
|
---|
95 | FILES
|
---|
96 | /etc/sysconfig/ifconfig.*
|
---|
97 | definitions of network interfaces
|
---|
98 |
|
---|
99 | AUTHORS
|
---|
100 | The ifup/ifdown suite was written by Nathan Coulson
|
---|
101 | <nathan@linuxfromscratch.org> and Kevin P. Fleming
|
---|
102 | <kpfleming@linuxfromscratch.org>
|
---|
103 | and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
|
---|
104 |
|
---|
105 | SEE ALSO
|
---|
106 | ip(8).
|
---|
107 |
|
---|
108 | IFUP/IFDOWN 18 Sep 2011 ifup(8)
|
---|