新しいネットワークインターフェイスを永久に追加する方法centos 6を実行しているvirtualboxを使用しています。新しいネットワークインターフェイスを作成しましたが、eth1
コンピュータの再起動後に消えました。コンピュータの起動時に自動的に追加する方法
sudo ifconfig eth1 192.168.56.10 netmask 255.255.255.0 up
ベストアンサー1
コマンドの使用
# nmcli connection add type ethernet ifname etho con-name name autoconnect yes ip4 xxx.xxx.xxx.xxx/cidr ipv4.gateway xxx.xxx.xxx.xxx ipv4.dns xxx.xxx.xxx.xxx
それから
# nmcli connection up name
または、GUIベースを使用することができます
# nmtui