初めまして。
表題の件です。
ネットワークの設定をシェルスクリプトで自動化しようとしています。以下のスクリプトを実行するとnmtui上では、想定通りのIPアドレス、デフォルトゲートウェイ、dnsが設定されるのですが、インターフェースがダウンしてしまい、まったくアクティベーションできなくなります。どう修正すればよいでしょうか?
cent7.2で検証しています。
nmcli connection modify $serviceeth ipv4.method manual ipv4.addresses $seripmg
nmcli connection modify $serviceeth ipv4.gateway $tp1webdgw
nmcli connection modify $serviceeth ipv4.dns $nhkdns
nmcli connection modify $serviceeth +ipv4.routes "$tp1webrtdst1 $tp1webrtnex"
nmcli connection modify $serviceeth +ipv4.routes "$tp1webrtdst2 $tp1webrtnex"
nmcli connection up $serviceeth
回答2件
あなたの回答
tips
プレビュー