sudo nano /etc/network/interfaces
and paste this under
# The primary network interface
:auto enp0s25
iface enp0s25 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.4.4 8.8.8.8
sudo ip addr flush enp0s25
sudo systemctl restart networking.service
Then verify it is correct:
ip add
Không có nhận xét nào:
Đăng nhận xét