1
0

ifup.8 3.3 KB

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