source: bootscripts/lfs/sbin/ifup.8@ 1e4a180

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.7 7.8 7.9 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 1e4a180 was 0c5d002, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Update to linux-3.10.5
Fix bootscript ipv4-static-route

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

  • Property mode set to 100644
File size: 5.9 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. If the service
103 is ipv4-static-route, this parameter must NOT
104 be set.
105
106 STATIC_GATEWAY - The default IP address to use for routing
107 when setting a static routing address.
108
109 INTERFACE_COMPONENTS - A list of component interfaces
110 only needed for a compound device such as a bridge.
111 This list is normally a single value, e.g. eth0,
112 for use with a virtual host such as kvm.
113
114 Other paramters that are service specific include:
115
116 ipv4-static
117
118 IP - The IP address of the interface,
119 e.g. 192.168.1.2.
120
121 PREFIX - The number of bits that specify the network
122 number of the interface. The default, if not
123 specified, is 24.
124
125 BROADCAST - The brodcast address for this interface,
126 e.g 192.168.1.255. If not specified,
127 the broadcast address will be calculated
128 from the IP and PREFIX.
129
130 ipv4-static-route
131
132 TYPE - The type of route, typically 'default',
133 'network', 'or host'.
134
135 IP - The IP address for a network or host, if the
136 TYPE is not 'default'.
137
138 PREFIX - The prefix for the associated IP address.
139
140 STATIC_GATEWAY - The IP address for a network route.
141
142 SOURCE - The source IP address to prefer when sending
143 to the destinations covered by the specified
144 route. (optional)
145
146 dhcp/dhclient
147
148 DHCP_START - Optional parameters to pass to the dhcp client
149 at startup.
150
151 DHCP_STOP - Optional paremeters to pass to the dhcp client
152 at shutdown.
153
154 PRINTIP - Flag to print the dhcp address to stdout
155
156 PRINTALL - Flag to print all obtained dhcp data to stdout
157
158 bridge
159
160 IP_FORWARD - An optional flag to enable the system to forward
161 inbound IP packets received by one interface to
162 another outbound interface.
163
164 STP - Set bridge spanning tree protocol. Default is no.
165
166FILES
167 /etc/sysconfig/ifconfig.*
168 definitions of network interfaces
169
170AUTHORS
171 The ifup/ifdown suite was written by Nathan Coulson
172 <nathan@linuxfromscratch.org> and Kevin P. Fleming
173 <kpfleming@linuxfromscratch.org>
174 and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
175
176SEE ALSO
177 ip(8).
178
179IFUP/IFDOWN 8 April 2012 ifup(8)
Note: See TracBrowser for help on using the repository browser.