Changeset a44ae577 for bootscripts/lfs/sbin/ifup.8
- Timestamp:
- 09/07/2021 09:01:23 PM (3 years ago)
- Branches:
- 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, arm, bdubbs/gcc13, 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
- Children:
- 408fb782
- Parents:
- e7fb2ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/sbin/ifup.8
re7fb2ca ra44ae577 15 15 16 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 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 20 /etc/sysconfig/ifconfig.IFACE. 21 21 … … 31 31 EXAMPLES 32 32 ifup eth0 33 Bring up the interface defined in the file 33 Bring up the interface defined in the file 34 34 /etc/sysconfig/ifconfig.eth0 35 35 … … 50 50 LABEL=eth0:2 51 51 SERVICE=dhcpcd 52 52 53 53 DHCP_START="--waitip" 54 54 DHCP_STOP="-k" 55 55 56 56 # Set PRINTIP="yes" to have the script print the DHCP IP address 57 57 PRINTIP="yes" 58 58 59 59 # Set PRINTALL="yes" to print the DHCP assigned values for 60 # IP, SM, DG, and 1st NS. 60 # IP, SM, DG, and 1st NS. 61 61 PRINTALL="no" 62 62 63 63 ifup br0 64 Bring up the interface defined in the file 64 Bring up the interface defined in the file 65 65 /etc/sysconfig/ifconfig.br0 66 66 67 67 ONBOOT=yes 68 68 IFACE=br0 … … 78 78 NOTES 79 79 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 81 81 the network configuration file. 82 82 … … 84 84 ment variables set: 85 85 86 IFACE - The interface to configure, e.g. eth0. It must 86 IFACE - The interface to configure, e.g. eth0. It must 87 87 be available in /sys/class/net. 88 88 89 89 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 91 91 ipv4-static-route. Other services such as dhcp 92 92 or bridge may be installed. This value may … … 94 94 compound device such as a bridge. 95 95 96 ONBOOT - If set to 'yes', the specified interface is 96 ONBOOT - If set to 'yes', the specified interface is 97 97 configured by the netowrk boot script. 98 98 99 99 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 103 103 parameter should not be specified. If the service 104 104 is ipv4-static-route, this parameter must NOT … … 106 106 107 107 STATIC_GATEWAY - The default IP address to use for routing 108 when setting a static routing address. 108 when setting a static routing address. 109 109 110 110 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, 113 113 for use with a virtual host such as kvm. 114 114 … … 117 117 ipv4-static 118 118 119 IP - The IP address of the interface, 119 IP - The IP address of the interface, 120 120 e.g. 192.168.1.2. 121 121 … … 123 123 number of the interface. The default, if not 124 124 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. 127 127 This is normally specified for assigning 128 128 additional IP addresses to a network 129 129 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, 133 133 the broadcast address will be calculated 134 134 from the IP and PREFIX. … … 136 136 ipv4-static-route 137 137 138 TYPE - The type of route, typically 'default', 138 TYPE - The type of route, typically 'default', 139 139 'network', 'or host'. 140 140 … … 146 146 STATIC_GATEWAY - The IP address for a network route. 147 147 148 SOURCE - The source IP address to prefer when sending 148 SOURCE - The source IP address to prefer when sending 149 149 to the destinations covered by the specified 150 150 route. (optional) … … 155 155 at startup. 156 156 157 DHCP_STOP - Optional paremeters to pass to the dhcp client 157 DHCP_STOP - Optional paremeters to pass to the dhcp client 158 158 at shutdown. 159 159 … … 165 165 166 166 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. 169 169 170 170 STP - Set bridge spanning tree protocol. Default is no. … … 172 172 FILES 173 173 /etc/sysconfig/ifconfig.* 174 definitions of network interfaces 174 definitions of network interfaces 175 175 176 176 AUTHORS 177 177 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 179 179 <kpfleming@linuxfromscratch.org> 180 180 and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
Note:
See TracChangeset
for help on using the changeset viewer.