linux:ネットワーク設定の変更
                ネットワーク設定の変更
インストールはdhcpで行なったが、サーバの運用は固定IPアドレスで行うのが普通。そこで固定IPアドレスを設定する。
最近のシステムではネットワークの設定は/etc/network/interdacesで行うのが一般的。インストールをdhcpで行なった場合、/etc/network/interdacesは
- interfaces_original
- # The primary network interface auto enp4s0f0 iface enp4s0f0 inet dhcp 
などとなっている。これを
- interfaces_resetting
- # The primary network interface auto enp4s0f0 iface enp4s0f0 inet static address 192.168.10.213 netmask 255.255.255.0 gateway 192.168.10.254 dns-nameservers 192.168.10.1 
のように改める。
linux/ネットワーク設定の変更.txt · 最終更新:  by 127.0.0.1
                
                 
    