source: bootscripts/lfs/sbin/ifup.8@ 970a126

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 970a126 was 970a126, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update networking bootscripts. See bootscripts change log for details.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9807 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.7 KB
Line 
1ifup(8) ifup(8)
2
3NAME
4 ifup - bring a network interface up
5 ifdown - take a network interface down
6
7SYNOPSIS
8 ifup IFACE
9 ifup -h|--help
10 ifup -V|--version
11
12 ifdown IFACE
13 ifdown -h|--help
14 ifdown -V|--version
15
16DESCRIPTION
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
22OPTIONS
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
31EXAMPLES
32 ifup eth0
33 Bring up the interface defined in the file
34 /etc/sysconfig/ifconfig.eth0
35
36 ONBOOT=no
37 IFACE=eth0
38 SERVICE=ipv4-static
39 IP=192.168.1.22
40 GATEWAY=192.168.1.1
41 PREFIX=24
42 BROADCAST=192.168.1.255
43
44 ifdown eth0:2
45 Bring down the interface defined in the file
46 /etc/sysconfig/ifconfig.eth0:2
47
48 ONBOOT=no
49 IFACE=eth0:2
50 SERVICE=dhcpcd
51
52 DHCP_START="--waitip"
53 DHCP_STOP="-k"
54
55 # Set PRINTIP="yes" to have the script print the DHCP IP address
56 PRINTIP="yes"
57
58 # Set PRINTALL="yes" to print the DHCP assigned values for
59 # IP, SM, DG, and 1st NS.
60 PRINTALL="no"
61
62 ifup br0
63 Bring up the interface defined in the file
64 /etc/sysconfig/ifconfig.br0
65
66 ONBOOT=yes
67 IFACE=br0
68 SERVICE="bridge ipv4-static"
69 IP=192.168.1.22
70 GATEWAY=192.168.1.1
71 PREFIX=24
72 BROADCAST=192.168.1.255
73 STP=no # Spanning tree protocol, default no
74 INTERFACE_COMPONENTS=eth0 # Add to IFACE
75 IP_FORWARD=true
76
77NOTES
78 The program does not configure network interfaces direct-
79 ly. It runs scripts defined by the SERVICE variable in
80 the network configuration file.
81
82 The configuration files must have the following environ-
83 ment variables set:
84
85 IFACE - The interface to configure, e.g. eth0. It must
86 be available in /sys/class/net.
87
88 SERVICE - The service script to run to bring up the inter-
89 face. Standard services are ipv4-static and
90 ipv4-static-route. Other services such as dhcp
91 or bridge may be installed. This value may
92 be a list of services when the interface is a
93 compound device such as a bridge.
94
95 ONBOOT - If set to 'yes', the specified interface is
96 configured by the netowrk boot script.
97
98 GATEWAY - The default IP address to use for routing if
99 the destination IP address is not in a static
100 route or on a local network, e.g., 192.168.1.1.
101 For secondary IP addresses on an interface, this
102 parameter should not be specified.
103
104 INTERFACE_COMPONENTS - A list of component interfaces
105 only needed for a compound device such as a bridge.
106 This list is normally a single value, e.g. eth0,
107 for use with a virtual host such as kvm.
108
109 Other paramters that are service specific include:
110
111 ipv4-static
112
113 IP - The IP address of the interface,
114 e.g. 192.168.1.2.
115
116 PREFIX - The number of bits that specify the network
117 number of the interface. The default, if not
118 specified, is 24.
119
120 BROADCAST - The brodcast address for this interface,
121 e.g 192.168.1.255. If not specified,
122 the broadcast address will be calculated
123 from the IP and PREFIX.
124
125 ipv4-static-route
126
127 TYPE - The type of route, typically 'default',
128 'network', 'or host'.
129
130 IP - The IP address for a network or host, if the
131 TYPE is not 'default'.
132
133 PREFIX - The prefix for the associated IP address.
134
135 GATEWAY - The IP address for a network route.
136
137 SOURCE - The source IP address to prefer when sending
138 to the destinations covered by the specified
139 route. (optional)
140
141 dhcp/dhclient
142
143 DHCP_START - Optional parameters to pass to the dhcp client
144 at startup.
145
146 DHCP_STOP - Optional paremeters to pass to the dhcp client
147 at shutdown.
148
149 PRINTIP - Flag to print the dhcp address to stdout
150
151 PRINTALL - Flag to print all obtained dhcp data to stdout
152
153 bridge
154
155 IP_FORWARD - An optional flag to enable the system to forward
156 inbound IP packets received by one interface to
157 another outbound interface.
158
159 STP - Set bridge spanning tree protocol. Default is no.
160
161FILES
162 /etc/sysconfig/ifconfig.*
163 definitions of network interfaces
164
165AUTHORS
166 The ifup/ifdown suite was written by Nathan Coulson
167 <nathan@linuxfromscratch.org> and Kevin P. Fleming
168 <kpfleming@linuxfromscratch.org>
169 and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
170
171SEE ALSO
172 ip(8).
173
174IFUP/IFDOWN 8 April 2012 ifup(8)
Note: See TracBrowser for help on using the repository browser.