IPをDHCPで振り分けと設定されているので固定に変更。
エディタでファイルを開き、
nano /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
↓↓↓ 書き換え
auto eth0
iface eth0 inet static
address 192.168.0.161
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Ctl + O 保存。
Ctl + X 終了。
サーバを再起動。
shutdown -r now
サーバが起動したら、
ifconfig
で確認。
0 件のコメント:
コメントを投稿