ネットワークインターフェイスを手動で起動する方法
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
- 注意: ifconfig コマンドを使用して IP アドレスを設定する場合は、Why 'ifconfig' command does not update "arp tables" on routers or systems on the subnet? を参照してください。
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
