Warning message

  • This translation is outdated. For the most up-to-date information, please refer to the English version.
  • This translation is outdated. For the most up-to-date information, please refer to the English version.

ネットワークインターフェイスを手動で起動する方法

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4

Issue

  • ネットワークインターフェイスを手動で起動する方法は?

Resolution

  • IP アドレス (例: 192.168.122.100/24) を eth1 に設定するには、以下のコマンドを実行します。
# ip link set dev eth1 up
# ip addr add 192.168.122.100/24 brd 192.168.122.255 dev eth1 label eth1
# arping -q -U -c 2 -I eth1 192.168.122.100
  • ネットワークインターフェイスを落とすには、以下のコマンドを実行します。
# ip addr flush dev eth1 scope global
# ip link set dev eth1 down
  • 詳細については、以下のスクリプトを参照してください。
RHEL6, RHEL5:
/etc/sysconfig/network-scripts/ifup-eth
/etc/sysconfig/network-scripts/ifdown-eth

RHEL4:
/etc/sysconfig/network-scripts/ifup
/etc/sysconfig/network-scripts/ifdown

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.