IT関連
CSwiki
Feb
21
th
NIC関連メモ
をテンプレートにして作成
Total:0/Today:0
トップページ
最新の20件
2019-02-20
Linuxパッチ適用
2019-02-18
SQL
2019-02-15
DB定義変更
2019-02-08
Oracle Rac 起動停止手順
運用設計
2018-06-18
LPIC1
2018-06-01
oracle
2018-05-24
Linuxメモ
2017-05-12
NIC関連メモ
2017-02-12
oracle master bronze SQL基礎Ⅰ
2017-01-26
FrontPage
2017-01-23
RecentDeleted
2010-05-16
RightBar
2006-10-22
PukiWiki/1.4/Manual/Plugin/V-Z
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
WikiEngines
YukiWiki
PukiWiki/1.4/Manual/Plugin/L-N
WikiName
開始行:
■NICの設定ファイル
/etc/sysconfig/network-scripts/ifcfg-ethx
⇒反映は/etc/init.d/network restart が必要
■デバイスの確認
# nmcli dev
デバイス タイプ 状態
eth1 802-3-ethernet 接続済み
eth2 802-3-ethernet 利用不可
eth0 802-3-ethernet 接続済み
■コネクションの確認
# nmcli con
名前 UUID ...
System eth1 948542cb-d0bd-48dc-8fb4-094c0ac...
System eth0 662e4d4f-3b1d-4f01-aeaa-e9cddc7...
System eth2 801928e4-5fa0-497e-8f72-f1a2639...
■コネクション名を Wired connection 1 から ethx に変更しま...
# nmcli con mod "Wired connection 1" connection.id eth1
■コネクションとデバイスを関連付けします。
# nmcli con mod "eth1" connection.interface-name eth1
■IPアドレスなどを設定します。
# nmcli con mod eth1 \
ipv4.method manual \
ipv4.address "192.168.11.5/24" \
connection.autoconnect "yes" \
ipv6.method ignore
上記の設定を有効化するために、以下を実行してください。
# nmcli con down eth1 ; nmcli con up eth1
終了行:
■NICの設定ファイル
/etc/sysconfig/network-scripts/ifcfg-ethx
⇒反映は/etc/init.d/network restart が必要
■デバイスの確認
# nmcli dev
デバイス タイプ 状態
eth1 802-3-ethernet 接続済み
eth2 802-3-ethernet 利用不可
eth0 802-3-ethernet 接続済み
■コネクションの確認
# nmcli con
名前 UUID ...
System eth1 948542cb-d0bd-48dc-8fb4-094c0ac...
System eth0 662e4d4f-3b1d-4f01-aeaa-e9cddc7...
System eth2 801928e4-5fa0-497e-8f72-f1a2639...
■コネクション名を Wired connection 1 から ethx に変更しま...
# nmcli con mod "Wired connection 1" connection.id eth1
■コネクションとデバイスを関連付けします。
# nmcli con mod "eth1" connection.interface-name eth1
■IPアドレスなどを設定します。
# nmcli con mod eth1 \
ipv4.method manual \
ipv4.address "192.168.11.5/24" \
connection.autoconnect "yes" \
ipv6.method ignore
上記の設定を有効化するために、以下を実行してください。
# nmcli con down eth1 ; nmcli con up eth1
ページ名: