= CentOS7 CentOS7のメモです。 == ネットワーク === ネットワークの設定 {{{ # nmtui }}} コマンド比較 || CentOS6 || CentOS7 || || ifup xxx ||nmcli c up xxx|| || ifdown xxx || nmcli c down xxx|| === NetworkManagerの無効化 {{{ # systemctl stop NetworkManager.service # systemctl start network.service }}} === net-toolsとiproute2 || net-tools||iproute2 || ||ifconfig || ip addr, ip link|| || route || ip route || || netstat || ss || || netstat -i || ip -s link || arp || ip neighbor || == ネットワークインタフェースの名前変更 /etc/udev/rules.d/70-persistence-net.rules ファイルにネットワークインタフェース名 固定の設定を記述する。例えば、00:0c:29:21:78:d7のインタフェースをeth1に設定する例。 {{{ ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", KERNEL=="ens*", ATTR{address}=="00:0c:29:21:78:d7", NAME="eth1" }}}